-
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
Implementation of recommendation 3.10 - local variables declaration #214
Conversation
### What's done: * Initial implementation * Added tests on checkers * Update rules-config.json and available-rules.md * Edited diktat-kotlin-coding-style-guide-en.md
### What's done: * Initial implementation * More tests * Introduced PsiUtils.kt
### What's done: * Allow initialization by some selected methods
### What's done: * Fixes & refactoring
…ion-3.10#155 # Conflicts: # 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/rules-config.json # info/available-rules.md
### What's done: * More tests & refactoring
Codecov Report
@@ Coverage Diff @@
## master #214 +/- ##
============================================
- Coverage 81.68% 81.41% -0.28%
- Complexity 927 956 +29
============================================
Files 48 50 +2
Lines 2403 2508 +105
Branches 742 780 +38
============================================
+ Hits 1963 2042 +79
- Misses 173 184 +11
- Partials 267 282 +15
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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/identifiers/LocalVariablesRule.kt
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/identifiers/LocalVariablesRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/LocalVariablesWarnTest.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.
generally looks good, small comments inside
…ion-3.10#155 # Conflicts: # 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/DiktatRuleSetProvider.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/AstNodeUtils.kt # diktat-rules/src/main/resources/rules-config.json # info/available-rules.md
### What's done: * Fixes after review
### What's done: * Fixes after review
Which rule and warnings did you add?
This pull request closes #155
Actions checklist
Fixme
A lot of limitations when working with AST only.