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

Incorrect fix of null-safety rule #857

Merged
merged 12 commits into from
Apr 30, 2021
Merged

Conversation

kentr0w
Copy link
Collaborator

@kentr0w kentr0w commented Apr 28, 2021

What's done:

### What's done:
Fixed bug
Created tests
@kentr0w kentr0w added the bug Something isn't working label Apr 28, 2021
@kentr0w kentr0w requested review from petertrr and kgevorkyan April 28, 2021 08:52
@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #857 (af0bf24) into master (4c81b3f) will decrease coverage by 0.00%.
The diff coverage is 79.16%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #857      +/-   ##
============================================
- Coverage     80.43%   80.42%   -0.01%     
- Complexity     2185     2199      +14     
============================================
  Files           101      101              
  Lines          5637     5671      +34     
  Branches       1734     1747      +13     
============================================
+ Hits           4534     4561      +27     
- Misses          264      265       +1     
- Partials        839      845       +6     
Flag Coverage Δ Complexity Δ
unittests 80.42% <79.16%> (-0.01%) 2199.00 <10.00> (+14.00) ⬇️

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

Impacted Files Coverage Δ Complexity Δ
...fn/diktat/ruleset/rules/chapter4/NullChecksRule.kt 78.04% <78.26%> (+2.49%) 49.00 <10.00> (+14.00)
...tlin/org/cqfn/diktat/ruleset/constants/Warnings.kt 98.60% <100.00%> (+<0.01%) 13.00 <0.00> (+1.00)
.../diktat/ruleset/rules/chapter3/NullableTypeRule.kt 80.51% <0.00%> (-1.30%) 40.00% <0.00%> (ø%)
...g/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt 83.65% <0.00%> (-0.49%) 73.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 4c81b3f...af0bf24. Read the comment docs.

### What's done:
Fixed bug
Fixed according to our code style
kentr0w added 5 commits April 29, 2021 13:01
### What's done:
Fixed logic
### What's done:
Fixed bug with test
### What's done:
Fixed according to our code style
### What's done:
Fixed according to our code style
### What's done:
Fixed according to our code style
### What's done:
Fixed after review
kentr0w added 3 commits April 30, 2021 14:40
### What's done:
Fixed logic and added more tests
### What's done:
Fixed according to our code-style
…x-null-safety

# Conflicts:
#	diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter4/NullChecksRule.kt
@kentr0w kentr0w merged commit 076ec56 into master Apr 30, 2021
@kentr0w kentr0w deleted the bugfix/incorrect-fix-null-safety branch April 30, 2021 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect fix of null-safety rule
3 participants