-
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
Rule 4.1.2: Numbers of a float type should not be directly compared #323
Conversation
### What's done: * Initial implementation * Tests
…float-ariphmethic
### What's done: * Update yml files and available-rules.md
### What's done: * Added new rule to DiktatRuleSetProvider * Added maven central badge
### What's done: * Fixes
…float-ariphmethic # Conflicts: # diktat-analysis.yml # diktat-rules/src/main/kotlin/generated/WarningNames.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt # diktat-rules/src/main/resources/diktat-analysis-huawei.yml # diktat-rules/src/main/resources/diktat-analysis.yml # info/available-rules.md
### What's done: * Fixes
### What's done: * Rule 4.1.2
Codecov Report
@@ Coverage Diff @@
## master #323 +/- ##
============================================
- Coverage 82.81% 82.73% -0.08%
- Complexity 1187 1214 +27
============================================
Files 59 59
Lines 2950 2989 +39
Branches 934 952 +18
============================================
+ Hits 2443 2473 +30
- Misses 169 171 +2
- Partials 338 345 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
# Conflicts: # diktat-analysis.yml # diktat-rules/src/main/kotlin/generated/WarningNames.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/calculations/AccurateCalculationsRule.kt # diktat-rules/src/main/resources/diktat-analysis-huawei.yml # diktat-rules/src/main/resources/diktat-analysis.yml # diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter4/AccurateCalculationsWarnTest.kt
### What's done: * Rule 4.1.2
### What's done: * Code style
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter4/AccurateCalculationsWarnTest.kt
Show resolved
Hide resolved
### What's done: * Tests with ==
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:
This pull request closes #290