From d6cee706955f300086f41f9318d23631f64f036b Mon Sep 17 00:00:00 2001 From: souldzin <4908127+souldzin@users.noreply.github.com> Date: Thu, 13 Aug 2020 10:30:46 -0500 Subject: feat: Add "--json" flag to deno lint (#6940) Co-authored-by: JackSkylark --- cli/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 27948e14f..b5eb0b745 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -346,6 +346,7 @@ async fn lint_command( files: Vec, list_rules: bool, ignore: Vec, + json: bool, ) -> Result<(), ErrBox> { if !flags.unstable { exit_unstable("lint"); @@ -356,7 +357,7 @@ async fn lint_command( return Ok(()); } - lint::lint_files(files, ignore).await + lint::lint_files(files, ignore, json).await } async fn cache_command(flags: Flags, files: Vec) -> Result<(), ErrBox> { @@ -738,7 +739,8 @@ pub fn main() { files, rules, ignore, - } => lint_command(flags, files, rules, ignore).boxed_local(), + json, + } => lint_command(flags, files, rules, ignore, json).boxed_local(), DenoSubcommand::Repl => run_repl(flags).boxed_local(), DenoSubcommand::Run { script } => run_command(flags, script).boxed_local(), DenoSubcommand::Test { -- cgit v1.2.3