fix: add missing project filter rules (#2687)

This commit is contained in:
Dario Vladović 2021-05-04 08:57:38 +02:00 committed by GitHub
parent 48f913ec23
commit 41e417e1d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
let is_deno_project = context
.try_begin_scan()?
.set_files(&config.detect_files)
.set_extensions(&config.detect_extensions)
.set_folders(&config.detect_folders)
.is_match();
if !is_deno_project {

View File

@ -9,7 +9,9 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
let config = RedConfig::try_load(module.config);
let is_red_project = context
.try_begin_scan()?
.set_files(&config.detect_files)
.set_extensions(&config.detect_extensions)
.set_folders(&config.detect_folders)
.is_match();
if !is_red_project {