Lints and suggestions for the Nix programming language
at main 14 lines 324 B view raw
1pub mod main { 2 use crate::err::StatixErr; 3 4 use lib::LINTS; 5 6 pub fn main() -> Result<(), StatixErr> { 7 let mut lints = (*LINTS).clone(); 8 lints.as_mut_slice().sort_by_key(|a| a.code()); 9 for l in lints { 10 println!("W{:02} {}", l.code(), l.name()); 11 } 12 Ok(()) 13 } 14}