Rename 'cargo-clippy' mach command to just 'clippy' (#34481)

Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
Nico Burns 2024-12-05 16:19:15 +13:00 committed by GitHub
parent 1eedfd3cf3
commit e4ec84fad1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -55,6 +55,6 @@ jobs:
# TODO: Do GitHub anotaions # TODO: Do GitHub anotaions
- name: Clippy - name: Clippy
run: | run: |
python3 ./mach cargo-clippy --use-crown --locked -- -- --deny warnings python3 ./mach clippy --use-crown --locked -- -- --deny warnings
- name: Tidy - name: Tidy
run: python3 ./mach test-tidy --no-progress --all run: python3 ./mach test-tidy --no-progress --all

View file

@ -125,12 +125,12 @@ class MachCommands(CommandBase):
self.ensure_clobbered() self.ensure_clobbered()
return self.run_cargo_build_like_command("fix", params, **kwargs) return self.run_cargo_build_like_command("fix", params, **kwargs)
@Command('cargo-clippy', @Command('clippy',
description='Run "cargo clippy"', description='Run "cargo clippy"',
category='devenv') category='devenv')
@CommandArgument( @CommandArgument(
'params', default=None, nargs='...', 'params', default=None, nargs='...',
help="Command-line arguments to be passed through to cargo-clippy") help="Command-line arguments to be passed through to clippy")
@CommandBase.common_command_arguments(build_configuration=True, build_type=False) @CommandBase.common_command_arguments(build_configuration=True, build_type=False)
def cargo_clippy(self, params, **kwargs): def cargo_clippy(self, params, **kwargs):
if not params: if not params: