-
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 3.14.2 string template format #305
Conversation
### What's done: * Added rule logic * Added warn and fix test
Codecov Report
@@ Coverage Diff @@
## master #305 +/- ##
============================================
+ Coverage 82.23% 82.36% +0.13%
- Complexity 990 999 +9
============================================
Files 50 51 +1
Lines 2544 2575 +31
Branches 803 808 +5
============================================
+ Hits 2092 2121 +29
Misses 169 169
- Partials 283 285 +2
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 bugs
diktat-analysis.yml
Outdated
typeReferenceLength: '25' # max length of type reference | ||
- name: REDUNDANT_CURLY_BRACES |
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.
add description
change names: STRING_TEMPLATE_CURLY_BRACES
STRING_TEMPLATE_QUOTES
} | ||
|
||
if (node.elementType == SHORT_STRING_TEMPLATE_ENTRY) { |
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.
Please add comment about why these two if
s cannot be combined in if-else
### What's done: * Fixed bugs
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/StringTemplateFormatRule.kt
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/StringTemplateFormatRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/StringTemplateFormatRule.kt
Outdated
Show resolved
Hide resolved
### What's done: * Fixed bugs
### What's done: * Fixed bugs
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:
Actions checklist
Closes #301