Skip to content
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

Merged
merged 4 commits into from
Jan 13, 2021
Merged

Minor infrastructure improvements #700

merged 4 commits into from
Jan 13, 2021

Conversation

petertrr
Copy link
Member

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:
* 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
Copy link

codecov bot commented Jan 12, 2021

Codecov Report

Merging #700 (45ca075) into master (cea7a7a) will not change coverage.
The diff coverage is 80.00%.

Impacted file tree graph

@@            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           
Flag Coverage Δ Complexity Δ
unittests 79.94% <80.00%> (ø) 0.00 <4.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...qfn/diktat/ruleset/utils/search/VariablesSearch.kt 86.20% <ø> (ø) 19.00 <0.00> (ø)
...tlin/org/cqfn/diktat/ruleset/utils/AstNodeUtils.kt 81.09% <50.00%> (ø) 0.00 <0.00> (ø)
...at/ruleset/rules/identifiers/LocalVariablesRule.kt 90.21% <100.00%> (ø) 24.00 <4.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cea7a7a...45ca075. Read the comment docs.

Comment on lines +187 to 188
val firstUsage = usages.minByOrNull { it.node.getLineNumber() }!!
val firstUsageScope = firstUsage.getParentOfType<KtBlockExpression>(true)
Copy link
Collaborator

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?

Copy link
Member Author

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 <48321920+aktsay6@users.noreply.github.com>
Copy link
Collaborator

@aktsay6 aktsay6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@petertrr petertrr merged commit 5cb0ce5 into master Jan 13, 2021
@petertrr petertrr deleted the infra/minor-fixes branch January 13, 2021 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants