We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffdcb98 + fbb91b2 commit 04addc0Copy full SHA for 04addc0
ci/sembr/src/main.rs
@@ -10,9 +10,12 @@ use regex::Regex;
10
11
#[derive(Parser)]
12
struct Cli {
13
- root_dir: PathBuf,
+ /// File or directory to check
14
+ path: PathBuf,
15
#[arg(long)]
16
+ /// Modify files that do not comply
17
overwrite: bool,
18
+ /// Applies to lines that are to be split
19
#[arg(long, default_value_t = 100)]
20
line_length_limit: usize,
21
@@ -31,7 +34,7 @@ fn main() -> Result<()> {
31
34
let mut compliant = Vec::new();
32
35
let mut not_compliant = Vec::new();
33
36
let mut made_compliant = Vec::new();
- for result in Walk::new(cli.root_dir) {
37
+ for result in Walk::new(cli.path) {
38
let entry = result?;
39
if entry.file_type().expect("no stdin").is_dir() {
40
continue;
0 commit comments