зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1799620 - mozlint/clippy: using nightly isn't necessary anymore r=linter-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D161564
This commit is contained in:
Родитель
fea45ca024
Коммит
2f9f65bbc4
|
@ -26,14 +26,8 @@ section in the `clippy.yml <https://searchfox.org/mozilla-central/source/tools/l
|
|||
Autofix
|
||||
-------
|
||||
|
||||
This linter provides a ``--fix`` option. It requires using nightly
|
||||
which can be installed with:
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
$ rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu
|
||||
|
||||
|
||||
This linter provides a ``--fix`` option.
|
||||
Please note that this option does not fix all detected issues.
|
||||
|
||||
Sources
|
||||
-------
|
||||
|
|
|
@ -191,16 +191,13 @@ def lint(paths, config, fix=None, **lintargs):
|
|||
cmd_args_common = ["--manifest-path"]
|
||||
cmd_args_clippy = [cargo]
|
||||
|
||||
if fix:
|
||||
cmd_args_clippy += ["+nightly"]
|
||||
|
||||
cmd_args_clippy += [
|
||||
"clippy",
|
||||
"--message-format=json",
|
||||
]
|
||||
|
||||
if fix:
|
||||
cmd_args_clippy += ["--fix", "-Z", "unstable-options"]
|
||||
cmd_args_clippy += ["--fix"]
|
||||
|
||||
lock_files_to_delete = []
|
||||
for p in paths:
|
||||
|
|
Загрузка…
Ссылка в новой задаче