cwkr-checkstyle

Checkstyle configuration and custom checks

Лицензия

Лицензия

Категории

Категории

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

Группа

de.cwkr
Идентификатор

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

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

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

1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

cwkr-checkstyle
Checkstyle configuration and custom checks
Ссылка на сайт

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

https://github.com/cwkr/coding-guidelines
Система контроля версий

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

https://github.com/cwkr/coding-guidelines

Скачать cwkr-checkstyle

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

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

Зависимости

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

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

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

Coding Guidelines

This project collects coding conventions and best practices.

Static Code Analysis using PMD

This project contains the following PMD rule sets.

  • category/java/cwkr/recommended.xml
    • category/java/cwkr/codestyle.xml
    • category/java/cwkr/exceptions.xml
    • category/java/cwkr/logging.xml
    • category/java/cwkr/maintainability.xml
    • category/java/cwkr/performance.xml

They can be used to check Java source code using Maven as follows:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-pmd-plugin</artifactId>
    <version>3.13.0</version>
    <configuration>
        <rulesets>
            <ruleset>/category/java/cwkr/recommended.xml</ruleset>
        </rulesets>
        <linkXRef>false</linkXRef>
        <printFailingErrors>true</printFailingErrors>
        <failOnViolation>true</failOnViolation>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>net.sourceforge.pmd</groupId>
            <artifactId>pmd-core</artifactId>
            <version>6.28.0</version>
        </dependency>
        <dependency>
            <groupId>net.sourceforge.pmd</groupId>
            <artifactId>pmd-java</artifactId>
            <version>6.28.0</version>
        </dependency>
        <dependency>
            <groupId>de.cwkr</groupId>
            <artifactId>cwkr-pmd</artifactId>
            <version>1.3.1</version>
        </dependency>
    </dependencies>
    <executions>
        <execution>
            <id>validate</id>
            <phase>validate</phase>
            <goals>
                <goal>check</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Static Code Analysis using Stylelint

stylelint-config-cwkr

Licensing

The Apache License, Version 2.0

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

Версия
1.1
1.0