From 44865fcb29051ac06e981689b8673513690f6f3e Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 5 Feb 2022 11:14:48 +0530 Subject: 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 --- bin/src/config.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/src/config.rs') 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 { Explain(Explain), /// Dump a sample config to stdout Dump(Dump), + /// List all available lints + List(List), } #[derive(Parser, Debug)] @@ -205,6 +207,9 @@ pub struct Explain { #[derive(Parser, Debug)] pub struct Dump {} +#[derive(Parser, Debug)] +pub struct List {} + #[derive(Debug, Copy, Clone)] pub enum OutFormat { #[cfg(feature = "json")] -- cgit v1.2.3