From d1c2e79c89495902b431d0ae85ee1fdeebe8b42a Mon Sep 17 00:00:00 2001 From: Brandon Fairchild Date: Wed, 21 Oct 2015 19:21:20 -0400 Subject: Add `clippy` as a command to mach This gives mach the ability to run clippy with `./mach clippy`. Fixes #8134. --- python/servo/devenv_commands.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python/servo/devenv_commands.py') diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 7c43f7b3b38..39457e0fc27 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -91,6 +91,16 @@ class MachCommands(CommandBase): 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') -- cgit v1.2.3