mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
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:
parent
ef9bcd5079
commit
8a92639faf
@ -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:
|
||||
|
@ -48,3 +48,4 @@ rust:
|
||||
- 'tools/lint/rust/**'
|
||||
type: external
|
||||
payload: rust:lint
|
||||
code_review_warnings: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user