Skip to content

Commit

Permalink
Add clippy as a command to mach
Browse files Browse the repository at this point in the history
This gives mach the ability to run clippy with `./mach clippy`.

Fixes #8134.
  • Loading branch information
nerith committed Oct 21, 2015
1 parent 12c6184 commit d1c2e79
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/servo/devenv_commands.py
Expand Up @@ -91,6 +91,16 @@ def update_cargo(self, params=None, package=None, all_packages=None):
subprocess.call(["cargo", "update"] + params,
env=self.build_env())

@Command('clippy',
description='Run Clippy',
category='devenv')
def clippy(self):
features = "--features=script/plugins/clippy"

with cd(path.join(self.context.topdir, "components", "servo")):
return subprocess.call(["cargo", "build", features],
env=self.build_env())

@Command('rustc',
description='Run the Rust compiler',
category='devenv')
Expand Down

0 comments on commit d1c2e79

Please sign in to comment.