https://github.com/openrewrite/rewrite-checkstyle
Eliminate Checkstyle issues. Automatically.
https://github.com/openrewrite/rewrite-checkstyle
Last synced: 5 months ago
JSON representation
Eliminate Checkstyle issues. Automatically.
- Host: GitHub
- URL: https://github.com/openrewrite/rewrite-checkstyle
- Owner: openrewrite
- License: apache-2.0
- Archived: true
- Created: 2020-05-13T21:59:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T23:10:04.000Z (over 5 years ago)
- Last Synced: 2024-04-21T19:36:26.609Z (about 2 years ago)
- Language: Java
- Size: 677 KB
- Stars: 5
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

### Eliminate Checkstyle issues. Automatically.
[](https://circleci.com/gh/openrewrite/rewrite-checkstyle)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://mvnrepository.com/artifact/org.openrewrite.plan/rewrite-checkstyle)
### What is this?
This project implements a series of [Rewrite](https://github.com/openrewrite/rewrite) recipes and visitors that checks for and auto-remediates common Checkstyle issues. The check and remediation go together, so it does _not_ use Checkstyle for the checking, but rather performs an equivalent check according to the Checkstyle documentation. Each Rewrite Checkstyle rule provides the full set of options for the corresponding Checkstyle check.
This module parses your _existing_ Checkstyle configuration, supporting all the same configuration options that the Checkstyle check supports. It does its own checking, matching exactly the Checkstyle definition of each rule, and where it finds violations, fixes them automatically!
Since all of the rules check for syntactic and not semantic patterns, there is no need to ensure that the ASTs evaluated by Rewrite Checkstyle are fully type-attributed (i.e. there is no need to provide the compile classpath to `JavaParser`).
The list of currently supported checks is [here](https://github.com/openrewrite/rewrite-checkstyle/tree/master/src/main/java/org/openrewrite/checkstyle). Submit an issue to add support for additional checks. Even better, submit a PR!
## How to use?
See the full documentation at [docs.openrewrite.org](https://docs.openrewrite.org/java/checkstyle).