gecko-dev/tools
Andrew Halberstadt 2255a9eed7 Bug 1395126 - Support cascading configuration for flake8, r=bc
This allows .flake8 files to override one another, and fixes a pretty bad known
bug with our flake8 implementation. For example, say we have a .flake8 file at:
/foo/.flake8

Before this patch, if we ran |mach lint foo/bar|, the configuration defined in
that .flake8 file wouldn't get picked up. It would only work if running the
specific directory that contains it, e.g |mach lint foo|.

This change additionally allows multiple .flake8 files to be used. So if
there's one defined at both:
/.flake8
/foo/.flake8

Then running |mach lint foo/bar| will first apply the root .flake8, then the
one under /foo (overriding earlier configuration).

This bug still doesn't make flake8 configuration perfect though. Any directory
containing a .flake8 file still needs to be explicitly listed in the "include"
section of /tools/lint/flake8.yml. Otherwise in the example above, if running
|mach lint /|, it wouldn't be able to find /foo/.flake8. This is a hard problem
and is likely best solved by fixing flake8's upstream configuration handling.

Unfortunately this means we still can't switch from a whitelist to a blacklist.

MozReview-Commit-ID: 3DZAi1QHYYo

--HG--
extra : rebase_source : 51298c5847f6c2792581d9b312c87b70fa716ee1
2017-08-29 17:32:31 -04:00
..
bloatview
code-coverage Bug 1390945 - Make GCOV signal handlers work in --disable-debug mode. r=froydnj 2017-08-16 20:39:26 +02:00
compare-locales bug 1370506, update the docs, r=glandium 2017-06-16 13:14:28 +02:00
coverity Bug 1359376 - Update Coverity modeling file to support NS_RUNTIMEABORT. r=sylvestre 2017-04-25 15:08:48 +03:00
docs Bug 1390693 - Use thread pool for S3 uploads; r=dustin 2017-08-24 12:38:01 -07:00
fuzzing Bug 1389851 - libfuzzer: Suppress -Wunreachable-code-return warnings in FuzzerDriver.cpp. r=decoder 2017-08-15 21:04:55 -07:00
git Bug 1360595 - Add a git pre-commit hook for running ESLint. r=mossop 2017-04-28 12:19:15 +01:00
jprof Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
leak-gauge Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout 2017-07-31 14:44:34 +02:00
lint Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
mercurial Bug 1360595 - Add a git pre-commit hook for running ESLint. r=mossop 2017-04-28 12:19:15 +01:00
power
profiler Bug 1393808 Include immintrin.h under MinGW for _mm_pause() r=njn 2017-08-25 11:55:57 -05:00
quitter Bug 1393162 Re-sign quitter.xpi as privileged r=ryanvm 2017-08-24 22:34:02 -07:00
rb
rewriting Bug 1389456 - Add ppapi/ to the thirdparty list r=peterv 2017-08-11 14:03:32 +02:00
tryselect Bug 1394391 - [tryselect] Split hg implementation of files_changed to a list, r=jhford 2017-08-28 09:13:46 -04:00
update-packaging bug 1385227, generate full update from l10n-stage directly, r=rail 2017-08-22 15:27:51 +02:00
mach_commands.py Bug 1392012 - ./clang-format with git should exclude files from .clang-format-ignore r=sylvestre 2017-08-24 23:41:44 +02:00
moz.build Bug 1391675 - [tryselect] Add a test for 'mach try fuzzy' and associated task, r=gps 2017-08-21 11:52:28 -04:00