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/config.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/config.rs')
-rw-r--r-- | bin/src/config.rs | 5 |
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)] |
206 | pub struct Dump {} | 208 | pub struct Dump {} |
207 | 209 | ||
210 | #[derive(Parser, Debug)] | ||
211 | pub struct List {} | ||
212 | |||
208 | #[derive(Debug, Copy, Clone)] | 213 | #[derive(Debug, Copy, Clone)] |
209 | pub enum OutFormat { | 214 | pub enum OutFormat { |
210 | #[cfg(feature = "json")] | 215 | #[cfg(feature = "json")] |