diff options
author | Akshay <[email protected]> | 2022-02-05 05:44:48 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-02-20 05:31:53 +0000 |
commit | 44865fcb29051ac06e981689b8673513690f6f3e (patch) | |
tree | 1dd484e93c24151f1fb752b72d9866893ce30a56 /bin/src/main.rs | |
parent | c7874ec26d6499a1196ce23432beb33764490dec (diff) |
new subcommand: statix-list
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/main.rs')
-rw-r--r-- | bin/src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs index be79bb8..ebd230e 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs | |||
@@ -1,9 +1,10 @@ | |||
1 | use clap::Parser; | 1 | use clap::Parser; |
2 | |||
3 | #[rustfmt::skip] | ||
2 | use statix::{ | 4 | use statix::{ |
3 | config::{Opts, SubCommand}, | 5 | config::{Opts, SubCommand}, |
4 | dump, | ||
5 | err::StatixErr, | 6 | err::StatixErr, |
6 | explain, fix, lint, | 7 | lint, fix, explain, dump, list, |
7 | }; | 8 | }; |
8 | 9 | ||
9 | fn _main() -> Result<(), StatixErr> { | 10 | fn _main() -> Result<(), StatixErr> { |
@@ -14,6 +15,7 @@ fn _main() -> Result<(), StatixErr> { | |||
14 | SubCommand::Single(config) => fix::main::single(config), | 15 | SubCommand::Single(config) => fix::main::single(config), |
15 | SubCommand::Explain(config) => explain::main::main(config), | 16 | SubCommand::Explain(config) => explain::main::main(config), |
16 | SubCommand::Dump(_) => dump::main::main(), | 17 | SubCommand::Dump(_) => dump::main::main(), |
18 | SubCommand::List(_) => list::main::main(), | ||
17 | } | 19 | } |
18 | } | 20 | } |
19 | 21 | ||