Chris AtLee
d1fb386dae
Bug 1555560: Add support for black formatting with mozlint; r=sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D33125
2020-07-08 22:08:08 +00:00
Mihai Alexandru Michis
5f385df474
Backed out 2 changesets (bug 1555560) for causing multiple lint failures.
...
CLOSED TREE
Backed out changeset bd9460ac6e48 (bug 1555560)
Backed out changeset f2896032ced6 (bug 1555560)
2020-07-09 01:04:18 +03:00
Chris AtLee
7f8f324f06
Bug 1555560: Add support for black formatting with mozlint; r=sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D33125
2020-07-08 19:35:49 +00:00
Sylvestre Ledru
56fbafd822
Bug 1647265 - mozlint: when type is 'regex', add the capability to ignore the case r=ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D80477
2020-06-23 21:45:16 +00:00
Sylvestre Ledru
f47f1968a4
Bug 1623024 - mozlint: Add pylint as new linter r=linter-reviewers,ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D79076
2020-06-18 20:04:50 +00:00
Sylvestre Ledru
47b3629cd9
Bug 1642825 - mozlint: Add a linter to prevent further use of black/whitelist r=Gijs,linter-reviewers,mossop,ahal
...
Note that I cannot do unit test because of it doesn't support regex payload
''Failed: could not resolve a lint function from''
Differential Revision: https://phabricator.services.mozilla.com/D78158
2020-06-16 17:02:59 +00:00
Sylvestre Ledru
7de68c2cea
Bug 1642898 - Remove most of the references of black/whitelist within the doc r=Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D78000
2020-06-03 09:34:12 +00:00
Sylvestre Ledru
fedde13549
Bug 1636494 - doc: update the doc about some of the lint job moved to tier-2 r=linter-reviewers,ahal
...
Depends on D74435
Differential Revision: https://phabricator.services.mozilla.com/D74436
2020-05-13 09:32:57 +00:00
Ian Moody
a52653c73c
Bug 1536556 - Extend no-throw-cr-literal ESLint rule to forbid and fix throw new Error(Cr.ERROR);. r=Standard8
...
Code should be using `throw Components.Exception("", Cr.ERROR);` instead,
since `new Error()` just converts the int value of the Cr.ERROR into a string,
whereas `Exception` constructs an Exception object with the result property set
to the Cr.ERROR value, so other code can identify it.
Differential Revision: https://phabricator.services.mozilla.com/D28074
2020-05-05 17:43:39 +00:00
Ian Moody
85f9392bc8
Bug 1536556 - Add custom no-throw-cr-literal ESLint rule, and enable it by default. r=Standard8
...
This rule is based on the ESLint built-in no-throw-literal. Cr.ERRORs are also
literals since they are just integers and so have all the same disadvantages of
no stack info.
TestInterfaceJS.js is explicitly testing handling of throwing raw Cr.ERRORs and
thus needs to stay.
Differential Revision: https://phabricator.services.mozilla.com/D28072
2020-05-05 15:00:50 +00:00
Sylvestre Ledru
ee37eb29a7
Bug 1466070 - Integrate clang-format into mozlint r=linter-reviewers,ahal
...
For now, the local detection sucks. I will fix that once bug 1625884
is fixed
Differential Revision: https://phabricator.services.mozilla.com/D69683
--HG--
extra : moz-landing-system : lando
2020-04-15 20:39:32 +00:00
Sylvestre Ledru
7cfa120eb9
Bug 1623320 - Add support to run mozlint on dotfile r=linter-reviewers,ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D67316
--HG--
extra : moz-landing-system : lando
2020-03-20 21:51:03 +00:00
Andrew Halberstadt
ed55b7f24b
Bug 1623656 - [mozlint] Make output of ./mach lint --list readable, r=linter-reviewers,sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D67501
--HG--
extra : moz-landing-system : lando
2020-03-19 18:06:41 +00:00
Andrew Halberstadt
f4ff3c2181
Bug 1623339 - [lint.flake8] Fix path filtering bug when specifying subdirectory of excluded path, r=linter-reviewers,sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D67335
--HG--
rename : tools/lint/test/files/flake8/subdir/exclude/bad.py => tools/lint/test/files/flake8/subdir/exclude/exclude_subdir/bad.py
extra : moz-landing-system : lando
2020-03-18 17:02:34 +00:00
emilfs
5ff804de2e
Bug 1618487 - fix rstcheck linter warning. r=sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D64557
--HG--
extra : moz-landing-system : lando
2020-03-02 10:40:30 +00:00
Sylvestre Ledru
ef6f6d2886
Bug 1361341 - Add rust clippy to mozlint r=ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D58250
--HG--
extra : moz-landing-system : lando
2020-02-19 08:50:35 +00:00
Ciure Andrei
7ab2d76537
Backed out changeset a63ccd650889 (bug 1361341) for causing mozlint failures CLOSED TREE
2020-02-14 11:10:29 +02:00
Sylvestre Ledru
d284704bb3
Bug 1361341 - Add rust clippy to mozlint r=ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D58250
--HG--
extra : moz-landing-system : lando
2020-02-13 23:22:56 +00:00
Coroiu Cristina
ec8506ea56
Backed out 4 changesets (bug 1361341, bug 1578058) for mozilint failure at test_clippy.py on a CLOSED TREE
...
Backed out changeset 76d91acac82c (bug 1361341)
Backed out changeset aa0f5c68a325 (bug 1578058)
Backed out changeset 6df34f8ff016 (bug 1578058)
Backed out changeset 066a58eea385 (bug 1361341)
2020-02-14 01:15:11 +02:00
Sylvestre Ledru
39658a665b
Bug 1361341 - Add rust clippy to mozlint r=ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D58250
--HG--
extra : moz-landing-system : lando
2020-02-13 21:39:51 +00:00
Sylvestre Ledru
f9328d2021
Bug 1613526 - Create a code quality documentation and move the appropriate docs r=ahal
...
This for a few reasons:
* The summary becomes the landing page for code quality:
https://firefox-source-docs.mozilla.org/tools/static-analysis/summary.html
* I don't think we need a full code quality category
* Closer to the source-code-doc
* All the files at the same place
Differential Revision: https://phabricator.services.mozilla.com/D61767
--HG--
rename : tools/lint/docs/coding-style/coding_style_java.rst => docs/code-quality/coding-style/coding_style_java.rst
rename : tools/lint/docs/coding-style/coding_style_other.rst => docs/code-quality/coding-style/coding_style_other.rst
rename : tools/lint/docs/coding-style/coding_style_python.rst => docs/code-quality/coding-style/coding_style_python.rst
rename : tools/lint/docs/coding-style/format_cpp_code_with_clang-format.rst => docs/code-quality/coding-style/format_cpp_code_with_clang-format.rst
rename : tools/clang-tidy/docs/summary.rst => docs/code-quality/index.rst
rename : tools/lint/docs/create.rst => docs/code-quality/lint/create.rst
rename : tools/lint/docs/index.rst => docs/code-quality/lint/index.rst
rename : tools/lint/docs/index.rst => docs/code-quality/lint/lint.rst
rename : tools/lint/docs/linters/codespell.rst => docs/code-quality/lint/linters/codespell.rst
rename : tools/lint/docs/linters/cpp-virtual-final.rst => docs/code-quality/lint/linters/cpp-virtual-final.rst
rename : tools/lint/docs/linters/eslint-plugin-mozilla.rst => docs/code-quality/lint/linters/eslint-plugin-mozilla.rst
rename : tools/lint/docs/linters/eslint-plugin-spidermonkey-js.rst => docs/code-quality/lint/linters/eslint-plugin-spidermonkey-js.rst
rename : tools/lint/docs/linters/eslint.rst => docs/code-quality/lint/linters/eslint.rst
rename : tools/lint/docs/linters/file-perm.rst => docs/code-quality/lint/linters/file-perm.rst
rename : tools/lint/docs/linters/file-whitespace.rst => docs/code-quality/lint/linters/file-whitespace.rst
rename : tools/lint/docs/linters/flake8.rst => docs/code-quality/lint/linters/flake8.rst
rename : tools/lint/docs/linters/l10n.rst => docs/code-quality/lint/linters/l10n.rst
rename : tools/lint/docs/linters/license.rst => docs/code-quality/lint/linters/license.rst
rename : tools/lint/docs/linters/lintpref.rst => docs/code-quality/lint/linters/lintpref.rst
rename : tools/lint/docs/linters/mingw-capitalization.rst => docs/code-quality/lint/linters/mingw-capitalization.rst
rename : tools/lint/docs/linters/perfdocs.rst => docs/code-quality/lint/linters/perfdocs.rst
rename : tools/lint/docs/linters/rstlinter.rst => docs/code-quality/lint/linters/rstlinter.rst
rename : tools/lint/docs/linters/rustfmt.rst => docs/code-quality/lint/linters/rustfmt.rst
rename : tools/lint/docs/usage.rst => docs/code-quality/lint/usage.rst
rename : tools/clang-tidy/docs/index.rst => docs/code-quality/static-analysis.rst
extra : moz-landing-system : lando
2020-02-11 09:11:44 +00:00