Common Checkstyle Configuration

Externalized checkstyle configuration which can be used in other Maven projects.

Лицензия

Лицензия

Категории

Категории

Checkstyle Тестирование приложения и мониторинг Code Analysis config Библиотеки уровня приложения Configuration
Группа

Группа

at.favre.lib
Идентификатор

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

checkstyle-config
Последняя версия

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

2
Дата

Дата

Тип

Тип

jar
Описание

Описание

Common Checkstyle Configuration
Externalized checkstyle configuration which can be used in other Maven projects.
Ссылка на сайт

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

https://github.com/patrickfav/checkstyle-config
Система контроля версий

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

https://github.com/patrickfav/checkstyle-config

Скачать checkstyle-config

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

<!-- https://jarcasting.com/artifacts/at.favre.lib/checkstyle-config/ -->
<dependency>
    <groupId>at.favre.lib</groupId>
    <artifactId>checkstyle-config</artifactId>
    <version>2</version>
</dependency>
// https://jarcasting.com/artifacts/at.favre.lib/checkstyle-config/
implementation 'at.favre.lib:checkstyle-config:2'
// https://jarcasting.com/artifacts/at.favre.lib/checkstyle-config/
implementation ("at.favre.lib:checkstyle-config:2")
'at.favre.lib:checkstyle-config:jar:2'
<dependency org="at.favre.lib" name="checkstyle-config" rev="2">
  <artifact name="checkstyle-config" type="jar" />
</dependency>
@Grapes(
@Grab(group='at.favre.lib', module='checkstyle-config', version='2')
)
libraryDependencies += "at.favre.lib" % "checkstyle-config" % "2"
[at.favre.lib/checkstyle-config "2"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

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

Common Checkstyle Config

Logo

Externalized checkstyle configuration which can be used in other Maven projects.

Download Build Status

Description

This is a hand-picked, incrementally improved checkstyle configuration. It is more on the liberal side as I believe tools should work for the user not the other way around. Code style is subjective and this one might not be for you.

Usage

Add this maven project as dependency to load the external checkstyle configuration. The name of the config xml is checkstyle.xml.

    <build>
        <plugins>
            <!-- checkstyle -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                ...
                <dependencies>
                    ...
                    <!-- add this lib as dependency to load external checkstyle config -->
                    <dependency>
                        <groupId>at.favre.lib</groupId>
                        <artifactId>checkstyle-config</artifactId>
                        <version>{latest_version}</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <configLocation>checkstyle.xml</configLocation>
                </configuration>
            </plugin>
            ...

See this stackoverflow.com post for more info.

IDE Integration

IntelliJ

If you are using the checkstyle plugin for IntelliJ (which you should). You will find a copy of the configuration in the /target folder called checkstyle-checker.xml.

License

Copyright 2019 Patrick Favre-Bulle

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

Версия
2
1