From eccbca730d4d5b97b174b46501fa1187c7905f66 Mon Sep 17 00:00:00 2001 From: Miccah Date: Fri, 2 Aug 2024 07:48:39 -0700 Subject: [PATCH] [fix] Always configure the engine with the default detectors (#3152) If detectors are not wanted by a user, they can be filtered out via the `--include-detectors` or `--exclude-detectors` flag. --- main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index bb050a30d..b1f221dcb 100644 --- a/main.go +++ b/main.go @@ -465,8 +465,12 @@ func run(state overseer.State) { } engConf := engine.Config{ - Concurrency: *concurrency, - Detectors: conf.Detectors, + Concurrency: *concurrency, + // The engine must always be configured with the list of + // default detectors, which can be further filtered by the + // user. The filters are applied by the engine and are only + // subtractive. + Detectors: append(engine.DefaultDetectors(), conf.Detectors...), Verify: !*noVerification, IncludeDetectors: *includeDetectors, ExcludeDetectors: *excludeDetectors,