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

Fixing issue in WhiteSpaceRule #412

Merged
merged 4 commits into from
Oct 16, 2020
Merged

Fixing issue in WhiteSpaceRule #412

merged 4 commits into from
Oct 16, 2020

Conversation

petertrr
Copy link
Member

What's done:

  • Changed logic
  • Added tests

This pull request closes #405

@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #412 into master will decrease coverage by 0.12%.
The diff coverage is 46.15%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #412      +/-   ##
============================================
- Coverage     82.62%   82.50%   -0.13%     
- Complexity     1343     1346       +3     
============================================
  Files            65       65              
  Lines          3298     3298              
  Branches       1055     1053       -2     
============================================
- Hits           2725     2721       -4     
- Misses          177      178       +1     
- Partials        396      399       +3     
Flag Coverage Δ Complexity Δ
#unittests 82.50% <46.15%> (-0.13%) 1346.00 <35.00> (+3.00) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...in/org/cqfn/diktat/ruleset/rules/WhiteSpaceRule.kt 80.29% <46.15%> (-2.92%) 126.00 <35.00> (+3.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 f57a88b...47d77c6. Read the comment docs.

@@ -15,3 +15,8 @@ class Example : SuperExample {
when (expression) { }
}
}

data class Example(
Copy link
Member

Choose a reason for hiding this comment

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

same bug was with functions?
now it fixes foo ()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, this case was missing in tests. Added.
But diktat fixes it already.

Copy link
Member

@orchestr7 orchestr7 left a comment

Choose a reason for hiding this comment

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

lgtm

@petertrr petertrr merged commit a6b5e1e into master Oct 16, 2020
@petertrr petertrr deleted the bugfix/whitespacerule#405 branch October 16, 2020 14:09
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.

IllegalStateException: treePrev must not be null in WhiteSpaceRule in fix mode
2 participants