Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ci/sembr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ use regex::Regex;

#[derive(Parser)]
struct Cli {
root_dir: PathBuf,
/// File or directory to check
path: PathBuf,
#[arg(long)]
/// Modify files that do not comply
overwrite: bool,
/// Applies to lines that are to be split
#[arg(long, default_value_t = 100)]
line_length_limit: usize,
#[arg(long)]
Expand All @@ -31,7 +34,7 @@ fn main() -> Result<()> {
let mut compliant = Vec::new();
let mut not_compliant = Vec::new();
let mut made_compliant = Vec::new();
for result in Walk::new(cli.root_dir) {
for result in Walk::new(cli.path) {
let entry = result?;
if entry.file_type().expect("no stdin").is_dir() {
continue;
Expand Down
Loading