Skip to content

Improves in IgnoredReturnValue #3174

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

Merged
merged 5 commits into from
Oct 26, 2020
Merged

Improves in IgnoredReturnValue #3174

merged 5 commits into from
Oct 26, 2020

Conversation

BraisGabin
Copy link
Member

Last night I was working on #3170. I couldn't find the way to fix it but I did some refactors around the code/test that make it the code more maintenable and create the test that should be changed to show the error.

What do you think about merging the comment with FIXME? We have the error right now, this comment only points out it.

@codecov
Copy link

codecov bot commented Oct 26, 2020

Codecov Report

Merging #3174 into master will increase coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3174      +/-   ##
============================================
+ Coverage     79.53%   79.55%   +0.01%     
+ Complexity     2603     2602       -1     
============================================
  Files           438      438              
  Lines          7922     7922              
  Branches       1510     1510              
============================================
+ Hits           6301     6302       +1     
+ Misses          821      820       -1     
  Partials        800      800              
Impacted Files Coverage Δ Complexity Δ
...arturbosch/detekt/rules/bugs/IgnoredReturnValue.kt 79.16% <0.00%> (+2.08%) 17.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 3bfdae8...822433a. Read the comment docs.

Copy link
Member

@schalkms schalkms left a comment

Choose a reason for hiding this comment

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

I'm fine with it, since the modifications are an improvement (especially the unnecessary smart cast).

@cortinico
Copy link
Member

What do you think about merging the comment with FIXME? We have the error right now, this comment only points out it.

Fine for me 👍 It makes clearer that we have that scenario to address.

@schalkms schalkms merged commit 7364edc into detekt:master Oct 26, 2020
@arturbosch arturbosch added this to the 1.15.0 milestone Nov 2, 2020
@arturbosch arturbosch added the housekeeping Marker for housekeeping tasks and refactorings label Nov 2, 2020
arturbosch pushed a commit that referenced this pull request Nov 15, 2020
* Improve tests

* Add missing packages

* Improve tests

* Improve code

* Add fixme in the wrong test
arturbosch pushed a commit that referenced this pull request Dec 21, 2020
* Improve tests

* Add missing packages

* Improve tests

* Improve code

* Add fixme in the wrong test
arturbosch pushed a commit that referenced this pull request Jan 16, 2021
* Improve tests

* Add missing packages

* Improve tests

* Improve code

* Add fixme in the wrong test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Marker for housekeeping tasks and refactorings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants