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

Improve autofix in AVOID_NULL_CHECKS rule #1201

Merged

Conversation

sanyavertolet
Copy link
Member

@sanyavertolet sanyavertolet commented Jan 31, 2022

This pull request closes #899

Actions checklist

  • improved autofix: now we don't use let and run in some cases
  • added tests on fixer

### What's done:
 * improved autofix: now we don't use `let` and `run` in some cases
 * added tests

(#899)
sanyavertolet and others added 8 commits January 31, 2022 18:12
### What's done:
 * improved autofix: now we don't use `let` and `run` in some cases
 * added tests

(#899)
…_null_checks_rule' into feature/improve_autofix_in_avoid_null_checks_rule
### What's done:
 * improved autofix: now we don't use `let` and `run` in some cases
 * added tests

(#899)
### What's done:
 * improved autofix: now we don't use `let` and `run` in some cases
 * added tests

(#899)
…_null_checks_rule' into feature/improve_autofix_in_avoid_null_checks_rule
@codecov
Copy link

codecov bot commented Jan 31, 2022

Codecov Report

Merging #1201 (9a8a034) into master (cd0f00c) will increase coverage by 0.01%.
The diff coverage is 77.77%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1201      +/-   ##
============================================
+ Coverage     83.81%   83.83%   +0.01%     
- Complexity     2528     2536       +8     
============================================
  Files           103      103              
  Lines          7141     7137       -4     
  Branches       1938     1937       -1     
============================================
- Hits           5985     5983       -2     
  Misses          352      352              
+ Partials        804      802       -2     
Flag Coverage Δ
unittests 83.83% <77.77%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
...qfn/diktat/plugin/gradle/DiktatJavaExecTaskBase.kt 80.95% <ø> (ø)
...fn/diktat/ruleset/rules/chapter4/NullChecksRule.kt 84.96% <77.77%> (+1.02%) ⬆️

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 cd0f00c...9a8a034. Read the comment docs.

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.

don't merge it until the previous releases will be made

@orchestr7
Copy link
Member

orchestr7 commented Feb 9, 2022

could you please also update https://github.com/diktat-static-analysis/ all over the code to https://github.com/analysis-dev in this PR

orchestr7 and others added 7 commits February 9, 2022 22:24
### What's done:
 * improved autofix: now we don't use `let` and `run` in some cases
 * added tests

(#1149)
### What's done:
 * improved autofix: now we don't use `let` and `run` in some cases
 * improved autofix: now we count statements, not lines
 * added tests

(#1201)
### What's done:
 * improved autofix: now we don't use `let` and `run` in some cases
 * improved autofix: now we count statements, not lines
 * added tests

(#1201)
### What's done:
 * improved autofix: now we don't use `let` and `run` in some cases
 * improved autofix: now we count statements, not lines
 * added tests

(#1201)
@sanyavertolet sanyavertolet merged commit e8b4a51 into master Mar 9, 2022
@sanyavertolet sanyavertolet deleted the feature/improve_autofix_in_avoid_null_checks_rule branch March 9, 2022 17:40
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.

Improve autofix in AVOID_NULL_CHECKS rule
3 participants