aboutsummaryrefslogtreecommitdiff
path: root/bin/src/config.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-02-05 05:44:48 +0000
committerAkshay <[email protected]>2022-02-05 05:44:48 +0000
commit99bdafa7b98e478b5375db2d606409aa29150bcd (patch)
tree1b242ef6849b0dc8e67e2f525939c04b2c86f5fd /bin/src/config.rs
parentade09b4d172ff649b716a05ce597d2da864a3623 (diff)
new subcommand: statix-listfeat/list-lints
produces a list of lints with their error codes, handy for statix-explain or configuring the `disabled` array in .statix.toml
Diffstat (limited to 'bin/src/config.rs')
-rw-r--r--bin/src/config.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/src/config.rs b/bin/src/config.rs
index 29b6c9e..0f09618 100644
--- a/bin/src/config.rs
+++ b/bin/src/config.rs
@@ -31,6 +31,8 @@ pub enum SubCommand {
31 Explain(Explain), 31 Explain(Explain),
32 /// Dump a sample config to stdout 32 /// Dump a sample config to stdout
33 Dump(Dump), 33 Dump(Dump),
34 /// List all available lints
35 List(List),
34} 36}
35 37
36#[derive(Parser, Debug)] 38#[derive(Parser, Debug)]
@@ -205,6 +207,9 @@ pub struct Explain {
205#[derive(Parser, Debug)] 207#[derive(Parser, Debug)]
206pub struct Dump {} 208pub struct Dump {}
207 209
210#[derive(Parser, Debug)]
211pub struct List {}
212
208#[derive(Debug, Copy, Clone)] 213#[derive(Debug, Copy, Clone)]
209pub enum OutFormat { 214pub enum OutFormat {
210 #[cfg(feature = "json")] 215 #[cfg(feature = "json")]