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

Gradle and Maven Plugins: reporter types are fixed and updated #1180

Merged
merged 13 commits into from
Jan 26, 2022

Conversation

orchestr7
Copy link
Member

@orchestr7 orchestr7 commented Jan 20, 2022

What's done:

  • Fixing gradle plugin reporter to support Sarif
  • Adding the support of reporters to maven plugin

This pull request partially closes #1179

### What's done:
- Fixing gradle plugin reporter to support Sarif
@orchestr7 orchestr7 marked this pull request as draft January 20, 2022 15:46
@orchestr7 orchestr7 force-pushed the bugfix/reporter-fixing-gradle branch 2 times, most recently from d2dd1fa to 5c78bab Compare January 23, 2022 19:04
@orchestr7 orchestr7 force-pushed the bugfix/reporter-fixing-gradle branch from 5c78bab to 2b76e86 Compare January 23, 2022 20:18
@orchestr7 orchestr7 changed the title plugin reporter fixes Gradle Plugin: reporter fixed and updated Jan 23, 2022
@codecov
Copy link

codecov bot commented Jan 23, 2022

Codecov Report

Merging #1180 (5aea2cb) into master (3de4c44) will decrease coverage by 0.12%.
The diff coverage is 40.90%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1180      +/-   ##
============================================
- Coverage     84.64%   84.52%   -0.13%     
+ Complexity     2519     2515       -4     
============================================
  Files           103      103              
  Lines          7055     7055              
  Branches       1899     1902       +3     
============================================
- Hits           5972     5963       -9     
- Misses          302      306       +4     
- Partials        781      786       +5     
Flag Coverage Δ
unittests 84.52% <40.90%> (-0.13%) ⬇️

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

Impacted Files Coverage Δ
...lin/org/cqfn/diktat/plugin/maven/DiktatBaseMojo.kt 59.72% <26.66%> (-11.25%) ⬇️
...qfn/diktat/plugin/gradle/DiktatJavaExecTaskBase.kt 89.41% <66.66%> (+0.99%) ⬆️
...n/org/cqfn/diktat/plugin/gradle/DiktatExtension.kt 100.00% <100.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 3de4c44...5aea2cb. Read the comment docs.

@orchestr7 orchestr7 marked this pull request as ready for review January 23, 2022 20:29
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
private fun setReporterType(diktatExtension: DiktatExtension, flag: java.lang.StringBuilder) {
val name = diktatExtension.reporterType
val validReporterTypes = listOf("sarif", "plain", "json", "html")
if (name.isEmpty() || !validReporterTypes.contains(name.trim())) {
Copy link
Member

Choose a reason for hiding this comment

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

What about custom reporters here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought we talked about that, no? I think that we should not give people any liberty and a chance to use their own formats. We are already fucked up with with custom formats. It's time to stop it. SARIF - is the solution

@orchestr7 orchestr7 changed the title Gradle Plugin: reporter fixed and updated Gradle and Maven Plugin: reporter fixed and updated Jan 26, 2022
@orchestr7 orchestr7 changed the title Gradle and Maven Plugin: reporter fixed and updated Gradle and Maven Plugins: reporter types are fixed and updated Jan 26, 2022
Copy link
Member

@petertrr petertrr left a comment

Choose a reason for hiding this comment

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

LGTM regarding changes for maven plugin too

@orchestr7 orchestr7 merged commit 237cb2c into master Jan 26, 2022
@orchestr7 orchestr7 deleted the bugfix/reporter-fixing-gradle branch January 26, 2022 14:45
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.

Get on track to GitHub actions and SARIF
2 participants