@@ -113,7 +113,7 @@ var languageServiceLibrarySources = [
113
113
return path . join ( serverDirectory , f ) ;
114
114
} ) . concat ( servicesSources ) ;
115
115
116
- var harnessSources = [
116
+ var harnessCoreSources = [
117
117
"harness.ts" ,
118
118
"sourceMapRecorder.ts" ,
119
119
"harnessLanguageService.ts" ,
@@ -129,7 +129,9 @@ var harnessSources = [
129
129
"runner.ts"
130
130
] . map ( function ( f ) {
131
131
return path . join ( harnessDirectory , f ) ;
132
- } ) . concat ( [
132
+ } ) ;
133
+
134
+ var harnessSources = harnessCoreSources . concat ( [
133
135
"incrementalParser.ts" ,
134
136
"jsDocParsing.ts" ,
135
137
"services/colorization.ts" ,
@@ -730,13 +732,13 @@ task("update-sublime", ["local", serverFile], function() {
730
732
// run this task automatically
731
733
desc ( "Runs tslint on the compiler sources" ) ;
732
734
task ( "lint" , [ ] , function ( ) {
733
- var lintTagets = compilerSources . concat ( harnessSources ) ;
734
- for ( var i in lintTagets ) {
735
- var f = lintTagets [ i ] ;
735
+ function success ( f ) { return function ( ) { console . log ( 'SUCCESS: No linter errors in ' + f + '\n' ) ; } } ;
736
+ function failure ( f ) { return function ( ) { console . log ( 'FAILURE: Please fix linting errors in ' + f + '\n' ) } } ;
737
+
738
+ var lintTargets = compilerSources . concat ( harnessCoreSources ) ;
739
+ for ( var i in lintTargets ) {
740
+ var f = lintTargets [ i ] ;
736
741
var cmd = 'tslint -f ' + f ;
737
- exec ( cmd ,
738
- function ( ) { console . log ( 'SUCCESS: No linter errors' ) ; } ,
739
- function ( ) { console . log ( 'FAILURE: Please fix linting errors in ' + f + '\n' ) ;
740
- } ) ;
742
+ exec ( cmd , success ( f ) , failure ( f ) ) ;
741
743
}
742
744
} , { async : true } ) ;
0 commit comments