Bug 1609116 - Activate warnings for rustfmt on code review mode, r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D59859

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Bastien Abadie 2020-01-17 08:05:40 +00:00
parent ef9bcd5079
commit 8a92639faf
2 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,11 @@ def _run_worker(config, paths, **lintargs):
if SHUTDOWN:
return result
# Override warnings setup for code review
# Only activating when code_review_warnings is set on a linter.yml in use
if os.environ.get('CODE_REVIEW') == '1' and config.get('code_review_warnings'):
lintargs['show_warnings'] = True
func = supported_types[config['type']]
start_time = time.time()
try:

View File

@ -48,3 +48,4 @@ rust:
- 'tools/lint/rust/**'
type: external
payload: rust:lint
code_review_warnings: true