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.1 # 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.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for checkstyle_cli-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17aedab0154538f595f666009cfa81331733e2ab8e8a2446a546345ddb65b25d |
|
MD5 | 654513650abcef1f68d0e74fabb1f693 |
|
BLAKE2b-256 | c12752ac0017e316803cd4c6a2093bb3c327a619dd6910e232046d56d19443a3 |