From c555b31d40bcc374013395bd5805410fe7f77b20 Mon Sep 17 00:00:00 2001 From: CGQAQ Date: Wed, 6 Oct 2021 05:07:38 +0800 Subject: feat(lint): add support for --watch flag (#11983) --- cli/main.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 758681ecb..dc2f2f578 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -531,16 +531,7 @@ async fn lint_command( None }; - tools::lint::lint_files( - maybe_lint_config, - lint_flags.rules_tags, - lint_flags.rules_include, - lint_flags.rules_exclude, - lint_flags.files, - lint_flags.ignore, - lint_flags.json, - ) - .await + tools::lint::lint(maybe_lint_config, lint_flags, flags.watch).await } async fn cache_command( -- cgit v1.2.3