cwkr-pmd

Coding Guidelines PMD implementations

License

License

Categories

Categories

PMD Application Testing & Monitoring Code Analysis
GroupId

GroupId

de.cwkr
ArtifactId

ArtifactId

cwkr-pmd
Last Version

Last Version

1.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

cwkr-pmd
Coding Guidelines PMD implementations
Project URL

Project URL

https://github.com/cwkr/coding-guidelines
Source Code Management

Source Code Management

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

Download cwkr-pmd

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
net.sourceforge.pmd : pmd-core jar 6.28.0
net.sourceforge.pmd : pmd-java jar 6.28.0

test (2)

Group / Artifact Type Version
net.sourceforge.pmd : pmd-test jar 6.28.0
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.3.1
1.3.0