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

Minor refactors around --create-baseline #2477

Merged
merged 3 commits into from
Mar 21, 2020
Merged

Minor refactors around --create-baseline #2477

merged 3 commits into from
Mar 21, 2020

Conversation

BraisGabin
Copy link
Member

Please, check the second commit carefully. I think that the test was wrong, but I'm not 100% sure.

@codecov-io
Copy link

codecov-io commented Mar 21, 2020

Codecov Report

Merging #2477 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master   #2477      +/-   ##
===========================================
+ Coverage     83.29%   83.3%   +0.01%     
+ Complexity     2185    2184       -1     
===========================================
  Files           360     360              
  Lines          6207    6206       -1     
  Branches       1139    1137       -2     
===========================================
  Hits           5170    5170              
  Misses          463     463              
+ Partials        574     573       -1
Impacted Files Coverage Δ Complexity Δ
...b/arturbosch/detekt/cli/baseline/BaselineFacade.kt 90% <100%> (ø) 10 <2> (ø) ⬇️
.../io/gitlab/arturbosch/detekt/cli/runners/Runner.kt 94.11% <100%> (+1.8%) 11 <0> (-1) ⬇️
.../arturbosch/detekt/rules/style/ForbiddenComment.kt 93.33% <0%> (ø) 7% <0%> (ø) ⬇️

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 1a2df17...292c52d. Read the comment docs.

"--create-baseline",
"--report", "txt:$tmpReport",
"--config-resource", "/configs/max-issues-0.yml"
))

Runner(cliArgs).execute()

assertThat(Files.readAllLines(tmpReport)).hasSize(1)
assertThat(tmpReport).hasContent("")
Copy link
Member

Choose a reason for hiding this comment

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

TIL 👍

@arturbosch arturbosch merged commit ee1b6c8 into detekt:master Mar 21, 2020
"--create-baseline",
"--report", "txt:$tmpReport",
"--config-resource", "/configs/max-issues-0.yml"
))

Runner(cliArgs).execute()

assertThat(Files.readAllLines(tmpReport)).hasSize(1)
Copy link
Member

Choose a reason for hiding this comment

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

I think it was just the newline ending asserted here.

@arturbosch arturbosch added this to the 1.7.0 milestone Mar 21, 2020
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.

3 participants