walkmod-pmd-plugin

Walkmod plugin to automatically fix the reported problems by Checkstyle

License

License

Categories

Categories

Checkstyle Application Testing & Monitoring Code Analysis
GroupId

GroupId

org.walkmod
ArtifactId

ArtifactId

walkmod-checkstyle-plugin
Last Version

Last Version

1.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

walkmod-pmd-plugin
Walkmod plugin to automatically fix the reported problems by Checkstyle
Project URL

Project URL

https://github.com/walkmod/walkmod-checkstyle-plugin
Source Code Management

Source Code Management

https://github.com/walkmod/walkmod-checkstyle-plugin

Download walkmod-checkstyle-plugin

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.walkmod : javalang jar [4.5.0, 5.0)
org.walkmod : javalang-compiler jar [2.0, 3.0)
org.walkmod : walkmod-core jar [2.0.0,3.0.0)

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

walkmod-checkstyle-plugin

Build Status

This is a walkmod plugin to automatically correct those Checkstyle rules that have a unique resolution. Currently, the supported rules are:

- TreeWalker/ArrayTypeStyle
- TreeWalker/AvoidInlineConditionals
- TreeWalker/AvoidStarImport
- TreeWalker/EmptyCatchBlock
- TreeWalker/EmptyStatement
- TreeWalker/NeedBraces
- TreeWalker/RedundantImport
- TreeWalker/UnusedImports

Usage

1) Verify that your walkmod version is > = 2.2.0

2) Execute the following command to add this code transformation plugin as part of your conventions.

walkmod add checkstyle -DconfigurationFile='my-checkstyle-file.xml'

If you don’t specify a configuration file, the applied conventions are the Sun conventions. If you are interested in using the Google conventions, type:

walkmod add checkstyle -DconfigurationFile='google_checks.xml'

3) Now, You see the results, executing:

walkmod apply

Or, alternatively, you can also check which would be the modified classes typing:

walkmod check

Contributing

If you want to hack on this, fork it, improve it and send me a pull request.

To get started using it, just clone it and call mvn install.

org.walkmod

walkmod

Versions

Version
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1