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

Fix baserule import in tests #4189

Merged
merged 2 commits into from
Oct 17, 2021

Conversation

hmSchuller
Copy link
Contributor

#4157 changed the location of BaseRule, but missed an import in a test package.

This PR fixes it.

@@ -37,7 +37,6 @@ public final class io/github/detekt/test/utils/NullPrintStream : java/io/PrintSt
public final class io/github/detekt/test/utils/ResourcesKt {
public static final fun readResourceContent (Ljava/lang/String;)Ljava/lang/String;
public static final fun resource (Ljava/lang/String;)Ljava/net/URI;
public static final fun resourceAsFile (Ljava/lang/String;)Ljava/io/File;
Copy link
Member

Choose a reason for hiding this comment

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

I'm actually surprised that this happened 🤔 Was the task failing locally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it was. That's why I ran the task apiDump. Should that change be excluded from this PR?

Copy link
Member

Choose a reason for hiding this comment

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

Nope that's fine 👍 I'm more wondering how comes that this change was not captured by the CI at #4157 I'll look into it.

Copy link
Member

Choose a reason for hiding this comment

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

Oh seems like we effectively broke the CI. This PR fixes it 🚀 Thanks for doing it!

@codecov
Copy link

codecov bot commented Oct 17, 2021

Codecov Report

Merging #4189 (1e7bba7) into main (75bec4a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #4189   +/-   ##
=========================================
  Coverage     84.13%   84.13%           
  Complexity     3201     3201           
=========================================
  Files           467      467           
  Lines         10108    10108           
  Branches       1773     1773           
=========================================
  Hits           8504     8504           
  Misses          673      673           
  Partials        931      931           
Impacted Files Coverage Δ
...kotlin/io/gitlab/arturbosch/detekt/api/BaseRule.kt 100.00% <ø> (ø)
...otlin/io/gitlab/arturbosch/detekt/api/MultiRule.kt 100.00% <ø> (ø)
...ain/kotlin/io/gitlab/arturbosch/detekt/api/Rule.kt 62.96% <ø> (ø)
.../kotlin/io/gitlab/arturbosch/detekt/api/RuleSet.kt 75.00% <ø> (ø)
...otlin/io/gitlab/arturbosch/detekt/core/Analyzer.kt 81.81% <ø> (ø)
...io/gitlab/arturbosch/detekt/core/rules/RuleSets.kt 100.00% <ø> (ø)
...arturbosch/detekt/core/rules/SingleRuleProvider.kt 100.00% <ø> (ø)
.../arturbosch/detekt/core/suppressors/Suppressors.kt 100.00% <ø> (ø)

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 44b7660...1e7bba7. Read the comment docs.

@cortinico cortinico added this to the 1.19.0 milestone Oct 17, 2021
@cortinico cortinico added ci housekeeping Marker for housekeeping tasks and refactorings labels Oct 17, 2021
@cortinico cortinico merged commit 8e9d6de into detekt:main Oct 17, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci housekeeping Marker for housekeeping tasks and refactorings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants