Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
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
.cargo
.vscode Bug 1377937 - Fix VSCode tasks on Windows (NPOTB, DONTBUILD). r=gps 2017-07-03 21:55:07 +03:00
accessible Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
addon-sdk Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop 2017-08-30 01:50:27 -07:00
browser Merge autoland to central, a=merge 2017-08-30 19:52:39 -07:00
build Bug 1393607 Do not package tests if they are not enabled r=mshal 2017-08-29 12:34:40 -05:00
caps Bug 863246 - Fix test failures r=Gijs 2017-07-19 17:30:01 +08:00
chrome Backed out changeset 05fc8d2d7ca9 (bug 863246) for failing various reftests, e.g. parser/htmlparser/tests/reftest/bug535530-2.html. r=backout on a CLOSED TREE 2017-08-25 16:44:40 +02:00
config Backed out changesets 18d89d8ab860, ffe8bef74be0, 159028ef12d2, 217260fb6976, 0279960d71ab (bug 1393242) 2017-08-24 16:07:44 -07:00
db Bug 1393526 - Upgrade to SQLite 3.20.1. r=mak 2017-08-24 14:50:48 -04:00
devtools Bug 1391562 - use obj.on/off/emit rather than static methods from devtools event-emitter;r=zer0 2017-08-18 17:05:04 +02:00
docshell Merge m-c to inbound, a=merge 2017-08-28 17:45:07 -07:00
dom Bug 1394724. P4 - merge MediaCacheStream::Close() and CloseInternal(). r=cpearce 2017-08-29 16:46:42 +08:00
editor Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
embedding
extensions Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm. 2017-08-21 20:01:27 +10:00
gfx Bug 1394394 - Update webrender to commit 5edd3da7ee11e1d0caaf0b53cb7f04cfab20e585. r=jrmuizel 2017-08-30 13:10:20 -04:00
gradle/wrapper
hal Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj 2017-08-11 17:45:18 -07:00
image Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm. 2017-08-21 20:01:27 +10:00
intl Bug 1394311: Use lowercase consistently for looking up the language group. r=manishearth 2017-08-28 09:06:11 +02:00
ipc Bug 1394874 Fix function order and add include to fix MinGW build r=aklotz 2017-08-30 00:36:14 -05:00
js Bug 1394556: Part 2 - Compile all JSM/module scripts in strict mode. r=Mossop 2017-08-28 11:39:06 -07:00
layout Merge autoland to central, a=merge 2017-08-30 19:52:39 -07:00
media Bug 1388618 - update mp4 rust parser to fix invalid PSSH box. r=kinetik 2017-08-29 10:18:16 +08:00
memory Bug 1395088 - Remove the jemalloc_bool type. r=njn 2017-08-30 18:04:47 +09:00
mfbt Bug 1393498 Mark the stub_BaseThreadInitThunk as MOZ_NORETURN to silence a warning about a noreturn function not returning r=dmajor,froydnj 2017-08-24 22:49:09 -05:00
mobile Merge autoland to central, a=merge 2017-08-30 19:52:39 -07:00
modules Backed out 2 changesets (bug 1382377) under suspicion of causing asan devtools failures a=backout CLOSED TREE 2017-08-30 16:44:20 -07:00
mozglue Bug 1394007 Fix a signedness comparison warning in WindowsDllBlocklist.cpp r=dmajor 2017-08-30 00:43:46 -05:00
netwerk Merge autoland to central, a=merge 2017-08-30 19:52:39 -07:00
nsprpub Bug 1393854, NSPR_4_17_BETA1 2017-08-25 19:01:51 +02:00
other-licenses Bug 1369255 - Part 1: Add a prompt in the stub installer for running profile cleanup. r=rstrong 2017-07-12 10:29:38 -07:00
parser Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
probes
python Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
rdf Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm. 2017-08-21 20:01:27 +10:00
security Bug 1391494 - Enforce use of our own copy of strlcpy. r=jld 2017-08-24 19:12:14 +02:00
services Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop 2017-08-30 01:50:27 -07:00
servo servo: Merge #18311 - Revert "Rewrite CounterStyleOrNone::from_gecko_value to use fewer bin… (from emilio:backout-counter-style); r=emilio 2017-08-30 07:24:19 -05:00
startupcache Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj 2017-08-08 14:41:09 -07:00
storage Merge autoland to m-c. a=merge 2017-08-24 20:20:08 -04:00
taskcluster Merge autoland to central, a=merge 2017-08-30 19:52:39 -07:00
testing Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
third_party merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-08-29 20:30:41 +02:00
toolkit Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
tools Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
uriloader Bug 1389303 - [2.1] Cancel external protocol channel on successful load. r=mcmanus 2017-08-28 15:51:44 +02:00
view Backed out changeset 497dbf087ad5 (add diagnostic asserts) (bug 1354933) 2017-07-07 14:54:55 -05:00
widget Bug 1394338 - Add WebRender error handling to RendererOGL r=nical 2017-08-30 09:10:22 +09:00
xpcom merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-08-30 11:05:16 +02:00
xpfe Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm. 2017-08-21 20:01:27 +10:00
.clang-format Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
.clang-format-ignore No bug - Add comments to explain why they are ignored by clang-format r=me DONTBUILD 2017-08-30 18:53:35 +02:00
.clang-tidy
.cron.yml bug 1349227 - 2 nightlies per day on m-c. r=catlee DONTBUILD 2017-08-29 16:01:14 -07:00
.eslintignore Bug 1394820 - Enable ESLint for DownloadIntegration.jsm r=standard8 2017-08-29 18:57:11 +01:00
.eslintrc.js
.flake8 Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
.gdbinit
.gdbinit_python Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.gitignore Bug 1382304: hg/gitignore captures/ dir. r=nalexander 2017-07-19 11:08:06 -07:00
.hgignore Bug 1387265 - Expand talos tp6 to macosx; r=jmaher 2017-08-15 15:30:23 -04:00
.hgtags No bug - Tagging mozilla-central 320642944e42a889db13c6c55b404e32319d4de6 with FIREFOX_BETA_56_BASE a=release DONTBUILD CLOSED TREE 2017-08-02 08:35:53 +01:00
.inferconfig
.lldbinit Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.taskcluster.yml Backed out changeset 9923fffd4f64 (bug 1390700) for somehow breaking chain of trust on some Windows builds 2017-08-24 21:42:18 -07:00
.yamllint Bug 1392795 - [yamllint] Group paths to lint by their closest config and run each config group separately, r=dustin 2017-08-23 11:28:28 -04:00
.ycm_extra_conf.py
AUTHORS
CLOBBER Bug 1340910 - pt 2+3 - Import Brotli 0.6.0 from upstream, and Gecko updates required to work with Brotli 0.6.0 API changes. r=glandium 2017-08-09 11:45:39 +01:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1390916 - Remove references to dist/sdk install manifest; r=gps 2017-08-09 15:35:15 -04:00
README.txt
aclocal.m4
build.gradle Bug 1255227 - Part 1: Stop using deprecated android-sdk-manager Gradle plugin. r=sebastian 2017-07-18 09:46:09 -07:00
client.mk Bug 1386739 - Only pass --output-sync=line to make in automation. r=gps 2017-08-15 12:30:28 -07:00
client.py
configure.in
configure.py
gradle.properties
gradlew
mach
moz.build Bug 1391675 - Fix sm-pkg bustage on a CLOSED TREE, r=bustage CLOSED TREE 2017-08-23 15:22:57 -04:00
moz.configure Bug 1385380 - Detect watchman more resiliently; r=glandium 2017-07-28 16:11:22 -07:00
mozilla-config.h.in Bug 1371266 - libpng should be built with -std=c89. r=glennrp 2017-06-08 06:29:03 -07:00
npm-shrinkwrap.json Bug 1388215 - Fix broken browser.js after merge. r=bustage-fix on a CLOSED TREE 2017-08-10 18:23:23 +02:00
old-configure.in Bug 1393526 - Upgrade to SQLite 3.20.1. r=mak 2017-08-24 14:50:48 -04:00
package.json Bug 1380956 - List only the directly required dependencies for ESLint in the top-level package.json. r=ahal 2017-07-14 12:21:54 +01:00
settings.gradle Backed out 2 changesets (bug 1355625) for causing bustage a=backout 2017-06-22 12:05:56 -07:00
test.mozbuild

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://nightly.mozilla.org/