Allow developers to run Java style check in two ways.
Specific file:
checkstyle.py -f path/to/file/View.java
Lines modified in the latest commit:
checkstyle.py
Review moved from https://googleplex-android-review.googlesource.com/#/c/818813/
due to move from packages/experimental to development/tools
Bug: 25852971
Change-Id: Ibcf9d80644f2938828b21e8f50ab0d6f39c286b0
(cherry picked from commit 96f27d0960)
30 lines
976 B
Plaintext
30 lines
976 B
Plaintext
Description:
|
|
Checkstyle is used by developers to validate Java code style before running repo upload.
|
|
|
|
It can be invoked in two ways.
|
|
1. To check style of entire specific files:
|
|
checkstyle.py -f FILE [FILE ...]
|
|
2. To check style of the lines modified in the latest commit:
|
|
checkstyle.py
|
|
|
|
Projects used:
|
|
* Name: Checkstyle
|
|
Description: Checkstyle is a development tool to help programmers write Java code that
|
|
adheres to a coding standard.
|
|
URL: http://checkstyle.sourceforge.net/
|
|
Version: 6.12.1
|
|
License: LGPL 2.1
|
|
License File: LICENSE
|
|
Local Modifications:
|
|
- Downloaded checkstyle-6.12.1-all.jar without source code.
|
|
|
|
* Name: Git-Lint
|
|
Description: Git-lint is a tool to run lint checks on only files changed in
|
|
the latest commit.
|
|
URL: https://github.com/sk-/git-lint/
|
|
Version: 0.0.8
|
|
License: Apache 2.0
|
|
License File: gitlint/LICENSE
|
|
Local Modifications:
|
|
- Downloaded gitlint/git.py and git/utils.py files individually.
|