Checkstyle github pull request maven plugin

A maven plug-in that leaves the result of a checkstyle of a project as a comment on github's pull request.

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка Github Инструменты разработки Контроль версий Checkstyle Тестирование приложения и мониторинг Code Analysis
Группа

Группа

com.github.unchai
Идентификатор

Идентификатор

checkstyle-github-maven-plugin
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

Checkstyle github pull request maven plugin
A maven plug-in that leaves the result of a checkstyle of a project as a comment on github's pull request.
Ссылка на сайт

Ссылка на сайт

https://github.com/unchai/checkstyle-github-maven-plugin
Организация-разработчик

Организация-разработчик

The Apache Software Foundation
Система контроля версий

Система контроля версий

https://github.com/unchai/checkstyle-github-maven-plugin

Скачать checkstyle-github-maven-plugin

Как подключить последнюю версию

<plugin>
    <groupId>com.github.unchai</groupId>
    <artifactId>checkstyle-github-maven-plugin</artifactId>
    <version>0.0.1</version>
</plugin>

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 3.5.4
org.apache.maven : maven-project jar 2.2.1
org.kohsuke : github-api jar 1.93
com.puppycrawl.tools : checkstyle jar 8.2

provided (1)

Идентификатор библиотеки Тип Версия
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5.2

test (5)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.hamcrest : hamcrest-all jar 1.3
org.mockito : mockito-core jar 2.8.9
org.powermock : powermock-module-junit4 jar 1.7.4
org.powermock : powermock-api-mockito2 jar 1.7.4

Модули Проекта

Данный проект не имеет модулей.

checkstyle-github-maven-plugin

Build Status

A maven plugin that leaves comment of the result of a "Checkstyle" on github's pull request.

Example

Requirements

  • Maven 3
  • Java 8

Install

<plugins>
    ...
    <plugin>
        <groupId>com.github.unchai</groupId>
        <artifactId>checkstyle-github-maven-plugin</artifactId>
        <version>LATEST_VERSION</version>
        <configuration>
            <configLocation>[Checkstyle configuration file]</configLocation>
        </configuration>
    </plugin>
    ...
</plugins>

Usage

$ mvn checkstyle-github:checkstyle-github \
    -Dgithub.endpoint=<github endpoint url> \
    -Dgithub.token=<github oauth token> \
    -Dgithub.repository=<owner/repositoryname> \
    -Dgithub.pullRequest=<pull request id>

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

Версии библиотеки

Версия
0.0.1