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';
1212import { Configuration , ILinterOptions , Linter , findFormatter } from 'tslint' ;
1313import * as ts from 'typescript' ;
1414
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.
1616// 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 \/ .* / ] ;
2018
2119
2220function _buildRules ( logger : logging . Logger ) {
@@ -72,7 +70,8 @@ export default async function (options: ParsedArgs, logger: logging.Logger) {
7270 } ;
7371
7472 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 ) ) ) {
7675 return ;
7776 }
7877
You can’t perform that action at this time.
0 commit comments