mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Tidy checks for stylo
This commit is contained in:
parent
cbfd446427
commit
b60368d5d9
3 changed files with 32 additions and 17 deletions
|
@ -381,11 +381,13 @@ class MachCommands(CommandBase):
|
|||
help="Don't show progress for tidy")
|
||||
@CommandArgument('--self-test', default=False, action="store_true",
|
||||
help="Run unit tests for tidy")
|
||||
def test_tidy(self, all_files, no_progress, self_test):
|
||||
@CommandArgument('--stylo', default=False, action="store_true",
|
||||
help="Only handle files in the stylo tree")
|
||||
def test_tidy(self, all_files, no_progress, self_test, stylo):
|
||||
if self_test:
|
||||
return test_tidy.do_tests()
|
||||
else:
|
||||
return tidy.scan(not all_files, not no_progress)
|
||||
return tidy.scan(not all_files, not no_progress, stylo=stylo)
|
||||
|
||||
@Command('test-webidl',
|
||||
description='Run the WebIDL parser tests',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue