diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2020-08-12 19:17:44 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 15:47:44 +0200 |
commit | 6706eb551532ee6c84ad013377ac2cd91681424a (patch) | |
tree | 934d2d003c8ef7868986e136a96589e25299607d /cli/main.rs | |
parent | fed70c9903e616702241725e82a7d633f2a9b05d (diff) |
feat: add "--ignore" to deno lint (#6934)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 11 |
1 files changed, 7 insertions, 4 deletions
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<String>, list_rules: bool, + ignore: Vec<String>, ) -> 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<String>) -> 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 { |