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
Go to file
Andrew Halberstadt 10f8b7e161 Bug 1379151 - Add --fix and --edit to mozlint, r=standard8
While --fix previously worked with eslint, it is now more official (will show
up in the |mach lint --help|).  ESlint is still the only thing that implements
it, but we can implement it for flake8 using the `autopep8` module.

--edit is a new concept that will open an editor for each failing file to let
you fix the errors manually.  For now it is very naive (just opens the file),
and is only really useful if you have an editor integration for the linter(s).
But in the future I'd like to have editor-specific implementations for this.
For example, with vim, we can use -q to pass in an error file that will start
the editor pre-populated with a list of all errors that can then be easily
jumped to. Other editors may just open up to the line containing the error.

--fix and --edit can be used in conjunction with one another. Doing that means
only errors that can't be fixed automatically will show up in your editor.


MozReview-Commit-ID: 5JJJhMIrMIB

--HG--
extra : rebase_source : 2f78a77a91133d7fcc5620ecd5caa500decbce1b
2017-08-10 09:21:17 -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 1385372 - Allow same id in aria-owns. r=surkov 2017-08-09 12:33:44 -04:00
addon-sdk Bug 1387790 - Remove [deprecated] decodeImageData from imgITools. r=tnikkel 2017-08-06 10:54:14 +09:00
browser Bug 1388805 - Export Screenshots 10.11.0 to Firefox; r=mossop 2017-08-09 12:35:27 -05:00
build Bug 1384655 - Backed out changeset 7829ceaaec31 for busting gUM on some configurations. 2017-08-08 09:50:07 +02:00
caps Backed out 2 changesets (bug 1386103) for Android x86 build bustage 2017-08-08 22:08:54 -07:00
chrome Bug 1322874 - Get rid of nsIURI.originCharset. r=valentin.gosu 2017-08-02 20:43:30 +09:00
config Bug 1380547 - Add a variable other than DEFINES for defines that are set from Makefiles. r=mshal 2017-08-08 15:43:04 -07:00
db Bug 1371364 - Upgrade to SQLite 3.19.3. r=mak 2017-06-08 15:23:34 -04:00
devtools Bug 1371395 Part 2: Test media emulation of an unsupported type. r=jryans 2017-08-04 17:06:27 -07:00
docshell Bug 1387406 - part2: nsIDocShell should have GetHTMLEditor() and SetHTMLEditor() r=smaug 2017-08-04 22:12:03 +09:00
dom Bug 1388633 - Relax the duration constrain due to the duration may be changed in runtime. r=alwu 2017-08-10 14:59:25 +08:00
editor merge mozilla-inbound to mozilla-central a=merge 2017-08-08 13:18:14 +02:00
embedding Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
extensions Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj 2017-08-08 14:41:09 -07:00
gfx Backed out changeset e5936d7c91ba (bug 1370682) for bustage: missing return statement at WebRenderTypes.h:361. r=backout on a CLOSED TREE 2017-08-10 18:30:00 +02:00
gradle/wrapper
hal Bug 1382955 (part 3) - Remove a bunch of unused HAL stuff. r=gsvelto,kanru. 2017-08-02 10:09:32 +10:00
image Bug 1387790 - Remove [deprecated] decodeImageData from imgITools. r=tnikkel 2017-08-06 10:54:14 +09:00
intl merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
ipc merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
js Bug 1362338: Manually whitelist nsIAtom::Release in the root analysis. r=froydnj,sfink 2017-08-10 12:20:10 +02:00
layout Backed out changeset e5936d7c91ba (bug 1370682) for bustage: missing return statement at WebRenderTypes.h:361. r=backout on a CLOSED TREE 2017-08-10 18:30:00 +02:00
media Bug 1372839 - SkipString; Exit early if sym is not found r=gerald 2017-08-10 09:34:34 +02:00
memory Bug 1387940 - Make --max-frames=8 the default for dmd.py. r=mccr8. 2017-08-07 14:56:15 +10:00
mfbt Bug 1355692 - Add MOZ_FALLTHROUGH macro definition for gcc 7 to suppress -Wimplicit-fallthrough warnings. r=glandium 2017-07-28 00:11:28 +08:00
mobile Bug 1388291 - Update Android Nightly launcher icons. r=walkingice 2017-08-09 09:52:52 +02:00
modules merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
mozglue Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj 2017-08-08 14:41:09 -07:00
netwerk Bug 1388994 - GetRequestingPrincipal: Pass parameter by ref instead of value r=dragana 2017-08-10 08:47:26 +02:00
nsprpub Bug 1372579, uplift NSPR_4_16_RTM, no code changes, only version numbers, r=me 2017-07-27 15:33:57 +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 1362338: Make nsIAtom::AddRef and nsIAtom::Release final. r=froydnj 2017-08-09 14:20:17 +02:00
probes
python Bug 1379151 - Add --fix and --edit to mozlint, r=standard8 2017-08-10 09:21:17 -04:00
rdf Backed out 2 changesets (bug 1386103) for Android x86 build bustage 2017-08-08 22:08:54 -07:00
security merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
services Merge m-c to inbound, a=merge 2017-08-08 15:16:00 -07:00
servo servo: Merge #18033 - Use namespace id instead of atom in synthesize_presentational_hints_for_legacy_attributes (from upsuper:disable-mathml); r=Manishearth 2017-08-10 01:42:30 -05:00
startupcache Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj 2017-08-08 14:41:09 -07:00
storage Backed out 2 changesets (bug 1386103) for Android x86 build bustage 2017-08-08 22:08:54 -07:00
taskcluster Bug 1387862 - Add yaml lint to the taskgraph. r=ahal,dustin 2017-08-06 13:52:24 -04:00
testing merge mozilla-central to autoland. r=merge a=merge 2017-08-10 17:23:44 +02:00
third_party No bug - Revendor rust dependencies 2017-08-09 22:23:21 +00:00
toolkit Bug 1388946 Part 2 Disable legacy extensions by default r=kmag 2017-07-31 16:06:08 -07:00
tools Bug 1387862 - Lint the linter config yaml files themselves. r=ahal 2017-08-06 13:47:03 -04:00
uriloader Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj 2017-08-08 14:41:09 -07:00
view Backed out changeset 497dbf087ad5 (add diagnostic asserts) (bug 1354933) 2017-07-07 14:54:55 -05:00
widget Merge autoland to m-c. a=merge 2017-08-09 18:47:59 -04:00
xpcom Bug 1362338: Make nsIAtom::AddRef and nsIAtom::Release final. r=froydnj 2017-08-09 14:20:17 +02:00
xpfe Bug 1387381 - Remove nsXPIDLString local variables. r=erahm. 2017-08-08 16:07:55 +10:00
.clang-format Backed out changeset b14cbbf5256a (bug 1378250) on request from sylvestre 2017-07-05 16:55:27 +02:00
.clang-format-ignore Bug 1374730 - Follow-up to update some non-code mentions of webrender_traits to webrender_api. r=me and DONTBUILD 2017-07-26 09:56:52 -04:00
.clang-tidy
.cron.yml Bug 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin 2017-08-06 13:35:27 -04:00
.eslintignore Bug 1386684 - Enable ESLint for toolkit/components/url-classifier (automatic fixes). r=hchang 2017-08-02 16:12:07 +01:00
.eslintrc.js Bug 1359011 - Make the mozilla/recommended eslint configuration the default for the whole tree. r=mossop 2017-04-25 20:12:21 +01:00
.flake8 Bug 1288432 - Use new mozlint configuration for flake8 linter, r=bc 2017-06-02 09:46:01 -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 1382304: hg/gitignore captures/ dir. r=nalexander 2017-07-19 11:08:06 -07: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 Bug 1357629 - Add httpclientandroidlib to .inferconfig ignore list r=nalexander,njpark 2017-04-18 20:05:25 -07:00
.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 Bug 1328727: revert to --base-repository=https://hg.mozilla.org/mozilla-central; r=gps 2017-07-25 01:26:41 +00:00
.ycm_extra_conf.py
aclocal.m4 Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
Android.mk
AUTHORS Bug 1111333 - Enable double-tap-drag to zoom. r=kats 2017-05-23 19:53:06 +02:00
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 1382511 - Add --output-sync=line to MOZ_MAKE_FLAGS where available. r=glandium 2017-07-25 17:23:25 -07:00
client.py
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
configure.in
configure.py
GNUmakefile
gradle.properties
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1382502 - Enable sccache on PGO builds. r=ted 2017-07-20 11:31:14 +09:00
moz.build bug 1370176, generic configuration for l10n, r=flod,gps 2017-06-05 10:28:33 +02:00
moz.configure Bug 1384396 - Detect Watchman Mercurial integration in configure; r=nalexander 2017-07-27 14:12:35 -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 1385817 - Enable the quotes ESLint rule for accessible/ r=yzen 2017-08-01 17:13:27 +01:00
old-configure.in Bug 1386825 - Part 5: Remove MOZ_B2G from configure. r=glandium 2017-08-08 14:41:11 -07: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
README.txt
settings.gradle Backed out 2 changesets (bug 1355625) for causing bustage a=backout 2017-06-22 12:05:56 -07:00
test.mozbuild

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/