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

Update to kotlin 1.4 #389

Merged
merged 13 commits into from
Oct 14, 2020
Merged

Update to kotlin 1.4 #389

merged 13 commits into from
Oct 14, 2020

Conversation

petertrr
Copy link
Member

What's done:

  • Updated kotlin
  • Updated ktlint
  • Changed kotlin-stdlib dependency to kotlin-stdlib-jdk8
  • pom.xml cleanup
  • Fixed kotlin compiler warnings

This pull request closes #250

### What's done:
* Updated kotlin
* Updated ktlint
* Changed kotlin-stdlib dependency to kotlin-stdlib-jdk8
* pom.xml cleanup
* Fixed kotlin compiler warnings
@codecov
Copy link

codecov bot commented Oct 12, 2020

Codecov Report

Merging #389 into master will decrease coverage by 0.60%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #389      +/-   ##
============================================
- Coverage     83.16%   82.55%   -0.61%     
- Complexity     1331     1340       +9     
============================================
  Files            65       65              
  Lines          3249     3251       +2     
  Branches       1027     1042      +15     
============================================
- Hits           2702     2684      -18     
- Misses          176      177       +1     
- Partials        371      390      +19     
Flag Coverage Δ Complexity Δ
#unittests 82.55% <100.00%> (-0.61%) 1340.00 <0.00> (+9.00) ⬇️

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

Impacted Files Coverage Δ Complexity Δ
.../org/cqfn/diktat/ruleset/rules/kdoc/KdocMethods.kt 90.72% <100.00%> (+0.19%) 69.00 <0.00> (ø)
...g/cqfn/diktat/ruleset/utils/FunctonASTNodeUtils.kt 69.23% <0.00%> (-3.85%) 0.00% <0.00%> (ø%)
.../ruleset/rules/LongNumericalValuesSeparatedRule.kt 91.52% <0.00%> (-3.39%) 24.00% <0.00%> (ø%)
...kotlin/org/cqfn/diktat/ruleset/rules/LineLength.kt 84.15% <0.00%> (-2.98%) 75.00% <0.00%> (+1.00%) ⬇️
...diktat/ruleset/rules/comments/HeaderCommentRule.kt 86.25% <0.00%> (-2.50%) 36.00% <0.00%> (ø%)
...tlin/org/cqfn/diktat/ruleset/utils/KotlinParser.kt 85.10% <0.00%> (-2.13%) 18.00% <0.00%> (ø%)
...cqfn/diktat/ruleset/rules/comments/CommentsRule.kt 97.95% <0.00%> (-2.05%) 19.00% <0.00%> (ø%)
.../org/cqfn/diktat/ruleset/rules/IdentifierNaming.kt 81.41% <0.00%> (-1.77%) 73.00% <0.00%> (+1.00%) ⬇️
...eset/utils/search/VariablesWithAssignmentSearch.kt 76.92% <0.00%> (-1.65%) 6.00% <0.00%> (ø%)
...fn/diktat/ruleset/rules/kdoc/CommentsFormatting.kt 69.62% <0.00%> (-1.49%) 64.00% <0.00%> (+3.00%) ⬇️
... and 6 more

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 6872843...cf821ed. Read the comment docs.

### What's done:
* Try to rollback to stdlib from stdlib-jdk8
### What's done:
This reverts commit 75dae5b
### What's done:
* Use old methods for min
### What's done:
* Compile with api version 1.3
### What's done:
* Use current kotlin api version
### What's done:
* Use new methods instead of deprecated
### What's done:
* Use apiVersion 1.3
</goals>
<configuration>
<sourceDirs>
<source>src/main/java</source>
Copy link
Member

Choose a reason for hiding this comment

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

no more java?

Copy link
Member Author

Choose a reason for hiding this comment

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

well, there hasn't been any already, so I decided to remove it since it's not needed :)

Copy link
Member

@orchestr7 orchestr7 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 8711ab6 into master Oct 14, 2020
@petertrr petertrr deleted the feature/kotlin-1.4 branch October 14, 2020 08:34
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.

Migrate to koltin 1.4
2 participants