-
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
Minor infrastructure improvements #700
Conversation
### What's done: * Fixed kotlin compiler warnings * Updated version in build.gradle.kts for diktat-gradle-plugin * Added update of info/buildSrc/gradle.properties version during release workflow * Run gradle functional tests in parallel
### What's done: * One-phase build in build_and_test.yml instead of two
Codecov Report
@@ Coverage Diff @@
## master #700 +/- ##
=========================================
Coverage 79.94% 79.94%
Complexity 1839 1839
=========================================
Files 87 87
Lines 4801 4801
Branches 1549 1549
=========================================
Hits 3838 3838
Misses 241 241
Partials 722 722
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
val firstUsage = usages.minByOrNull { it.node.getLineNumber() }!! | ||
val firstUsageScope = firstUsage.getParentOfType<KtBlockExpression>(true) |
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.
Isn't it gonna cause NPE if it returns null?
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.
min
returns nullable too, they've just changed function names. We already had !!
there, because we should always be able to sort by line number
Co-authored-by: Alexander Tsay <[email protected]>
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: