@@ -105,30 +105,6 @@ function prunePathsWithinSymlinks(paths) {
105
105
} ) ;
106
106
}
107
107
108
- function exclusionBasedFileListBuilder ( excludePaths ) {
109
- // Uses glob to traverse code directory and find files to analyze,
110
- // excluding files passed in with by CLI config, and including only
111
- // files in the list of desired extensions.
112
- //
113
- // Deprecated style of file expansion, supported for users of the old CLI.
114
- return function ( extensions ) {
115
- var analysisFiles = [ ] ;
116
- var allFiles = glob . sync ( "/code/**/**" , { } ) ;
117
-
118
- prunePathsWithinSymlinks ( allFiles ) . forEach ( function ( file , i , a ) {
119
- if ( excludePaths . indexOf ( file . split ( "/code/" ) [ 1 ] ) < 0 ) {
120
- if ( fs . lstatSync ( file ) . isFile ( ) ) {
121
- if ( ! isFileIgnoredByLibrary ( file ) && isFileWithMatchingExtension ( file , extensions ) ) {
122
- analysisFiles . push ( file ) ;
123
- }
124
- }
125
- }
126
- } ) ;
127
-
128
- return analysisFiles ;
129
- } ;
130
- }
131
-
132
108
function inclusionBasedFileListBuilder ( includePaths ) {
133
109
// Uses glob to expand the files and directories in includePaths, filtering
134
110
// down to match the list of desired extensions.
@@ -168,12 +144,9 @@ runWithTiming("engineConfig", function () {
168
144
buildFileList = inclusionBasedFileListBuilder (
169
145
engineConfig . include_paths
170
146
) ;
171
- } else if ( engineConfig . exclude_paths ) {
172
- var ignores = engineConfig . exclude_paths ;
173
- buildFileList = exclusionBasedFileListBuilder ( ignores ) ;
174
147
} else {
175
- // No includes or excludes , let's try with everything
176
- buildFileList = exclusionBasedFileListBuilder ( [ ] ) ;
148
+ // No explicit includes , let's try with everything
149
+ buildFileList = inclusionBasedFileListBuilder ( [ "./" ] ) ;
177
150
}
178
151
179
152
var userConfig = engineConfig . config || { } ;
0 commit comments