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-cli
rev: v0.4.0 # 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 --runtime-version 10.3.2 ~/workspace/demo
Options
-c
, --config
- configuration XML file path
- default:
google
sun
andgoogle
are embedded options.
-v
, --version
- show program's version number and exit
--runtime-version
- set runtime version of checkstyle
- default:
10.3.3
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.4.0.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for checkstyle_cli-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efb31a17eb037e3a0f9b95a7ec36f31c72719f4bb3d2a2dfbfe76da09840f2a9 |
|
MD5 | 46df6cd164ef6897e28d67dfd62b4bdd |
|
BLAKE2b-256 | 1549087c23a408d962d19e5324bf1553ebae640f7d62855935a377248738e018 |