-
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
Fix all Warnings #781
Fix all Warnings #781
Conversation
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.
Also, did you check, whether there is a flag that makes kotlin compiler threat warnings as errors?
diktat-gradle-plugin/src/main/kotlin/org/cqfn/diktat/plugin/gradle/DiktatJavaExecTaskBase.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter2/kdoc/CommentsFormatting.kt
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter4/NullChecksRule.kt
Show resolved
Hide resolved
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.
Denis, please be more careful and pay attention to the details
@kentr0w any progress on this? |
…ings # Conflicts: # diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/KotlinParser.kt
Codecov Report
@@ Coverage Diff @@
## master #781 +/- ##
============================================
- Coverage 81.06% 80.43% -0.64%
+ Complexity 2286 2185 -101
============================================
Files 100 101 +1
Lines 5857 5637 -220
Branches 1814 1734 -80
============================================
- Hits 4748 4534 -214
+ Misses 286 264 -22
- Partials 823 839 +16
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
…ings # Conflicts: # diktat-rules/src/test/kotlin/org/cqfn/diktat/util/TestUtils.kt
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/utils/AstNodeUtilsTest.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter1/IdentifierNaming.kt
Outdated
Show resolved
Hide resolved
|
for gradle:
|
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.
treat warns as errors
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:
Fixed all warnings
closes #769