forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Renaming BUILD.tools's twitter-checkstyle target to checkstyle since this is not twitter specific - Adding build-support/checkstyle/* to wire up the checkstyle - A few longer than 100-character per line java files fixes - pants.ini, fix/change broken [checkstyle] to [compile.checkstyle] - pants.ini remove suppression_files setting: There are a couple reasons for doing this: 1) OS pants and com.puppycrawl.tools.checkstyle only supports single suppression file. The multiple suppression files concept is from a Twitter internal custom filter, which isn't applicable here. 2) But more important, suppression isn't a required component for running checkstyle. Someone can perfectly author a coding_style.xml which contains no SuppressionFilter filter. And right now the checkstyle internally reads suppression_files list and injects them into the properties, which assuming the hardcoded SuppressionFilter. Doesn't make any sense. Anyone wants to use suppression, can still put checkstyle.suppression.file into properties setting under [compile.checkstyle] in OS pants, or any company specific pants.ini - Adding the checkstyle task into the optional backend so when we run PANTS_DEV=1 ./pants in OS pants, it's added, however, it's not by default wired up in pants release. Anyone can still wire it up in their own wrapper (like what Twitter currently does) - In ide_gen, currently it tries to read suppression_files from [checkstyle]. First, like I mentioned above, the default open source checkstyle doesn't have multiple suppression files concept. Second, the current setting points to an invalid file that doesn't exist anyway. So instead, I'm setting it to [] for now and will follow up with ide/idea owners later. - Adding unit tests for checkstyle to prevent future regressions. Testing Done: PANTS_DEV=1 ./pants goal compile examples/src/java:: PANTS_DEV=1 ./pants goal test tests/python/pants_test/backend/jvm/tasks:checkstyle Travis baking: https://travis-ci.org/jinfeng/jinfeng-pants-fork/builds/43051952 Reviewed at https://rbcommons.com/s/twitter/r/1432/
- Loading branch information
1 parent
9fab5d4
commit 8fe119a
Showing
14 changed files
with
225 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC | ||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | ||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | ||
|
||
<module name="Checker"> | ||
<!-- See http://checkstyle.sourceforge.net/config_whitespace.html#FileTabCharacter --> | ||
<module name="FileTabCharacter"/> | ||
|
||
<module name="TreeWalker"> | ||
<property name="tabWidth" value="2"/> | ||
|
||
<!-- See http://checkstyle.sourceforge.net/config_sizes.html#LineLength --> | ||
<module name="LineLength"> | ||
<property name="max" value="100"/> | ||
<property name="ignorePattern" value="^import"/> | ||
</module> | ||
</module> | ||
|
||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.