-
Notifications
You must be signed in to change notification settings - Fork 39
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
Magic Number #772
Magic Number #772
Conversation
### What's done: Implemented rule, added test and documentation
### What's done: Implemented rule, added test and documentation
Codecov Report
@@ Coverage Diff @@
## master #772 +/- ##
============================================
+ Coverage 80.92% 80.95% +0.02%
- Complexity 2221 2248 +27
============================================
Files 98 99 +1
Lines 5694 5738 +44
Branches 1767 1783 +16
============================================
+ Hits 4608 4645 +37
Misses 286 286
- Partials 800 807 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
### What's done: Fixed according to our code style
### What's done: Fixed according to our code style
### What's done: Fixed according to our code style
### What's done: Fixed according to our code style
### What's done: Fixed according to our code style
### What's done: Fixed according to our code style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what rule do we have in a code style for this. Will you add? Or we have existing?
No, we didn't have a rule for that. So I added this rule to chapter 3 |
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/MagicNumberRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/MagicNumberRule.kt
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/MagicNumberRule.kt
Outdated
Show resolved
Hide resolved
### What's done: Fixed after review
### What's done: Fixed according to our code-style
### What's done: Fixed after review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
What's done:
Magic number
Actions checklist