https://github.com/unchai/checkstyle-github-maven-plugin
A maven plugin that leaves comment of the result of a "Checkstyle" on github's pull request.
https://github.com/unchai/checkstyle-github-maven-plugin
checkstyle github maven maven-plugin pull-requests
Last synced: 5 months ago
JSON representation
A maven plugin that leaves comment of the result of a "Checkstyle" on github's pull request.
- Host: GitHub
- URL: https://github.com/unchai/checkstyle-github-maven-plugin
- Owner: unchai
- License: apache-2.0
- Created: 2018-08-05T15:03:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-19T06:46:59.000Z (about 6 years ago)
- Last Synced: 2025-07-28T14:32:55.532Z (11 months ago)
- Topics: checkstyle, github, maven, maven-plugin, pull-requests
- Language: Java
- Homepage:
- Size: 688 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# checkstyle-github-maven-plugin
[](https://travis-ci.org/unchai/checkstyle-github-maven-plugin)
A maven plugin that leaves comment of the result of a "Checkstyle" on github's pull request.

### Requirements
* Maven 3
* Java 8
### Install
```xml
...
com.github.unchai
checkstyle-github-maven-plugin
LATEST_VERSION
[Checkstyle configuration file]
...
```
### Usage
```shell
$ mvn checkstyle-github:checkstyle-github \
-Dgithub.endpoint= \
-Dgithub.token= \
-Dgithub.repository= \
-Dgithub.pullRequest=
```
#### with Jenkinsfile
```
node {
stage('lint') {
if (env.CHANGE_ID) {
withCredentials([[$class: 'StringBinding', credentialsId: 'github-bot', variable: 'GITHUB_ACCESS_TOKEN']]) {
sh "'${pwd()}/mvnw' clean checkstyle-github:checkstyle-github" +
" -Dgithub.token=${GITHUB_ACCESS_TOKEN}" +
" -Dgithub.repository=owner/repo" +
" -Dgithub.pullRequest=${env.CHANGE_ID}"
}
}
}
}
```
## License
Apache License 2.0 © 2018 [unchai](https://github.com/unchai)