-
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
Making diktat consistent with own code style #318
Conversation
### What's done: * Code style
### What's done: * Code style
Codecov Report
@@ Coverage Diff @@
## master #318 +/- ##
=========================================
Coverage 82.29% 82.30%
Complexity 1016 1016
=========================================
Files 52 52
Lines 2627 2628 +1
Branches 830 830
=========================================
+ Hits 2162 2163 +1
Misses 169 169
Partials 296 296
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: * Code style
### What's done: * Code style
### What's done: * Update diktat_snapshot.yml
### What's done: * Update diktat_snapshot.yml
### What's done: * Update diktat_snapshot.yml
### What's done: * Update diktat_snapshot.yml
### What's done: * Update diktat_snapshot.yml
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
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
(it.findChildByType(MODIFIER_LIST) == null || it.findLeafWithSpecificType(PRIVATE_KEYWORD) != null) | ||
&& it.getIdentifierName()!!.text.contains(loggerPropertyRegex) | ||
}.toMutableList() | ||
val loggers = allProperties |
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.
I guess we will need to change this logic:
allProperties.filter
.foo()
.bar()
is valid
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.
So like if first call in chain is multiline lamba, then it should start on the same line as initial receiver?
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.
that should be possible, not prohibited. Both cases should be valid:
a.foo
.foo
a
.foo
.foo
but a.foo.foo is invalid
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.
Create #326 for this
...framework/src/main/kotlin/org/cqfn/diktat/test/framework/processing/TestProcessingFactory.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.
lgtm
run: | | ||
mvn -B install -DskipTests=true | ||
mvn -B antrun:run@diktat --pl diktat-common || echo "LintErrors encountered" | ||
mvn -B antrun:run@diktat --pl diktat-test-framework || echo "LintErrors encountered" |
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.
but why not to make echo "LintErrors encountered in test-framework"
"in diktat", e.t.c
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.
I just thought it would be a small line in build log, used as a workaround to continue after error, and the important information is in maven output
What's done:
Related issue #33
Issues discovered:
#317#320 #321 #324 #325