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/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/src/main.rs') 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 @@ use clap::Parser; + +#[rustfmt::skip] use statix::{ config::{Opts, SubCommand}, - dump, err::StatixErr, - explain, fix, lint, + lint, fix, explain, dump, list, }; fn _main() -> Result<(), StatixErr> { @@ -14,6 +15,7 @@ fn _main() -> Result<(), StatixErr> { SubCommand::Single(config) => fix::main::single(config), SubCommand::Explain(config) => explain::main::main(config), SubCommand::Dump(_) => dump::main::main(), + SubCommand::List(_) => list::main::main(), } } -- cgit v1.2.3