File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +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 = [
18
- / ^ d i s t - s c h e m a [ \\ \/ ] .* / ,
19
- ] ;
17
+ const excluded = [ / ^ d i s t - s c h e m a [ \\ \/ ] .* / , / .* \/ t h i r d _ p a r t y \/ .* / ] ;
20
18
21
19
22
20
function _buildRules ( logger : logging . Logger ) {
@@ -72,7 +70,8 @@ export default async function (options: ParsedArgs, logger: logging.Logger) {
72
70
} ;
73
71
74
72
program . getRootFileNames ( ) . forEach ( fileName => {
75
- 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 ) ) ) {
76
75
return ;
77
76
}
78
77
You can’t perform that action at this time.
0 commit comments