File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ import * as path from 'path';
12
12
import { Configuration , ILinterOptions , Linter , findFormatter } from 'tslint' ;
13
13
import * as ts from 'typescript' ;
14
14
15
- // Blacklist (regexes) of the files to not lint. Generated files should not be linted.
15
+ // Excluded (regexes) of the files to not lint. Generated files should not be linted.
16
16
// TODO: when moved to using bazel for the build system, this won't be needed.
17
- const blacklist = [ / ^ d i s t - s c h e m a [ \\ \/ ] .* / , / .* \/ t h i r d _ p a r t y \/ .* / ] ;
17
+ const excluded = [ / ^ d i s t - s c h e m a [ \\ \/ ] .* / , / .* \/ t h i r d _ p a r t y \/ .* / ] ;
18
18
19
19
20
20
function _buildRules ( logger : logging . Logger ) {
@@ -70,7 +70,8 @@ export default async function (options: ParsedArgs, logger: logging.Logger) {
70
70
} ;
71
71
72
72
program . getRootFileNames ( ) . forEach ( fileName => {
73
- if ( blacklist . some ( x => x . test ( path . relative ( process . cwd ( ) , fileName ) ) ) ) {
73
+ const filePath = path . relative ( process . cwd ( ) , fileName ) . replace ( / \\ / g, '/' ) ;
74
+ if ( excluded . some ( x => x . test ( filePath ) ) ) {
74
75
return ;
75
76
}
76
77
You can’t perform that action at this time.
0 commit comments