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

Add test for BaselineHandler #2462

Merged
merged 3 commits into from Mar 21, 2020
Merged

Add test for BaselineHandler #2462

merged 3 commits into from Mar 21, 2020

Conversation

schalkms
Copy link
Member

The BaselineHandler xml parser should handle empty ID entries.

@@ -6,5 +6,6 @@
</Blacklist>
<Whitelist>
<ID>FeatureEnvy:Signature</ID>
<ID></ID>
Copy link
Member

Choose a reason for hiding this comment

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

It does, but should it? Allowing this seems like a way to allow noise in our baselines.

Copy link
Member

Choose a reason for hiding this comment

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

Agree, it does not add any value, can we throw an error("") for this?

@arturbosch arturbosch added this to the 1.7.0 milestone Mar 19, 2020
The BaselineHandler xml parser should handle empty ID entries.
* Move invalid XML ID tag to own file
* Make BaselineHandler visibility internal
@detekt detekt deleted a comment from codecov-io Mar 20, 2020
@codecov-io
Copy link

Codecov Report

Merging #2462 into master will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2462      +/-   ##
============================================
+ Coverage     83.24%   83.29%   +0.04%     
- Complexity     2183     2186       +3     
============================================
  Files           359      359              
  Lines          6208     6208              
  Branches       1139     1139              
============================================
+ Hits           5168     5171       +3     
+ Misses          465      464       -1     
+ Partials        575      573       -2     
Impacted Files Coverage Δ Complexity Δ
.../arturbosch/detekt/cli/baseline/BaselineHandler.kt 77.77% <100.00%> (+5.55%) 14.00 <1.00> (+2.00)
...b/arturbosch/detekt/cli/baseline/BaselineFacade.kt 90.00% <0.00%> (+10.00%) 10.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 a7f8866...faa6dab. Read the comment docs.

@arturbosch arturbosch merged commit cf856c7 into detekt:master Mar 21, 2020
@schalkms schalkms deleted the BaselineHandler-test branch March 24, 2020 23:01
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.

None yet

4 participants