Skip to content

Commit

Permalink
Automating reporters in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Sep 23, 2018
1 parent 52529ca commit a1389d2
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 59 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,14 @@
# Violation Comments to GitLab changelog
Changelog of Violation Comments to GitLab plugin for Jenkins.
## Unreleased
### No issue

**Doc**


[52529caeb5b81d6](https://github.com/jenkinsci/violation-comments-to-gitlab-plugin/commit/52529caeb5b81d6d951b9375edd6a19fd9fadd2b) Tomas Bjerre *2018-09-22 18:21:14*


## 2.10
### GitHub [#3](https://github.com/jenkinsci/violation-comments-to-gitlab-plugin/issues/3) Include in Update Center

Expand Down
114 changes: 56 additions & 58 deletions README.md
Expand Up @@ -10,67 +10,65 @@ Example of supported reports are available [here](https://github.com/tomasbjerre

A number of **parsers** have been implemented. Some **parsers** can parse output from several **reporters**.

| Reporter | Parser | Notes
| --- | --- | ---
| [_ARM-GCC_](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm) | `CLANG`
| [_AndroidLint_](http://developer.android.com/tools/help/lint.html) | `ANDROIDLINT`
| [_AnsibleLint_](https://github.com/willthames/ansible-lint) | `FLAKE8` | With `-p`
| [_CLang_](https://clang-analyzer.llvm.org/) | `CLANG`
| [_CPD_](http://pmd.sourceforge.net/pmd-4.3.0/cpd.html) | `CPD`
| [_CPPCheck_](http://cppcheck.sourceforge.net/) | `CPPCHECK`
| [_CPPLint_](https://github.com/theandrewdavis/cpplint) | `CPPLINT`
| [_CSSLint_](https://github.com/CSSLint/csslint) | `CSSLINT`
| [_Checkstyle_](http://checkstyle.sourceforge.net/) | `CHECKSTYLE`
| [_CodeNarc_](http://codenarc.sourceforge.net/) | `CODENARC`
| [_Detekt_](https://github.com/arturbosch/detekt) | `CHECKSTYLE` | With `--output-format xml`.
| [_DocFX_](http://dotnet.github.io/docfx/) | `DOCFX`
| [_Doxygen_](https://www.stack.nl/~dimitri/doxygen/) | `CLANG`
| [_ESLint_](https://github.com/sindresorhus/grunt-eslint) | `CHECKSTYLE` | With `format: 'checkstyle'`.
| [_Findbugs_](http://findbugs.sourceforge.net/) | `FINDBUGS`
| [_Flake8_](http://flake8.readthedocs.org/en/latest/) | `FLAKE8`
| [_FxCop_](https://en.wikipedia.org/wiki/FxCop) | `FXCOP`
| [_GCC_](https://gcc.gnu.org/) | `CLANG`
| [_Gendarme_](http://www.mono-project.com/docs/tools+libraries/tools/gendarme/) | `GENDARME`
| [_GoLint_](https://github.com/golang/lint) | `GOLINT`
| [_GoVet_](https://golang.org/cmd/vet/) | `GOLINT` | Same format as GoLint.
| [_GoogleErrorProne_](https://github.com/google/error-prone) | `GOOGLEERRORPRONE`
| [_Infer_](http://fbinfer.com/) | `PMD` | Facebook Infer. With `--pmd-xml`.
| [_JCReport_](https://github.com/jCoderZ/fawkez/wiki/JcReport) | `JCREPORT`
| [_JSHint_](http://jshint.com/) | `JSHINT`
| [_KTLint_](https://github.com/shyiko/ktlint) | `CHECKSTYLE`
| [_Klocwork_](http://www.klocwork.com/products-services/klocwork/static-code-analysis) | `KLOCWORK`
| [_KotlinGradle_](https://github.com/JetBrains/kotlin) | `KOTLINGRADLE` | Output from Kotlin Gradle Plugin.
| [_KotlinMaven_](https://github.com/JetBrains/kotlin) | `KOTLINMAVEN` | Output from Kotlin Maven Plugin.
| _Lint_ | `LINT` | A common XML format, used by different linters.
| [_Mccabe_](https://pypi.python.org/pypi/mccabe) | `FLAKE8`
| [_MyPy_](https://pypi.python.org/pypi/mypy-lang) | `MYPY`
| [_NullAway_](https://github.com/uber/NullAway) | `GOOGLEERRORPRONE` | Same format as Google Error Prone.
| [_PCLint_](http://www.gimpel.com/html/pcl.htm) | `PCLINT` | PC-Lint using the same output format as the Jenkins warnings plugin, [_details here_](https://wiki.jenkins.io/display/JENKINS/PcLint+options)
| [_PHPCS_](https://github.com/squizlabs/PHP_CodeSniffer) | `CHECKSTYLE` | with `phpcs api.php --report=checkstyle`.
| [_PHPPMD_](https://phpmd.org/) | `PMD` | with `phpmd api.php xml ruleset.xml`.
| [_PMD_](https://pmd.github.io/) | `PMD`
| [_Pep8_](https://github.com/PyCQA/pycodestyle) | `FLAKE8`
| [_PerlCritic_](https://github.com/Perl-Critic) | `PERLCRITIC`
| [_PiTest_](http://pitest.org/) | `PITEST`
| [_PyDocStyle_](https://pypi.python.org/pypi/pydocstyle) | `PYDOCSTYLE`
| [_PyFlakes_](https://pypi.python.org/pypi/pyflakes) | `FLAKE8`
| [_PyLint_](https://www.pylint.org/) | `PYLINT` | With `pylint --output-format=parseable`.
| [_ReSharper_](https://www.jetbrains.com/resharper/) | `RESHARPER`
| [_RubyCop_](http://rubocop.readthedocs.io/en/latest/formatters/) | `CLANG` | With `rubycop -f clang file.rb`
| [_SbtScalac_](http://www.scala-sbt.org/) | `SBTSCALAC`
| [_Simian_](http://www.harukizaemon.com/simian/) | `SIMIAN`
| [_Spotbugs_](https://spotbugs.github.io/) | `FINDBUGS`
| [_StyleCop_](https://stylecop.codeplex.com/) | `STYLECOP`
| [_SwiftLint_](https://github.com/realm/SwiftLint) | `CHECKSTYLE` | With `--reporter checkstyle`.
| [_TSLint_](https://palantir.github.io/tslint/usage/cli/) | `CHECKSTYLE` | With `-t checkstyle`
| [_XMLLint_](http://xmlsoft.org/xmllint.html) | `XMLLINT`
| [_YAMLLint_](https://yamllint.readthedocs.io/en/stable/index.html) | `YAMLLINT` | With `-f parsable`
| [_ZPTLint_](https://pypi.python.org/pypi/zptlint) | `ZPTLINT`

| Reporter | Parser | Notes
| --- | --- | ---
| [_ARM-GCC_](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm) | `CLANG` |
| [_AndroidLint_](http://developer.android.com/tools/help/lint.html) | `ANDROIDLINT` |
| [_AnsibleLint_](https://github.com/willthames/ansible-lint) | `FLAKE8` | With `-p`
| [_CLang_](https://clang-analyzer.llvm.org/) | `CLANG` |
| [_CPD_](http://pmd.sourceforge.net/pmd-4.3.0/cpd.html) | `CPD` |
| [_CPPCheck_](http://cppcheck.sourceforge.net/) | `CPPCHECK` |
| [_CPPLint_](https://github.com/theandrewdavis/cpplint) | `CPPLINT` |
| [_CSSLint_](https://github.com/CSSLint/csslint) | `CSSLINT` |
| [_Checkstyle_](http://checkstyle.sourceforge.net/) | `CHECKSTYLE` |
| [_CodeNarc_](http://codenarc.sourceforge.net/) | `CODENARC` |
| [_Detekt_](https://github.com/arturbosch/detekt) | `CHECKSTYLE` | With `--output-format xml`.
| [_DocFX_](http://dotnet.github.io/docfx/) | `DOCFX` |
| [_Doxygen_](https://www.stack.nl/~dimitri/doxygen/) | `CLANG` |
| [_ESLint_](https://github.com/sindresorhus/grunt-eslint) | `CHECKSTYLE` | With `format: 'checkstyle'`.
| [_Findbugs_](http://findbugs.sourceforge.net/) | `FINDBUGS` |
| [_Flake8_](http://flake8.readthedocs.org/en/latest/) | `FLAKE8` |
| [_FxCop_](https://en.wikipedia.org/wiki/FxCop) | `FXCOP` |
| [_GCC_](https://gcc.gnu.org/) | `CLANG` |
| [_Gendarme_](http://www.mono-project.com/docs/tools+libraries/tools/gendarme/) | `GENDARME` |
| [_GoLint_](https://github.com/golang/lint) | `GOLINT` |
| [_GoVet_](https://golang.org/cmd/vet/) | `GOLINT` | Same format as GoLint.
| [_GoogleErrorProne_](https://github.com/google/error-prone) | `GOOGLEERRORPRONE` |
| [_Infer_](http://fbinfer.com/) | `PMD` | Facebook Infer. With `--pmd-xml`.
| [_JCReport_](https://github.com/jCoderZ/fawkez/wiki/JcReport) | `JCREPORT` |
| [_JSHint_](http://jshint.com/) | `JSHINT` |
| [_KTLint_](https://github.com/shyiko/ktlint) | `CHECKSTYLE` |
| [_Klocwork_](http://www.klocwork.com/products-services/klocwork/static-code-analysis) | `KLOCWORK` |
| [_KotlinGradle_](https://github.com/JetBrains/kotlin) | `KOTLINGRADLE` | Output from Kotlin Gradle Plugin.
| [_KotlinMaven_](https://github.com/JetBrains/kotlin) | `KOTLINMAVEN` | Output from Kotlin Maven Plugin.
| [_Lint_]() | `LINT` | A common XML format, used by different linters.
| [_Mccabe_](https://pypi.python.org/pypi/mccabe) | `FLAKE8` |
| [_MyPy_](https://pypi.python.org/pypi/mypy-lang) | `MYPY` |
| [_NullAway_](https://github.com/uber/NullAway) | `GOOGLEERRORPRONE` | Same format as Google Error Prone.
| [_PCLint_](http://www.gimpel.com/html/pcl.htm) | `PCLINT` | PC-Lint using the same output format as the Jenkins warnings plugin, [_details here_](https://wiki.jenkins.io/display/JENKINS/PcLint+options)
| [_PHPCS_](https://github.com/squizlabs/PHP_CodeSniffer) | `CHECKSTYLE` | With `phpcs api.php --report=checkstyle`.
| [_PHPPMD_](https://phpmd.org/) | `PMD` | With `phpmd api.php xml ruleset.xml`.
| [_PMD_](https://pmd.github.io/) | `PMD` |
| [_Pep8_](https://github.com/PyCQA/pycodestyle) | `FLAKE8` |
| [_PerlCritic_](https://github.com/Perl-Critic) | `PERLCRITIC` |
| [_PiTest_](http://pitest.org/) | `PITEST` |
| [_PyDocStyle_](https://pypi.python.org/pypi/pydocstyle) | `PYDOCSTYLE` |
| [_PyFlakes_](https://pypi.python.org/pypi/pyflakes) | `FLAKE8` |
| [_PyLint_](https://www.pylint.org/) | `PYLINT` | With `pylint --output-format=parseable`.
| [_ReSharper_](https://www.jetbrains.com/resharper/) | `RESHARPER` |
| [_RubyCop_](http://rubocop.readthedocs.io/en/latest/formatters/) | `CLANG` | With `rubycop -f clang file.rb`
| [_SbtScalac_](http://www.scala-sbt.org/) | `SBTSCALAC` |
| [_Simian_](http://www.harukizaemon.com/simian/) | `SIMIAN` |
| [_Spotbugs_](https://spotbugs.github.io/) | `FINDBUGS` |
| [_StyleCop_](https://stylecop.codeplex.com/) | `STYLECOP` |
| [_SwiftLint_](https://github.com/realm/SwiftLint) | `CHECKSTYLE` | With `--reporter checkstyle`.
| [_TSLint_](https://palantir.github.io/tslint/usage/cli/) | `CHECKSTYLE` | With `-t checkstyle`
| [_XMLLint_](http://xmlsoft.org/xmllint.html) | `XMLLINT` |
| [_YAMLLint_](https://yamllint.readthedocs.io/en/stable/index.html) | `YAMLLINT` | With `-f parsable`
| [_ZPTLint_](https://pypi.python.org/pypi/zptlint) | `ZPTLINT` |

Missing a format? Open an issue [here](https://github.com/tomasbjerre/violations-lib/issues)!


There is also:
* A [Gradle plugin](https://github.com/tomasbjerre/violation-comments-to-gitlab-gradle-plugin).
* A [Maven plugin](https://github.com/tomasbjerre/violation-comments-to-gitlab-maven-plugin).
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -198,7 +198,7 @@ Changelog of Violation Comments to GitLab plugin for Jenkins.
<dependency>
<groupId>se.bjurr.violations</groupId>
<artifactId>violation-comments-to-gitlab-lib</artifactId>
<version>1.49</version>
<version>1.50</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down
13 changes: 13 additions & 0 deletions src/test/java/se/bjurr/violations/UpdateReadmeTest.java
@@ -0,0 +1,13 @@
package se.bjurr.violations;

import java.io.IOException;
import org.junit.Test;
import se.bjurr.violations.lib.util.Utils;

public class UpdateReadmeTest {

@Test
public void doUpdateReadmeWithReporters() throws IOException {
Utils.updateReadmeWithReporters();
}
}

0 comments on commit a1389d2

Please sign in to comment.