jlint 0.1.0

A command-line linter for Rust projects that flags noisy qualified paths and blank lines between imports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;
use std::path::PathBuf;

fn main() {
  let root =
    env::args_os().nth(1).map(PathBuf::from).unwrap_or_else(|| {
      env::current_dir().expect("current directory")
    });
  let result = jlint::lint(&root);
  if result.errors > 0 {
    std::process::exit(1);
  }
}