forked from mirrors/gecko-dev
The motivations for this are: 1) Apply global excludes. This merges the exclusion rules defined in tools/lint/mach_commands.py with the ones in .flake8. 2) Improve performance. Switching to a blacklist will result in a much longer runtime for linting the entire tree and flake8 handles exclusions incredibly slowly. Without this patch (and the blacklist change applied), I gave up waiting after 30 minutes. With this patch, it takes 30 seconds. Depends on D20495 Differential Revision: https://phabricator.services.mozilla.com/D20496 --HG-- rename : tools/lint/test/files/flake8/bad.py => tools/lint/test/files/flake8/subdir/exclude/bad.py extra : moz-landing-system : lando
5 lines
231 B
Python
5 lines
231 B
Python
# Unused import
|
|
import distutils
|
|
|
|
print("This is a line that is over 80 characters but under 100. It shouldn't fail.")
|
|
print("This is a line that is over not only 80, but 100 characters. It should most certainly cause a failure.")
|