-
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 rule 3.5 - indentation #75
Conversation
### What's done: * Implemented rule * Added tests * Updated rules-config.json * Updated available-rules.md
Codecov Report
@@ Coverage Diff @@
## master #75 +/- ##
============================================
+ Coverage 78.21% 78.48% +0.27%
- Complexity 407 435 +28
============================================
Files 23 27 +4
Lines 1207 1343 +136
Branches 389 428 +39
============================================
+ Hits 944 1054 +110
- Misses 114 119 +5
- Partials 149 170 +21
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: * Added indentation handler for KDoc * Refactoring
# Conflicts: # 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: * Refactoring * Added checker for super type list * Added increase of indent after assignment operator * Added checker for dot calls * More tests
# Conflicts: # 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/resources/rules-config.json # info/available-rules.md
### What's done: * Fixed code style
### What's done: * Refactoring * Comments and documentation
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt
Outdated
Show resolved
Hide resolved
### What's done: * Moved IndentationRule after all other rules
configuration = IndentationConfig(configRules.getRuleConfig(WRONG_INDENTATION)?.configuration | ||
?: mapOf()) | ||
customIndentationCheckers = listOf( | ||
AssignmentOperatorChecker(configuration), |
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.
do you check lambdas?
a newline after ->
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.
Not explicitly; every opening brace causes increase of indentation, and as a consequence body of lambda is indented.
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, let's test it
* Implementation of rule 3.5 - indentation ### What's done: * Implemented rule * Added tests * Updated rules-config.json * Updated available-rules.md
This closes #62
What's done:
Fixmes:
KDOC_LEADING_ASTERISK
s