-
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
Don't separate fully-qualified as a regular dot qualified expression
#1411
Conversation
* add analytic fully-qualified * add test * correct warning message ## Issue (#1403)
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Fixed
Show fixed
Hide fixed
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Fixed
Show fixed
Hide fixed
* add analytic fully-qualified * add test * correct warning message * run fix mode ## Issue (#1403)
Codecov Report
@@ Coverage Diff @@
## master #1411 +/- ##
============================================
+ Coverage 83.38% 83.39% +0.01%
- Complexity 2552 2557 +5
============================================
Files 106 106
Lines 7570 7575 +5
Branches 2086 2087 +1
============================================
+ Hits 6312 6317 +5
Misses 372 372
Partials 886 886
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/test/kotlin/org/cqfn/diktat/ruleset/chapter3/files/NewlinesRuleWarnTest.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Outdated
Show resolved
Hide resolved
* add analytic fully-qualified * add test * correct warning message * run fix mode ## Issue (#1403)
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Fixed
Show fixed
Hide fixed
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Outdated
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.
@Arrgentum please check #1411 (comment) and also please rename this PR to something more meaningful and pay attention to the text of merge commit
dot qualified expression
* Add logic fully-qualified: not split `dot qualified expression` before first `call expression` * Add 1 fix test and 5 test examples * Correct warning message * run fix mode
Whats added
Add analytic fully qualified - split long
dot qualified expression
andsafe access expression
and and their combinations after firstcall expression
This pull request closes #1403
Actions checklist
long dot qualified expression