Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependency-analysis plugin and implement some recommendations #4798

Merged
merged 9 commits into from Jun 2, 2022

Conversation

3flex
Copy link
Member

@3flex 3flex commented May 1, 2022

See commits for details. These issues are reported by the :buildHealth task.

Not all issues reported by that task were addressed, for various reasons, but these changes seemed sane.

3flex added 6 commits May 1, 2022 14:10
These are used widely in the project, but don't indicate a problem that
would affect library consumers. Disabling will reduce number of reports.
dependency-analysis recommends changing configuration from "implementation"
to "api" since plugins expose detekt-api classes. "compileOnly" is more
appropriate as detekt provides detekt-api on the classpath in the
environment that the plugin runs in.

This also make things consistent with detekt-report-sarif,
detekt-report-html, and the various rule sets.
dependency-analysis plugin will otherwise report sarif4k as an "api"
dependency which is incorrect.
@github-actions github-actions bot added build dependencies Pull requests that update a dependency file labels May 1, 2022
@codecov
Copy link

codecov bot commented May 1, 2022

Codecov Report

Merging #4798 (0c7078a) into main (fe03b6d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #4798   +/-   ##
=========================================
  Coverage     84.80%   84.80%           
  Complexity     3480     3480           
=========================================
  Files           494      494           
  Lines         11395    11395           
  Branches       2105     2105           
=========================================
  Hits           9664     9664           
  Misses          676      676           
  Partials       1055     1055           
Impacted Files Coverage Δ
...in/kotlin/io/github/detekt/report/sarif/Results.kt 96.00% <ø> (ø)
...n/io/github/detekt/report/sarif/RuleDescriptors.kt 33.33% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe03b6d...0c7078a. Read the comment docs.

Copy link
Member

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff 👍

@cortinico cortinico added this to the 1.21.0 milestone May 1, 2022
Copy link
Member

@schalkms schalkms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!
Can we get this PR ahead?

@cortinico cortinico merged commit 1258c2f into detekt:main Jun 2, 2022
@3flex 3flex deleted the fix-dependencies branch June 2, 2022 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants