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

Execute tool in sarif mode before report checking #498

Merged
merged 7 commits into from
Feb 16, 2023
Merged

Conversation

kgevorkyan
Copy link
Member

@kgevorkyan kgevorkyan commented Feb 15, 2023

What's done:

  • Execute tool before checking the sarif report, this logic allows:

    1. Support checking .sarif from stdout
    2. Rewrite existing sarif report, if actual[Warnings|Fix]SarifFileName was provided and something were changed in report
  • Minor refactoring

  • Add possible config for one of the test (however it's not required, since save-cli will look into stdout by default)

Part of #497

### What's done:
* WIP
### What's done:
* WIP
### What's done:
* WIP
@kgevorkyan kgevorkyan linked an issue Feb 15, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Feb 15, 2023

JUnit Tests (Linux, EnricoMi/publish-unit-test-result-action@v1)

245 tests  ±0   221 ✔️ ±0   10m 57s ⏱️ + 2m 27s
  48 suites ±0     24 💤 ±0 
  48 files   ±0       0 ±0 

Results for commit 00eebf9. ± Comparison against base commit daf00e5.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Feb 15, 2023

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v1)

245 tests  ±0   221 ✔️ ±0   18m 14s ⏱️ + 4m 45s
  48 suites ±0     24 💤 ±0 
  48 files   ±0       0 ±0 

Results for commit 00eebf9. ± Comparison against base commit daf00e5.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Feb 15, 2023

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v1)

245 tests  ±0   221 ✔️ ±0   11m 49s ⏱️ -18s
  48 suites ±0     24 💤 ±0 
  48 files   ±0       0 ±0 

Results for commit 00eebf9. ± Comparison against base commit daf00e5.

♻️ This comment has been updated with latest results.

### What's done:
* WIP
### What's done:
* WIP
@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Merging #498 (00eebf9) into main (daf00e5) will increase coverage by 0.18%.
The diff coverage is 40.54%.

@@             Coverage Diff              @@
##               main     #498      +/-   ##
============================================
+ Coverage     47.52%   47.70%   +0.18%     
  Complexity      159      159              
============================================
  Files            53       53              
  Lines          1856     1855       -1     
  Branches        316      316              
============================================
+ Hits            882      885       +3     
+ Misses          841      838       -3     
+ Partials        133      132       -1     
Flag Coverage Δ
unittests 47.70% <40.54%> (+0.18%) ⬆️

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

Impacted Files Coverage Δ
...tlin/com/saveourtool/save/plugins/fix/FixPlugin.kt 59.59% <30.00%> (ø)
...lin/com/saveourtool/save/plugin/warn/WarnPlugin.kt 61.81% <44.00%> (+1.93%) ⬆️
...m/saveourtool/save/plugin/warn/WarnPluginConfig.kt 50.38% <50.00%> (+0.38%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

### What's done:
* WIP
### What's done:
* WIP
@kgevorkyan kgevorkyan marked this pull request as ready for review February 15, 2023 15:42
@kgevorkyan kgevorkyan merged commit c520f6b into main Feb 16, 2023
@kgevorkyan kgevorkyan deleted the bufix/sarif branch February 16, 2023 08:46
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

2 participants