File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -291,22 +291,22 @@ impl LintRunner {
291
291
292
292
let config_store = ConfigStore :: new ( lint_config, nested_configs, external_plugin_store) ;
293
293
294
+ let files_to_lint = paths
295
+ . into_iter ( )
296
+ . filter ( |path| !config_store. should_ignore ( Path :: new ( path) ) )
297
+ . collect :: < Vec < Arc < OsStr > > > ( ) ;
298
+
294
299
// Run type-aware linting through tsgolint
295
300
// TODO: Add a warning message if `tsgolint` cannot be found, but type-aware rules are enabled
296
301
if self . options . type_aware {
297
302
if let Err ( err) = TsGoLintState :: new ( options. cwd ( ) , config_store. clone ( ) )
298
- . lint ( & paths , tx_error. clone ( ) )
303
+ . lint ( & files_to_lint , tx_error. clone ( ) )
299
304
{
300
305
print_and_flush_stdout ( stdout, & err) ;
301
306
return CliRunResult :: TsGoLintError ;
302
307
}
303
308
}
304
309
305
- let files_to_lint = paths
306
- . into_iter ( )
307
- . filter ( |path| !config_store. should_ignore ( Path :: new ( path) ) )
308
- . collect :: < Vec < Arc < OsStr > > > ( ) ;
309
-
310
310
let linter = Linter :: new ( LintOptions :: default ( ) , config_store, self . external_linter )
311
311
. with_fix ( fix_options. fix_kind ( ) )
312
312
. with_report_unused_directives ( report_unused_directives) ;
You can’t perform that action at this time.
0 commit comments