summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorCGQAQ <m.jason.liu@outlook.com>2021-10-06 05:07:38 +0800
committerGitHub <noreply@github.com>2021-10-05 23:07:38 +0200
commitc555b31d40bcc374013395bd5805410fe7f77b20 (patch)
tree659a4182122a923bde884b72e6a02242c68293d9 /cli/main.rs
parent22328f87585611ae70e555ad7941cc5093b92544 (diff)
feat(lint): add support for --watch flag (#11983)
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs11
1 files changed, 1 insertions, 10 deletions
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(