Extended lint rules for JVM and Python
Project description
Rulebook
Third-party rules for JVM and Python lint tools, meant to be used in conjunction with official ones. Most of the rules are opinionated personal code styles. However, some already exists in other linters, providing the same experience across multiple languages.
| Language | Linter | Variants |
|---|---|---|
| Kotlin | Ktlint | Ktlint Style |
| Java | Checkstyle | Sun Style or Google Java Style |
| Groovy | CodeNarc | Groovy Style |
| Python | Pylint | Pylint Style or Google Python Style |
Download
Maven
repositories {
mavenCentral()
}
dependencies {
ktlint "com.hanggrian.rulebook:rulebook-ktlint:$version"
checkstyle "com.hanggrian.rulebook:rulebook-checkstyle:$version"
codenarc "com.hanggrian.rulebook:rulebook-codenarc:$version"
}
PyPI
pip install pylint regex rulebook-pylint
Usage
Ktlint
- Apply Ktlint Integration to Gradle project.
- Using configuration
ktlint, add this project as dependency.
configurations {
ktlint
}
dependencies {
ktlint "com.hanggrian.rulebook:rulebook-ktlint:$libraryVersion"
}
// the rest of ktlint tasks' configuration
Checkstyle
- Apply Checkstyle Gradle Plugin.
- Using configuration
checkstyle, add this project as dependency. - Point to local config file or put in
/config/checkstyle/codenarc.xml.
plugins {
checkstyle
}
checkstyle {
toolVersion "$checkstyleVersion"
configFile "path/to/rulebook_checkstyle.xml"
}
dependencies {
checkstyle "com.hanggrian.rulebook:rulebook-checkstyle:$libraryVersion"
}
CodeNarc
- Apply CodeNarc Gradle Plugin.
- Using configuration
codenarc, add this project as dependency. - Point to local config file or put in
/config/codenarc/codenarc.xml.
plugins {
codenarc
}
codenarc {
toolVersion "$codenarcVersion"
configFile "path/to/rulebook_codenarc.xml"
}
dependencies {
codenarc "com.hanggrian.rulebook:rulebook-codenarc:$libraryVersion"
}
Pylint
- Point config file to local
pylintrc.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rulebook_pylint-0.2.tar.gz.
File metadata
- Download URL: rulebook_pylint-0.2.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f06b396261ffe6ebae08e617d335a307d102ff6b6aba09d8e7fde2f076e9eee8
|
|
| MD5 |
26d04a376ecf66d9ed0726c1821e8a59
|
|
| BLAKE2b-256 |
7a7d9e627cf0fb07b7d6ee14bf3e595107cb248415f784aac2a431797fc6cfe3
|
File details
Details for the file rulebook_pylint-0.2-py3-none-any.whl.
File metadata
- Download URL: rulebook_pylint-0.2-py3-none-any.whl
- Upload date:
- Size: 48.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c6d14240eb4c56d19cac9f6a5eddb1c0326013f75f255b9da30999e1a5392df
|
|
| MD5 |
799f10385faa55af86d8095231a29050
|
|
| BLAKE2b-256 |
e99468f532b2c4c2e69822a2c669484d552f64e08ed8bd5bdb055e0c3179524a
|