Files
firefox/python/mozlint/test/python.ini
T
Andrew Halberstadt 08bcc8004a 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
2017-08-10 09:21:17 -04:00

13 lines
277 B
INI

[DEFAULT]
subsuite = mozlint, os == "linux"
[test_cli.py]
[test_formatters.py]
[test_parser.py]
[test_roller.py]
[test_types.py]
[test_vcs.py]
# these tests run in the build images on non-linux, which have old
# versions of mercurial and git installed
skip-if = os != "linux"