aboutsummaryrefslogtreecommitdiff
path: root/bin/src/list.rs
blob: 4fe30391bc848d947a93055dc92d9aa76f312ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod main {
    use crate::err::StatixErr;

    use lib::LINTS;

    pub fn main() -> Result<(), StatixErr> {
        let mut lints = (&*LINTS).clone();
        lints.as_mut_slice().sort_by(|a, b| a.code().cmp(&b.code()));
        for l in lints {
            println!("W{:02} {}", l.code(), l.name());
        }
        Ok(())
    }
}