-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a linter management tool in Rust
This replaces the one in XTask. Why a replacement? * XTask abstractions are complicated, and meant to support many different use cases. The needs for a series of linting tool are simple. * It was too hard to modify the existing code to improve ignore mangement, concurrent linting, etc. * We are trying to move away from XTask for other things, and possibly remove the code completely. Improvements in this tool: * Clearly organized linter tool implementations. It's really easy to create new ones now. * Use `ignore` crate to automatically take advantage of `.gitignore`, and other custom ignore files. * Use ignore::WalkParallel to run lint jobs concurrentl. Check-format used to take me around 30 seconds, now it takes 3-5s. * Remove a lot of the noise for successful lints. * All files are processed, even if there is a failure. So you can get all of the formatting errors in one report. Change-Id: I6156889dc99f499dd5d0a6787eca7d73dc12b6cc
- Loading branch information
Showing
25 changed files
with
1,959 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
third_party/ | ||
**/generated/ | ||
**/jni/ | ||
stage0_bin/supply-chain | ||
linter/tests/testdata |
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.