You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #143398 - lolbinarycat:tidy-extra-checks-auto, r=Kobzol
tidy: add support for `--extra-checks=auto:` feature
in preparation for #142924
also heavily refactored the parsing of the `--extra-checks` argument to warn about improper usage.
cc ```@GuillaumeGomez```
r? ```@Kobzol```
complete-c x -n"__fish_x_using_subcommand doc"-s h -lhelp-d'Print help (see more with \'--help\')'
294
294
complete-c x -n"__fish_x_using_subcommand test"-ltest-args -d'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)'-r
295
295
complete-c x -n"__fish_x_using_subcommand test"-l compiletest-rustc-args -d'extra options to pass the compiler when running compiletest tests'-r
296
-
complete-c x -n"__fish_x_using_subcommand test"-l extra-checks -d'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck, spellcheck:fix)'-r
296
+
complete-c x -n"__fish_x_using_subcommand test"-l extra-checks -d'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck)'-r
297
297
complete-c x -n"__fish_x_using_subcommand test"-l compare-mode -d'mode describing what file the actual ui output will be compared to'-r
298
298
complete-c x -n"__fish_x_using_subcommand test"-l pass -d'force {check,build,run}-pass tests to this mode'-r
299
299
complete-c x -n"__fish_x_using_subcommand test"-l run -d'whether to execute run-* tests'-r
[CompletionResult]::new('--test-args','--test-args', [CompletionResultType]::ParameterName,'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)')
341
341
[CompletionResult]::new('--compiletest-rustc-args','--compiletest-rustc-args', [CompletionResultType]::ParameterName,'extra options to pass the compiler when running compiletest tests')
342
-
[CompletionResult]::new('--extra-checks','--extra-checks', [CompletionResultType]::ParameterName,'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck, spellcheck:fix)')
342
+
[CompletionResult]::new('--extra-checks','--extra-checks', [CompletionResultType]::ParameterName,'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck)')
343
343
[CompletionResult]::new('--compare-mode','--compare-mode', [CompletionResultType]::ParameterName,'mode describing what file the actual ui output will be compared to')
344
344
[CompletionResult]::new('--pass','--pass', [CompletionResultType]::ParameterName,'force {check,build,run}-pass tests to this mode')
345
345
[CompletionResult]::new('--run','--run', [CompletionResultType]::ParameterName,'whether to execute run-* tests')
complete-c x.py -n"__fish_x.py_using_subcommand doc"-s h -lhelp-d'Print help (see more with \'--help\')'
294
294
complete-c x.py -n"__fish_x.py_using_subcommand test"-ltest-args -d'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)'-r
295
295
complete-c x.py -n"__fish_x.py_using_subcommand test"-l compiletest-rustc-args -d'extra options to pass the compiler when running compiletest tests'-r
296
-
complete-c x.py -n"__fish_x.py_using_subcommand test"-l extra-checks -d'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck, spellcheck:fix)'-r
296
+
complete-c x.py -n"__fish_x.py_using_subcommand test"-l extra-checks -d'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck)'-r
297
297
complete-c x.py -n"__fish_x.py_using_subcommand test"-l compare-mode -d'mode describing what file the actual ui output will be compared to'-r
298
298
complete-c x.py -n"__fish_x.py_using_subcommand test"-l pass -d'force {check,build,run}-pass tests to this mode'-r
299
299
complete-c x.py -n"__fish_x.py_using_subcommand test"-l run -d'whether to execute run-* tests'-r
[CompletionResult]::new('--test-args','--test-args', [CompletionResultType]::ParameterName,'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)')
341
341
[CompletionResult]::new('--compiletest-rustc-args','--compiletest-rustc-args', [CompletionResultType]::ParameterName,'extra options to pass the compiler when running compiletest tests')
342
-
[CompletionResult]::new('--extra-checks','--extra-checks', [CompletionResultType]::ParameterName,'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck, spellcheck:fix)')
342
+
[CompletionResult]::new('--extra-checks','--extra-checks', [CompletionResultType]::ParameterName,'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck)')
343
343
[CompletionResult]::new('--compare-mode','--compare-mode', [CompletionResultType]::ParameterName,'mode describing what file the actual ui output will be compared to')
344
344
[CompletionResult]::new('--pass','--pass', [CompletionResultType]::ParameterName,'force {check,build,run}-pass tests to this mode')
345
345
[CompletionResult]::new('--run','--run', [CompletionResultType]::ParameterName,'whether to execute run-* tests')
'*--test-args=[extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)]:ARGS:_default' \
340
340
'*--compiletest-rustc-args=[extra options to pass the compiler when running compiletest tests]:ARGS:_default' \
341
-
'--extra-checks=[comma-separated list of other files types to check (accepts py, py\:lint, py\:fmt, shell, shell\:lint, cpp, cpp\:fmt, spellcheck, spellcheck\:fix)]:EXTRA_CHECKS:_default' \
341
+
'--extra-checks=[comma-separated list of other files types to check (accepts py, py\:lint, py\:fmt, shell, shell\:lint, cpp, cpp\:fmt, spellcheck)]:EXTRA_CHECKS:_default' \
342
342
'--compare-mode=[mode describing what file the actual ui output will be compared to]:COMPARE MODE:_default' \
343
343
'--pass=[force {check,build,run}-pass tests to this mode]:check | build | run:_default' \
344
344
'--run=[whether to execute run-* tests]:auto | always | never:_default' \
'*--test-args=[extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)]:ARGS:_default' \
340
340
'*--compiletest-rustc-args=[extra options to pass the compiler when running compiletest tests]:ARGS:_default' \
341
-
'--extra-checks=[comma-separated list of other files types to check (accepts py, py\:lint, py\:fmt, shell, shell\:lint, cpp, cpp\:fmt, spellcheck, spellcheck\:fix)]:EXTRA_CHECKS:_default' \
341
+
'--extra-checks=[comma-separated list of other files types to check (accepts py, py\:lint, py\:fmt, shell, shell\:lint, cpp, cpp\:fmt, spellcheck)]:EXTRA_CHECKS:_default' \
342
342
'--compare-mode=[mode describing what file the actual ui output will be compared to]:COMPARE MODE:_default' \
343
343
'--pass=[force {check,build,run}-pass tests to this mode]:check | build | run:_default' \
344
344
'--run=[whether to execute run-* tests]:auto | always | never:_default' \
0 commit comments