| commit | 8b9d3f06fa3d7e0ded4e5c6d9b81b70e82da56ea | [log] [tgz] |
|---|---|---|
| author | Yuyang Huang <[email protected]> | Fri Dec 13 11:55:18 2024 +0900 |
| committer | Yuyang Huang <[email protected]> | Fri Dec 13 12:26:42 2024 +0900 |
| tree | 94dedc5ad9aa0800c9ad2d1f30adcdf6f776719a | |
| parent | 3e18b79509129942614e20fb973078af5684a8db [diff] |
Add --disabled-rules flag to ktlint.py for rule customization
Introduced a --disabled-rules argument to the ktlint.py script.
This allows developers to selectively disable specific klint rules for
individual projects.
Example
```
[Hook Scripts]
ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --disabled-rules comment-wrapping -f ${PREUPLOAD_FILES}
```
Test: manual
Change-Id: Ifaf576492c000ce380f4bfb97b873ec755f4d019