@good-fences/api
Advanced tools
Comparing version
@@ -16,8 +16,9 @@ #! /usr/bin/env node | ||
.option('--ignoreExternalFences', 'Ignore external fences (e.g. those in `node_modules`)', false) | ||
.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); | ||
const options = program.opts(); | ||
const args = program.args; | ||
const options = program.opts(); | ||
const args = program.args; | ||
const result = goodFences({ | ||
@@ -28,3 +29,4 @@ paths: args, | ||
errOutputPath: options.errOutputPath, | ||
ignoreExternalFences: options.ignoreExternalFences ? 1 : 0 | ||
ignoreExternalFences: options.ignoreExternalFences ? 1 : 0, | ||
ignoredDirs: options.ignoredDirs | ||
}); | ||
@@ -31,0 +33,0 @@ result.forEach(r => { |
@@ -7,4 +7,4 @@ /* tslint:disable */ | ||
export const enum ExternalFences { | ||
Ignore = 0, | ||
Include = 1 | ||
Include = 0, | ||
Ignore = 1 | ||
} | ||
@@ -18,2 +18,3 @@ export function goodFences(opts: GoodFencesOptions): Array<GoodFencesError> | ||
ignoreExternalFences?: ExternalFences | ||
ignoredDirs?: Array<string> | ||
} | ||
@@ -20,0 +21,0 @@ export class GoodFencesError { |
{ | ||
"name": "@good-fences/api", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "index.js", | ||
@@ -38,6 +38,6 @@ "types": "index.d.ts", | ||
"optionalDependencies": { | ||
"@good-fences/api-win32-x64-msvc": "0.0.5", | ||
"@good-fences/api-darwin-x64": "0.0.5", | ||
"@good-fences/api-linux-x64-gnu": "0.0.5" | ||
"@good-fences/api-win32-x64-msvc": "0.0.6", | ||
"@good-fences/api-darwin-x64": "0.0.6", | ||
"@good-fences/api-linux-x64-gnu": "0.0.6" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import componentB from '../componentB/componentB'; | ||
import componentB from '../componentB/componentB'; // INVALID IMPORT | ||
import helperA1 from './helperA1'; | ||
@@ -3,0 +3,0 @@ import helperA2 from './helperA2'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
165165
5.12%48
14.29%392
5.95%