A command-line tool for checkstyle.
Project description
checkstyle-cli
A command-line tool for checkstyle.
Requirements
The minimum JRE
version required depends on runtime of checkstyle.
checkstyle version | JRE version |
---|---|
10.x | >= 11 |
7.x, 8.x 9.x | >= 8 |
6.x | >= 6 |
5.x | >= 5 |
Installation
cli
> pip install checkstyle-cli
pre-commit
Add this to your .pre-commit-config.yaml
repos:
- repo: https://github.com/junghoon-vans/checkstyle-hooks
rev: v0.3.2 # Use the ref you want
hooks:
- id: checkstyle
Usage
> checkstyle [options] [files...]
# run on current path with default options
> checkstyle .
# run with custom options
> checkstyle -c custom_config.xml -v 10.3.2 ~/workspace/demo
Options
-c
, --config
- configuration XML file path
- default:
google
sun
andgoogle
are embedded options.
-v
, --version
- version to run checkstyle
- default:
latest
Caching
When you run a checkstyle
command, it automatically fetches the required files and saves them in the following path:
- Linux:
~/.cache/checkstyle
- Mac OS X:
~/Library/Caches/checkstyle
- Windows:
%LocalAppData%\checkstyle\checkstyle\Cache
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
checkstyle_cli-0.3.2.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for checkstyle_cli-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b9fd593336e7f539b7534046d249c0eb7e81eb9c3e11c19314a8772ee484f6d |
|
MD5 | a028c16828e291faeb42303a5ca5101e |
|
BLAKE2b-256 | 4852e3f7dc25683ac4712838abc85485b7838909048636cd5a066ca0ff465aa2 |