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

Attach FILE_PATH_USER_DATA_KEY user data on FormattingRules (#1907) #2194

Merged
merged 1 commit into from
Dec 27, 2019

Conversation

cortinico
Copy link
Member

This fixes rules such as Filename and other that require
the FILE_PATH_USER_DATA_KEY user data attached to the ASTNode
in order to properly work.

More context on this fix is on #1907

Fixes #1907

This fixes rules such as `Filename` and other that require
the FILE_PATH_USER_DATA_KEY user data attached to the ASTNode
in order to properly work.

Fixes detekt#1907
@codecov-io
Copy link

codecov-io commented Dec 27, 2019

Codecov Report

Merging #2194 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2194      +/-   ##
============================================
+ Coverage     81.17%   81.17%   +<.01%     
  Complexity     2059     2059              
============================================
  Files           339      339              
  Lines          5891     5892       +1     
  Branches       1073     1073              
============================================
+ Hits           4782     4783       +1     
  Misses          535      535              
  Partials        574      574
Impacted Files Coverage Δ Complexity Δ
...lab/arturbosch/detekt/formatting/FormattingRule.kt 74.07% <100%> (+0.99%) 9 <0> (ø) ⬇️

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 aa21086...35ce283. Read the comment docs.

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.

Cool, thanks for investigating!
LGTM!

Copy link
Member

@arturbosch arturbosch left a comment

Choose a reason for hiding this comment

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

Cool, thanks for the fix right in time for 1.3.1 :)!

@arturbosch arturbosch merged commit ccbbb72 into detekt:master Dec 27, 2019
@arturbosch arturbosch added this to the 1.3.1 milestone Dec 27, 2019
@cortinico cortinico deleted the fix-1907-filename-rule branch June 13, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filename rule doesn't work
4 participants