Skip to content

chore(build-logic): Apply Spotless and Detekt to build-logic module#3962

Merged
jamesarich merged 2 commits into
mainfrom
feat/buildlogic-spotless-detekt
Dec 10, 2025
Merged

chore(build-logic): Apply Spotless and Detekt to build-logic module#3962
jamesarich merged 2 commits into
mainfrom
feat/buildlogic-spotless-detekt

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

Ensures :build-logic module adheres to code style (from now on)

This commit refactors the build logic to improve dependency and plugin management for code formatting.

- The `ktlint` version is now defined in the `libs.versions.toml` version catalog, centralizing version control.
- The `Spotless.kt` convention plugin now retrieves the `ktlint` version from the version catalog (`libs.findVersion("ktlint")`).
- The Spotless plugin is now applied to the `build-logic/convention` module itself, ensuring its own source code adheres to the project's formatting standards.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit integrates Detekt into the `build-logic` module to perform static code analysis on the build scripts themselves.

- Added the Detekt plugin and formatting dependency to `build-logic/convention/build.gradle.kts`.
- Configured the Detekt task, pointing to the root `detekt.yml` configuration file.
- Introduced a baseline file (`detekt-baseline.xml`) to ignore existing code style issues within the build logic.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added the enhancement New feature or request label Dec 10, 2025
@jamesarich jamesarich enabled auto-merge December 10, 2025 20:16
@codecov

codecov Bot commented Dec 10, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.52%. Comparing base (14f6a46) to head (0adea92).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3962   +/-   ##
=====================================
  Coverage   0.52%   0.52%           
=====================================
  Files        394     394           
  Lines      23170   23170           
  Branches    2943    2943           
=====================================
  Hits         122     122           
  Misses     23027   23027           
  Partials      21      21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Dec 10, 2025
Merged via the queue into main with commit ce73220 Dec 10, 2025
8 checks passed
@jamesarich jamesarich deleted the feat/buildlogic-spotless-detekt branch December 10, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant