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

Kotlin version #730

Merged
merged 17 commits into from
Feb 1, 2021
Merged

Kotlin version #730

merged 17 commits into from
Feb 1, 2021

Conversation

kentr0w
Copy link
Collaborator

@kentr0w kentr0w commented Jan 26, 2021

What's done:

Added parameter
closes #728

### What's done:
   Added parameter
@kentr0w kentr0w added the enhancement New feature or request label Jan 26, 2021
@kentr0w kentr0w requested review from petertrr and aktsay6 January 26, 2021 12:04
@codecov
Copy link

codecov bot commented Jan 26, 2021

Codecov Report

Merging #730 (e73c419) into master (5a4e738) will decrease coverage by 0.01%.
The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #730      +/-   ##
============================================
- Coverage     79.97%   79.96%   -0.02%     
  Complexity     1967     1967              
============================================
  Files            94       94              
  Lines          5054     5066      +12     
  Branches       1620     1623       +3     
============================================
+ Hits           4042     4051       +9     
+ Misses          245      241       -4     
- Partials        767      774       +7     
Flag Coverage Δ Complexity Δ
unittests 79.96% <50.00%> (-0.02%) 0.00 <1.00> (ø)

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

Impacted Files Coverage Δ Complexity Δ
...fn/diktat/common/config/rules/RulesConfigReader.kt 41.46% <30.00%> (+12.43%) 4.00 <0.00> (ø)
...uleset/rules/chapter6/classes/InlineClassesRule.kt 75.00% <100.00%> (+2.27%) 23.00 <1.00> (+1.00)
...tat/ruleset/rules/chapter3/BlockStructureBraces.kt 78.76% <0.00%> (-0.89%) 51.00% <0.00%> (-1.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 5a4e738...e73c419. Read the comment docs.

diktat-analysis.yml Show resolved Hide resolved
diktat-analysis.yml Outdated Show resolved Hide resolved
### What's done:
   Added default value
### What's done:
   Fixed after review
### What's done:
   Fixed after review
### What's done:
   Fixed after review
### What's done:
   Fixed after review
Copy link
Member

@petertrr petertrr left a comment

Choose a reason for hiding this comment

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

Looks good; we have merged rule about inline classes into master, please try to use your mechanism to enable that rules for kotlin >= 1.3 and add corresponding tests.

### What's done:
   Fixed after review
### What's done:
   Fixed according our code-style
### What's done:
   Fixed according our code-style
# Conflicts:
#	diktat-analysis.yml
#	diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt
#	diktat-rules/src/main/resources/diktat-analysis-huawei.yml
#	diktat-rules/src/main/resources/diktat-analysis.yml
Copy link
Member

@petertrr petertrr left a comment

Choose a reason for hiding this comment

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

We should also check that we read value from config correctly, in some test where we read yaml. Smoke test or RulesConfigYamlTest.

### What's done:
   Fixed after review, added more tests
Copy link
Member

@petertrr petertrr left a comment

Choose a reason for hiding this comment

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

almost there

### What's done:
   Fixed after review
# Conflicts:
#	diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt
### What's done:
Fixed bugs accordign our code-style
Copy link
Member

@petertrr petertrr left a comment

Choose a reason for hiding this comment

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

Please add tests to ConfigReaderTest and it'll be done.

### What's done:
   Fixed after review
### What's done:
   Fixed according our code-style
@kentr0w kentr0w merged commit 3293e8d into master Feb 1, 2021
@kentr0w kentr0w deleted the feature/kotlin-version branch February 1, 2021 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support language version in diktat as a configuration property
2 participants