From 6706eb551532ee6c84ad013377ac2cd91681424a Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 12 Aug 2020 19:17:44 +0530 Subject: feat: add "--ignore" to deno lint (#6934) --- cli/main.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 5400d3f65..27948e14f 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -345,6 +345,7 @@ async fn lint_command( flags: Flags, files: Vec, list_rules: bool, + ignore: Vec, ) -> Result<(), ErrBox> { if !flags.unstable { exit_unstable("lint"); @@ -355,7 +356,7 @@ async fn lint_command( return Ok(()); } - lint::lint_files(files).await + lint::lint_files(files, ignore).await } async fn cache_command(flags: Flags, files: Vec) -> Result<(), ErrBox> { @@ -733,9 +734,11 @@ pub fn main() { } => { install_command(flags, module_url, args, name, root, force).boxed_local() } - DenoSubcommand::Lint { files, rules } => { - lint_command(flags, files, rules).boxed_local() - } + DenoSubcommand::Lint { + files, + rules, + ignore, + } => lint_command(flags, files, rules, ignore).boxed_local(), DenoSubcommand::Repl => run_repl(flags).boxed_local(), DenoSubcommand::Run { script } => run_command(flags, script).boxed_local(), DenoSubcommand::Test { -- cgit v1.2.3