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

Only apply RANGE_TO_UNTIL rule if right-hand side of .. contains X-1 #1524

Merged
merged 2 commits into from
Sep 14, 2022

Conversation

petertrr
Copy link
Member

What's done:

  • Fix logic
  • Minor refactorings
  • Add fix test case

This pull request closes #1502

@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@9d7a8d3). Click here to learn what that means.
The diff coverage is 50.00%.

@@            Coverage Diff            @@
##             master    #1524   +/-   ##
=========================================
  Coverage          ?   82.56%           
  Complexity        ?     2566           
=========================================
  Files             ?      111           
  Lines             ?     7716           
  Branches          ?     2119           
=========================================
  Hits              ?     6371           
  Misses            ?      443           
  Partials          ?      902           
Flag Coverage Δ
unittests 82.56% <50.00%> (?)

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

Impacted Files Coverage Δ
...tlin/org/cqfn/diktat/ruleset/utils/AstNodeUtils.kt 82.89% <0.00%> (ø)
...at/ruleset/rules/chapter3/RangeConventionalRule.kt 68.96% <58.82%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

…`X-1`

### What's done:
* Fix logic
* Minor refactorings
* Add fix test case
@github-actions
Copy link
Contributor

github-actions bot commented Sep 14, 2022

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v1)

1 932 tests   1 917 ✔️  3m 18s ⏱️
   160 suites       15 💤
   160 files           0

Results for commit 9478547.

♻️ This comment has been updated with latest results.

@petertrr petertrr force-pushed the bugfix/peter.trifanov/range-rule#1502 branch from 67ad125 to 8ceb012 Compare September 14, 2022 13:14
@github-actions
Copy link
Contributor

github-actions bot commented Sep 14, 2022

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v1)

1 917 tests   1 902 ✔️  1m 36s ⏱️
   159 suites       15 💤
   159 files           0

Results for commit 9478547.

♻️ This comment has been updated with latest results.

@petertrr petertrr merged commit 914a1a7 into master Sep 14, 2022
@petertrr petertrr deleted the bugfix/peter.trifanov/range-rule#1502 branch September 14, 2022 14:21
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.

Conventional Range rule appears to be broken
3 participants