Граф коммитов

11 Коммитов

Автор SHA1 Сообщение Дата
Andrew Halberstadt 4ebbd3b587 Bug 1605106 - [lint.rustfmt] Return early if expanding exclusions results in no paths to lint, r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D58052

--HG--
extra : moz-landing-system : lando
2020-01-02 16:48:35 +00:00
Andrew Halberstadt 3e56188d46 Bug 1591977 - [lint.rustfmt] Don't print issues if --fix is passed in, r=sylvestre
This matches the behaviour of the other linters.

Depends on D50822

Differential Revision: https://phabricator.services.mozilla.com/D50823

--HG--
extra : moz-landing-system : lando
2019-10-30 21:30:10 +00:00
Andrew Halberstadt d4533429eb Bug 1591977 - [lint.rustfmt] Fix error when running 'mach lint -l rustfmt --fix', r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D50822

--HG--
extra : moz-landing-system : lando
2019-10-30 21:30:27 +00:00
Andrew Halberstadt d3eae4b83c Bug 1580280 - [mozlint] Run |mach lint| with Python 3 and drop support for Python 2 r=mars
Differential Revision: https://phabricator.services.mozilla.com/D45441

--HG--
extra : moz-landing-system : lando
2019-09-30 15:09:41 +00:00
Oana Pop Rus 4b9792db7c Backed out changeset 371641b1010b (bug 1580280) for lints failure on a CLOSED TREE 2019-09-26 00:18:33 +03:00
Andrew Halberstadt fdc7d0afac Bug 1580280 - [mozlint] Run |mach lint| with Python 3 and drop support for Python 2 r=mars
Differential Revision: https://phabricator.services.mozilla.com/D45441

--HG--
extra : moz-landing-system : lando
2019-09-25 20:03:14 +00:00
Anmol Agarwal d6766388f1 Bug 1554657 - Add a verbose mode to |mach lint| to display log output r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D43507

--HG--
extra : moz-landing-system : lando
2019-09-23 13:19:25 +00:00
Andrew Halberstadt 885bdd32e7 Bug 1580280 - [lint] Support Python 3 in other lint integrations r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D45440

--HG--
extra : moz-landing-system : lando
2019-09-18 21:11:02 +00:00
Andrew Halberstadt 3486ba642c Bug 1563797 - Use 'backports.shutil_which' instead of 'which' across the tree r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D37097

--HG--
extra : moz-landing-system : lando
2019-07-11 14:03:39 +00:00
Sylvestre Ledru d4a0ba5010 Bug 1554115 - mozlint rustfmt should fail if using the old rustfmt version r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D32439

--HG--
extra : moz-landing-system : lando
2019-05-24 21:53:58 +00:00
Sylvestre Ledru d1fc7c3609 Bug 1551078 - Add rustfmt as part of mozlint r=ahal
Two use cases:

1) Show the errors
$ ./mach lint -l rustfmt js/rust/src/rust.rs

Also works on a directory:
$ ./mach lint -l rustfmt js/rust/src/

2) Update the code
$ ./mach lint -l rustfmt js/rust/src/rust.rs --fix

To install it:
$ rustup component add rustfmt
$ export PATH=$PATH:~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/

Differential Revision: https://phabricator.services.mozilla.com/D30813

--HG--
extra : moz-landing-system : lando
2019-05-23 17:26:05 +00:00