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

Value Parameter in Magic Number Rule #874

Merged
merged 6 commits into from
May 11, 2021
Merged

Conversation

kentr0w
Copy link
Collaborator

@kentr0w kentr0w commented May 11, 2021

What's done:

### What's done:
Added new flag to handle value parameter
Added this flag to config files
Added tests
@kentr0w kentr0w added the bug Something isn't working label May 11, 2021
@codecov
Copy link

codecov bot commented May 11, 2021

Codecov Report

Merging #874 (a7e1bc0) into master (a2f4056) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #874   +/-   ##
=========================================
  Coverage     83.61%   83.61%           
- Complexity     2208     2209    +1     
=========================================
  Files           101      101           
  Lines          5669     5671    +2     
  Branches       1614     1615    +1     
=========================================
+ Hits           4740     4742    +2     
  Misses          256      256           
  Partials        673      673           
Flag Coverage Δ Complexity Δ
unittests 83.61% <100.00%> (+<0.01%) 2209.00 <0.00> (+1.00)

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

Impacted Files Coverage Δ Complexity Δ
...tlin/org/cqfn/diktat/ruleset/utils/AstNodeUtils.kt 85.29% <ø> (ø) 0.00 <0.00> (ø)
...n/diktat/ruleset/rules/chapter3/MagicNumberRule.kt 86.04% <100.00%> (+0.68%) 27.00 <0.00> (+1.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 a2f4056...a7e1bc0. Read the comment docs.

### What's done:
Fixed according to our code style
diktat-analysis.yml Outdated Show resolved Hide resolved
@kentr0w kentr0w marked this pull request as ready for review May 11, 2021 08:17
@kentr0w kentr0w requested a review from orchestr7 May 11, 2021 08:17
### What's done:
Fixed after review
### What's done:
Fixed according to our code style
@petertrr petertrr added this to the 0.5.3 milestone May 11, 2021
### What's done:
Added test after review
### What's done:
Fixed test
@petertrr petertrr changed the title Value Parameter in Magi Number Rule Value Parameter in Magic Number Rule May 11, 2021
@kentr0w kentr0w merged commit 8fa1ece into master May 11, 2021
@kentr0w kentr0w deleted the bugfix/magic-number-value-param branch May 11, 2021 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Magic number rule failure
2 participants