-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
### What's done: - Fixing gradle plugin reporter to support Sarif
d2dd1fa
to
5c78bab
Compare
5c78bab
to
2b76e86
Compare
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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())) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
…ktat-static-analysis/diKTat into bugfix/reporter-fixing-gradle
Co-authored-by: Peter Trifanov <[email protected]>
diktat-gradle-plugin/src/main/kotlin/org/cqfn/diktat/plugin/gradle/DiktatJavaExecTaskBase.kt
Show resolved
Hide resolved
…nto bugfix/reporter-fixing-gradle
There was a problem hiding this 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
…bugfix/reporter-fixing-gradle
…alysis-dev/diktat into bugfix/reporter-fixing-gradle
…ktat-static-analysis/diKTat into bugfix/reporter-fixing-gradle
### What's done: - Fixing diktat issues
What's done:
This pull request partially closes #1179