From 18130d9e88bf2a6efcfde9b212ba0930e7804874 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Fri, 3 Jan 2020 08:11:50 +0100 Subject: [PATCH] Add support for sonar issue report formats >= v7.5 tomasbjerre/violations-lib#80 --- README.md | 5 ++++- build.gradle | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c0f06d9..f54763a 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output | [_CPPLint_](https://github.com/theandrewdavis/cpplint) | `CPPLINT` | | [_CSSLint_](https://github.com/CSSLint/csslint) | `CSSLINT` | | [_Checkstyle_](http://checkstyle.sourceforge.net/) | `CHECKSTYLE` | +| [_CodeClimate_](https://codeclimate.com/) | `CODECLIMATE` | | [_CodeNarc_](http://codenarc.sourceforge.net/) | `CODENARC` | | [_Detekt_](https://github.com/arturbosch/detekt) | `CHECKSTYLE` | With `--output-format xml`. | [_DocFX_](http://dotnet.github.io/docfx/) | `DOCFX` | @@ -76,6 +77,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output | [_GoVet_](https://golang.org/cmd/vet/) | `GOLINT` | Same format as GoLint. | [_GolangCI-Lint_](https://github.com/golangci/golangci-lint/) | `CHECKSTYLE` | With `--out-format=checkstyle`. | [_GoogleErrorProne_](https://github.com/google/error-prone) | `GOOGLEERRORPRONE` | +| [_HadoLint_](https://github.com/hadolint/hadolint/) | `CHECKSTYLE` | With `-f checkstyle` | [_IAR_](https://www.iar.com/iar-embedded-workbench/) | `IAR` | With `--no_wrap_diagnostics` | [_Infer_](http://fbinfer.com/) | `PMD` | Facebook Infer. With `--pmd-xml`. | [_JCReport_](https://github.com/jCoderZ/fawkez/wiki/JcReport) | `JCREPORT` | @@ -97,6 +99,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output | [_Pep8_](https://github.com/PyCQA/pycodestyle) | `FLAKE8` | | [_PerlCritic_](https://github.com/Perl-Critic) | `PERLCRITIC` | | [_PiTest_](http://pitest.org/) | `PITEST` | +| [_ProtoLint_](https://github.com/yoheimuta/protolint) | `PROTOLINT` | | [_Puppet-Lint_](http://puppet-lint.com/) | `CLANG` | With `-log-format %{fullpath}:%{line}:%{column}: %{kind}: %{message}` | [_PyDocStyle_](https://pypi.python.org/pypi/pydocstyle) | `PYDOCSTYLE` | | [_PyFlakes_](https://pypi.python.org/pypi/pyflakes) | `FLAKE8` | @@ -106,7 +109,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output | [_SbtScalac_](http://www.scala-sbt.org/) | `SBTSCALAC` | | [_Scalastyle_](http://www.scalastyle.org/) | `CHECKSTYLE` | | [_Simian_](http://www.harukizaemon.com/simian/) | `SIMIAN` | -| [_Sonar_](https://www.sonarqube.org/) | `SONAR` | With `mvn sonar:sonar -Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json`. Removed in 7.7, see [SONAR-11670](https://jira.sonarsource.com/browse/SONAR-11670). +| [_Sonar_](https://www.sonarqube.org/) | `SONAR` | With `mvn sonar:sonar -Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json`. Removed in 7.7, see [SONAR-11670](https://jira.sonarsource.com/browse/SONAR-11670) but can be retrieved with: `curl --silent 'http://sonar-server/api/issues/search?componentKeys=unique-key&resolved=false' \| jq -f sonar-report-builder.jq > sonar-report.json`. | [_Spotbugs_](https://spotbugs.github.io/) | `FINDBUGS` | | [_StyleCop_](https://stylecop.codeplex.com/) | `STYLECOP` | | [_SwiftLint_](https://github.com/realm/SwiftLint) | `CHECKSTYLE` | With `--reporter checkstyle`. diff --git a/build.gradle b/build.gradle index 0c0d6af..8e7123e 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ apply from: project.buildscript.classLoader.getResource('violations.gradle').toU dependencies { compile 'se.bjurr.violations:violation-comments-to-bitbucket-cloud-lib:1.11' - compile 'se.bjurr.violations:violations-lib:1.96' + compile 'se.bjurr.violations:violations-lib:1.108' compile 'se.softhouse:jargo:0.1.1' compile 'org.slf4j:slf4j-simple:1.8.0-beta2' }