mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
Auto merge of #14166 - Wafflespeanut:tidy, r=frewsxcv
Allow tidy to run custom project-specific lints <!-- Please describe your changes on the following line: --> Since tidy is a package, it shouldn't contain our WPT lint. This PR changes the file list generator (we already have) into an object, and allows tidy to run custom python lint scripts (specified in the config file) under the context of `LintRunner`. The errors are then chained into our mechanism. r? @frewsxcv (cc @jdm @edunham @aneeshusa and anyone else interested in reviewing it) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14166) <!-- Reviewable:end -->
This commit is contained in:
commit
290a1696dc
10 changed files with 189 additions and 66 deletions
|
@ -5,6 +5,9 @@ check-ordered-json-keys = [
|
|||
"./resources/prefs.json",
|
||||
"./resources/package-prefs.json",
|
||||
]
|
||||
lint-scripts = [
|
||||
"./python/servo/lints/wpt_lint.py",
|
||||
]
|
||||
|
||||
[ignore]
|
||||
# Ignored packages with duplicated versions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue