Skip to content

Commit

Permalink
Modified good-fences cli documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
flickyiyo committed Oct 18, 2022
1 parent 9c6226e commit 6f7e911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion good-fences.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.option('-o, --output <string>', 'path to write found violations')
.option('--baseUrl <string>', "Overrides `compilerOptions.baseUrl` property read from '--project' argument")
.option('--ignoreExternalFences', 'Ignore external fences (e.g. those in `node_modules`)', false)
.option('--ignoredDirs [paths...]', 'Excludes matching dirs from fence evaluation (e.g. `--ignoreDirs lib` will not evaluate source files in all dirs named `lib`', [])
.option('--ignoredDirs [pathRegexs...]', 'Directories matching given regular expressions are excluded from fence evaluation (e.g. `--ignoreDirs lib` will not evaluate source files in all dirs named `lib`', [])
.arguments('<path> [morePaths...]', 'Dirs to look for fence and source files')
program.parse(process.argv);

Expand Down
1 change: 1 addition & 0 deletions src/good_fences_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ impl GoodFencesRunner {
&'a self,
ignored_dirs: Option<Vec<String>>,
) -> Vec<Result<ImportRuleViolation<'a, 'a>, String>> {
println!("Evaluating {} files", self.source_files.keys().len());
let mut all_violations: Vec<Result<ImportRuleViolation<'a, 'a>, String>> = vec![];
let ignored_dirs = match ignored_dirs {
Some(dirs) => dirs,
Expand Down

0 comments on commit 6f7e911

Please sign in to comment.