Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
[THOG-793] - Return all unverified results (#856)
ahravfe029b1098be
diff --git a/README.md b/README.mdindex 7d1150c6f..2731ca335 100644--- a/README.md+++ b/README.md@@ -180,6 +180,7 @@ Flags:--concurrency=1 Number of concurrent workers.--no-verification Don't verify the results.--only-verified Only output verified results.+ --filter-unverified Only output first unverified result per chunk per detector if there are more than one results.--print-avg-detector-time Print the average time spent on each detector.--no-update Don't check for updates.-i, --include-paths=INCLUDE-PATHSdiff --git a/main.go b/main.goindex 9f25fa250..2278084e8 100644--- a/main.go+++ b/main.go@@ -30,15 +30,16 @@ import ()var (- cli = kingpin.New("TruffleHog", "TruffleHog is a tool for finding credentials.")- cmd string- debug = cli.Flag("debug", "Run in debug mode.").Bool()- trace = cli.Flag("trace", "Run in trace mode.").Bool()- jsonOut = cli.Flag("json", "Output in JSON format.").Short('j').Bool()- jsonLegacy = cli.Flag("json-legacy", "Use the pre-v3.0 JSON format. Only works with git, gitlab, and github sources.").Bool()- concurrency = cli.Flag("concurrency", "Number of concurrent workers.").Default(strconv.Itoa(runtime.NumCPU())).Int()- noVerification = cli.Flag("no-verification", "Don't verify the results.").Bool()- onlyVerified = cli.Flag("only-verified", "Only output verified results.").Bool()+ cli = kingpin.New("TruffleHog", "TruffleHog is a tool for finding credentials.")+ cmd string+ debug = cli.Flag("debug", "Run in debug mode.").Bool()+ trace = cli.Flag("trace", "Run in trace mode.").Bool()+ jsonOut = cli.Flag("json", "Output in JSON format.").Short('j').Bool()+ jsonLegacy = cli.Flag("json-legacy", "Use the pre-v3.0 JSON format. Only works with git, gitlab, and github sources.").Bool()+ concurrency = cli.Flag("concurrency", "Number of concurrent workers.").Default(strconv.Itoa(runtime.NumCPU())).Int()+ noVerification = cli.Flag("no-verification", "Don't verify the results.").Bool()+ onlyVerified = cli.Flag("only-verified", "Only output verified results.").Bool()+ filterUnverified = cli.Flag("filter-unverified", "Only output first unverified result per chunk per detector if there are more than one results.").Bool()// rules = cli.Flag("rules", "Path to file with custom rules.").String()printAvgDetectorTime = cli.Flag("print-avg-detector-time", "Print the average time spent on each detector.").Bool()noUpdate = cli.Flag("no-update", "Don't check for updates.").Bool()@@ -172,6 +173,7 @@ func run(state overseer.State) {engine.WithConcurrency(*concurrency),engine.WithDecoders(decoders.DefaultDecoders()...),engine.WithDetectors(!*noVerification, engine.DefaultDetectors()...),+ engine.WithFilterUnverified(*filterUnverified),)filter, err := common.FilterFromFiles(*gitScanIncludePaths, *gitScanExcludePaths)diff --git a/pkg/detectors/abbysale/abbysale.go b/pkg/detectors/abbysale/abbysale.goindex 8f961d4ca..e836ca571 100644--- a/pkg/detectors/abbysale/abbysale.go+++ b/pkg/detectors/abbysale/abbysale.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/abstract/abstract.go b/pkg/detectors/abstract/abstract.goindex 183f461da..914877d48 100644--- a/pkg/detectors/abstract/abstract.go+++ b/pkg/detectors/abstract/abstract.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/abuseipdb/abuseipdb.go b/pkg/detectors/abuseipdb/abuseipdb.goindex f081bff72..62cf56912 100644--- a/pkg/detectors/abuseipdb/abuseipdb.go+++ b/pkg/detectors/abuseipdb/abuseipdb.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/accuweather/accuweather.go b/pkg/detectors/accuweather/accuweather.goindex 7078551d7..dc7dad347 100644--- a/pkg/detectors/accuweather/accuweather.go+++ b/pkg/detectors/accuweather/accuweather.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/adafruitio/adafruitio.go b/pkg/detectors/adafruitio/adafruitio.goindex 3f72878ab..dc6fcd6f3 100644--- a/pkg/detectors/adafruitio/adafruitio.go+++ b/pkg/detectors/adafruitio/adafruitio.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/adobeio/adobeio.go b/pkg/detectors/adobeio/adobeio.goindex af079da9e..1fa055946 100644--- a/pkg/detectors/adobeio/adobeio.go+++ b/pkg/detectors/adobeio/adobeio.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/adzuna/adzuna.go b/pkg/detectors/adzuna/adzuna.goindex 32f8aca71..f76727a56 100644--- a/pkg/detectors/adzuna/adzuna.go+++ b/pkg/detectors/adzuna/adzuna.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/aeroworkflow/aeroworkflow.go b/pkg/detectors/aeroworkflow/aeroworkflow.goindex 31088f06c..3936a1701 100644--- a/pkg/detectors/aeroworkflow/aeroworkflow.go+++ b/pkg/detectors/aeroworkflow/aeroworkflow.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/agora/agora.go b/pkg/detectors/agora/agora.goindex 8fe1f537e..89add75a1 100644--- a/pkg/detectors/agora/agora.go+++ b/pkg/detectors/agora/agora.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/aha/aha.go b/pkg/detectors/aha/aha.goindex add34d30c..fc93f9073 100644--- a/pkg/detectors/aha/aha.go+++ b/pkg/detectors/aha/aha.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.goindex a09cfaf68..e02c01fc0 100644--- a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go+++ b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.goindex f47afa189..edbad5d2f 100644--- a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go+++ b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/airship/airship.go b/pkg/detectors/airship/airship.goindex 0f4dce5a2..521bc70cd 100644--- a/pkg/detectors/airship/airship.go+++ b/pkg/detectors/airship/airship.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/airtableapikey/airtableapikey.go b/pkg/detectors/airtableapikey/airtableapikey.goindex 814741d98..2994034e8 100644--- a/pkg/detectors/airtableapikey/airtableapikey.go+++ b/pkg/detectors/airtableapikey/airtableapikey.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/airvisual/airvisual.go b/pkg/detectors/airvisual/airvisual.goindex 51bd1736b..da8709c73 100644--- a/pkg/detectors/airvisual/airvisual.go+++ b/pkg/detectors/airvisual/airvisual.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/alconost/alconost.go b/pkg/detectors/alconost/alconost.goindex 75c1901c1..1bb70b909 100644--- a/pkg/detectors/alconost/alconost.go+++ b/pkg/detectors/alconost/alconost.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/alegra/alegra.go b/pkg/detectors/alegra/alegra.goindex a4df18fda..d29200792 100644--- a/pkg/detectors/alegra/alegra.go+++ b/pkg/detectors/alegra/alegra.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/aletheiaapi/aletheiaapi.go b/pkg/detectors/aletheiaapi/aletheiaapi.goindex ada90d1f5..a7862f68a 100644--- a/pkg/detectors/aletheiaapi/aletheiaapi.go+++ b/pkg/detectors/aletheiaapi/aletheiaapi.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/algoliaadminkey/algoliaadminkey.go b/pkg/detectors/algoliaadminkey/algoliaadminkey.goindex 7c5ac6023..804b2ab2e 100644--- a/pkg/detectors/algoliaadminkey/algoliaadminkey.go+++ b/pkg/detectors/algoliaadminkey/algoliaadminkey.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/alibaba/alibaba.go b/pkg/detectors/alibaba/alibaba.goindex 63df50bba..6d581bc2b 100644--- a/pkg/detectors/alibaba/alibaba.go+++ b/pkg/detectors/alibaba/alibaba.go@@ -128,5 +128,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/alienvault/alienvault.go b/pkg/detectors/alienvault/alienvault.goindex bda9f6dc5..f9a006e34 100644--- a/pkg/detectors/alienvault/alienvault.go+++ b/pkg/detectors/alienvault/alienvault.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/allsports/allsports.go b/pkg/detectors/allsports/allsports.goindex 4dc997f16..8cf66e9cc 100644--- a/pkg/detectors/allsports/allsports.go+++ b/pkg/detectors/allsports/allsports.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/amadeus/amadeus.go b/pkg/detectors/amadeus/amadeus.goindex ae788af97..2742b96ff 100644--- a/pkg/detectors/amadeus/amadeus.go+++ b/pkg/detectors/amadeus/amadeus.go@@ -86,5 +86,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ambee/ambee.go b/pkg/detectors/ambee/ambee.goindex 140d12778..0b58021a7 100644--- a/pkg/detectors/ambee/ambee.go+++ b/pkg/detectors/ambee/ambee.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/amplitudeapikey/amplitudeapikey.go b/pkg/detectors/amplitudeapikey/amplitudeapikey.goindex 7d30b00f7..538c0cda4 100644--- a/pkg/detectors/amplitudeapikey/amplitudeapikey.go+++ b/pkg/detectors/amplitudeapikey/amplitudeapikey.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/anypoint/anypoint.go b/pkg/detectors/anypoint/anypoint.goindex a669b59ff..083cb737f 100644--- a/pkg/detectors/anypoint/anypoint.go+++ b/pkg/detectors/anypoint/anypoint.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apacta/apacta.go b/pkg/detectors/apacta/apacta.goindex 9d8d80be7..39880760e 100644--- a/pkg/detectors/apacta/apacta.go+++ b/pkg/detectors/apacta/apacta.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/api2cart/api2cart.go b/pkg/detectors/api2cart/api2cart.goindex 01204a7c1..f96e4db4d 100644--- a/pkg/detectors/api2cart/api2cart.go+++ b/pkg/detectors/api2cart/api2cart.go@@ -80,7 +80,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}type Response struct {diff --git a/pkg/detectors/apideck/apideck.go b/pkg/detectors/apideck/apideck.goindex 917de9c87..6b24bf6e7 100644--- a/pkg/detectors/apideck/apideck.go+++ b/pkg/detectors/apideck/apideck.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apiflash/apiflash.go b/pkg/detectors/apiflash/apiflash.goindex bb8e4653a..0866fc61c 100644--- a/pkg/detectors/apiflash/apiflash.go+++ b/pkg/detectors/apiflash/apiflash.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apifonica/apifonica.go b/pkg/detectors/apifonica/apifonica.goindex 1d605fb5c..814735613 100644--- a/pkg/detectors/apifonica/apifonica.go+++ b/pkg/detectors/apifonica/apifonica.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apify/apify.go b/pkg/detectors/apify/apify.goindex 2a5eb5d23..82d4af818 100644--- a/pkg/detectors/apify/apify.go+++ b/pkg/detectors/apify/apify.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apilayer/apilayer.go b/pkg/detectors/apilayer/apilayer.goindex bf86f25eb..a1b141ecb 100644--- a/pkg/detectors/apilayer/apilayer.go+++ b/pkg/detectors/apilayer/apilayer.go@@ -2,12 +2,12 @@ package apilayerimport ("context"- "net/http"- "regexp"- "strings""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+ "net/http"+ "regexp"+ "strings")type Scanner struct{}@@ -18,7 +18,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apilayer"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apimatic/apimatic.go b/pkg/detectors/apimatic/apimatic.goindex 2030ed5cd..1707be166 100644--- a/pkg/detectors/apimatic/apimatic.go+++ b/pkg/detectors/apimatic/apimatic.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apiscience/apiscience.go b/pkg/detectors/apiscience/apiscience.goindex 103c9152f..37bed89e5 100644--- a/pkg/detectors/apiscience/apiscience.go+++ b/pkg/detectors/apiscience/apiscience.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apitemplate/apitemplate.go b/pkg/detectors/apitemplate/apitemplate.goindex 0876d7d4a..13687448d 100644--- a/pkg/detectors/apitemplate/apitemplate.go+++ b/pkg/detectors/apitemplate/apitemplate.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apollo/apollo.go b/pkg/detectors/apollo/apollo.goindex 51e0d9f1c..fc2c3d73e 100644--- a/pkg/detectors/apollo/apollo.go+++ b/pkg/detectors/apollo/apollo.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/appcues/appcues.go b/pkg/detectors/appcues/appcues.goindex b5f76a5a5..09695ddeb 100644--- a/pkg/detectors/appcues/appcues.go+++ b/pkg/detectors/appcues/appcues.go@@ -90,5 +90,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/appfollow/appfollow.go b/pkg/detectors/appfollow/appfollow.goindex feb389b1d..aa6f24c0f 100644--- a/pkg/detectors/appfollow/appfollow.go+++ b/pkg/detectors/appfollow/appfollow.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/appointedd/appointedd.go b/pkg/detectors/appointedd/appointedd.goindex 0b6782341..0e91e2cf7 100644--- a/pkg/detectors/appointedd/appointedd.go+++ b/pkg/detectors/appointedd/appointedd.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/appsynergy/appsynergy.go b/pkg/detectors/appsynergy/appsynergy.goindex 48a17dc3f..582289f6c 100644--- a/pkg/detectors/appsynergy/appsynergy.go+++ b/pkg/detectors/appsynergy/appsynergy.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/apptivo/apptivo.go b/pkg/detectors/apptivo/apptivo.goindex 084329433..02080c952 100644--- a/pkg/detectors/apptivo/apptivo.go+++ b/pkg/detectors/apptivo/apptivo.go@@ -89,5 +89,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/artifactory/artifactory.go b/pkg/detectors/artifactory/artifactory.goindex 1fe3dc431..1938d9f78 100644--- a/pkg/detectors/artifactory/artifactory.go+++ b/pkg/detectors/artifactory/artifactory.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/artsy/artsy.go b/pkg/detectors/artsy/artsy.goindex e1249ead1..61d3ab79e 100644--- a/pkg/detectors/artsy/artsy.go+++ b/pkg/detectors/artsy/artsy.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/asanaoauth/asanaoauth.go b/pkg/detectors/asanaoauth/asanaoauth.goindex 26c220359..a44089a9f 100644--- a/pkg/detectors/asanaoauth/asanaoauth.go+++ b/pkg/detectors/asanaoauth/asanaoauth.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.goindex 7915cb394..e6fbb505e 100644--- a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go+++ b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/assemblyai/assemblyai.go b/pkg/detectors/assemblyai/assemblyai.goindex c7e33dba4..351b7ca72 100644--- a/pkg/detectors/assemblyai/assemblyai.go+++ b/pkg/detectors/assemblyai/assemblyai.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/atera/atera.go b/pkg/detectors/atera/atera.goindex 5aff5be41..76db38df9 100644--- a/pkg/detectors/atera/atera.go+++ b/pkg/detectors/atera/atera.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/audd/audd.go b/pkg/detectors/audd/audd.goindex 9cb549e47..4ed02a53a 100644--- a/pkg/detectors/audd/audd.go+++ b/pkg/detectors/audd/audd.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.goindex 6abfccbf8..13575a00f 100644--- a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go+++ b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go@@ -88,5 +88,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/auth0oauth/auth0oauth.go b/pkg/detectors/auth0oauth/auth0oauth.goindex 56af8b690..5e6bb80ef 100644--- a/pkg/detectors/auth0oauth/auth0oauth.go+++ b/pkg/detectors/auth0oauth/auth0oauth.go@@ -114,5 +114,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/autodesk/autodesk.go b/pkg/detectors/autodesk/autodesk.goindex 40d7203d9..bbb499959 100644--- a/pkg/detectors/autodesk/autodesk.go+++ b/pkg/detectors/autodesk/autodesk.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/autoklose/autoklose.go b/pkg/detectors/autoklose/autoklose.goindex 311f3159f..aa7b813a4 100644--- a/pkg/detectors/autoklose/autoklose.go+++ b/pkg/detectors/autoklose/autoklose.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/autopilot/autopilot.go b/pkg/detectors/autopilot/autopilot.goindex f4e82ef68..45f7dfb42 100644--- a/pkg/detectors/autopilot/autopilot.go+++ b/pkg/detectors/autopilot/autopilot.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.goindex 843eac4fa..21094fd19 100644--- a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go+++ b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go@@ -21,7 +21,7 @@ var (client = common.SaneHttpClient()// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.- //The number prefix increments for every Personal Access Token created.+ // The number prefix increments for every Personal Access Token created.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"avaza"}) + `\b([0-9]+-[0-9a-f]{40})\b`))@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/aviationstack/aviationstack.go b/pkg/detectors/aviationstack/aviationstack.goindex 2ed3fc1bf..3c2572fe9 100644--- a/pkg/detectors/aviationstack/aviationstack.go+++ b/pkg/detectors/aviationstack/aviationstack.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/axonaut/axonaut.go b/pkg/detectors/axonaut/axonaut.goindex 9267af29a..975a26c3e 100644--- a/pkg/detectors/axonaut/axonaut.go+++ b/pkg/detectors/axonaut/axonaut.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/aylien/aylien.go b/pkg/detectors/aylien/aylien.goindex f8a28b30b..761d80c63 100644--- a/pkg/detectors/aylien/aylien.go+++ b/pkg/detectors/aylien/aylien.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ayrshare/ayrshare.go b/pkg/detectors/ayrshare/ayrshare.goindex a67ea03b8..1e5a1579f 100644--- a/pkg/detectors/ayrshare/ayrshare.go+++ b/pkg/detectors/ayrshare/ayrshare.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/azure/azure.go b/pkg/detectors/azure/azure.goindex 6b14e798c..d784f88b4 100644--- a/pkg/detectors/azure/azure.go+++ b/pkg/detectors/azure/azure.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bannerbear/bannerbear.go b/pkg/detectors/bannerbear/bannerbear.goindex 79afdd13a..cfdb1c09a 100644--- a/pkg/detectors/bannerbear/bannerbear.go+++ b/pkg/detectors/bannerbear/bannerbear.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/baremetrics/baremetrics.go b/pkg/detectors/baremetrics/baremetrics.goindex e9065c52b..0d42773d8 100644--- a/pkg/detectors/baremetrics/baremetrics.go+++ b/pkg/detectors/baremetrics/baremetrics.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/baseapiio/baseapiio.go b/pkg/detectors/baseapiio/baseapiio.goindex ed8a46070..05bf35a7c 100644--- a/pkg/detectors/baseapiio/baseapiio.go+++ b/pkg/detectors/baseapiio/baseapiio.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/beamer/beamer.go b/pkg/detectors/beamer/beamer.goindex b14339508..baf6b052f 100644--- a/pkg/detectors/beamer/beamer.go+++ b/pkg/detectors/beamer/beamer.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/beebole/beebole.go b/pkg/detectors/beebole/beebole.goindex c9cd9fe3a..38a09fc86 100644--- a/pkg/detectors/beebole/beebole.go+++ b/pkg/detectors/beebole/beebole.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/besnappy/besnappy.go b/pkg/detectors/besnappy/besnappy.goindex 85c82c536..60d3aff14 100644--- a/pkg/detectors/besnappy/besnappy.go+++ b/pkg/detectors/besnappy/besnappy.go@@ -2,11 +2,11 @@ package besnappyimport ("context"+ b64 "encoding/base64""fmt""net/http""regexp""strings"- b64 "encoding/base64""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors"@@ -21,7 +21,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"besnappy"}) + `\b([a-f0-9]{64})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/besttime/besttime.go b/pkg/detectors/besttime/besttime.goindex 28b7f7e63..196a02206 100644--- a/pkg/detectors/besttime/besttime.go+++ b/pkg/detectors/besttime/besttime.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/billomat/billomat.go b/pkg/detectors/billomat/billomat.goindex 4c40b0598..d6c60681c 100644--- a/pkg/detectors/billomat/billomat.go+++ b/pkg/detectors/billomat/billomat.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bitbar/bitbar.go b/pkg/detectors/bitbar/bitbar.goindex 2f13ec952..97051ddc4 100644--- a/pkg/detectors/bitbar/bitbar.go+++ b/pkg/detectors/bitbar/bitbar.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bitcoinaverage/bitcoinaverage.go b/pkg/detectors/bitcoinaverage/bitcoinaverage.goindex 9d5d7691b..677637564 100644--- a/pkg/detectors/bitcoinaverage/bitcoinaverage.go+++ b/pkg/detectors/bitcoinaverage/bitcoinaverage.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bitfinex/bitfinex.go b/pkg/detectors/bitfinex/bitfinex.goindex 006aadbb6..f6d7e4620 100644--- a/pkg/detectors/bitfinex/bitfinex.go+++ b/pkg/detectors/bitfinex/bitfinex.go@@ -99,5 +99,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.goindex 4b77101b5..def138b28 100644--- a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go+++ b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bitmex/bitmex.go b/pkg/detectors/bitmex/bitmex.goindex 94ccaf579..6ff8d61ba 100644--- a/pkg/detectors/bitmex/bitmex.go+++ b/pkg/detectors/bitmex/bitmex.go@@ -99,7 +99,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}func getBitmexSignature(timeStamp string, secret string, action string, path string, payload string) string {diff --git a/pkg/detectors/blablabus/blablabus.go b/pkg/detectors/blablabus/blablabus.goindex b72619858..2b8ba6925 100644--- a/pkg/detectors/blablabus/blablabus.go+++ b/pkg/detectors/blablabus/blablabus.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/blazemeter/blazemeter.go b/pkg/detectors/blazemeter/blazemeter.goindex 6d5d2d067..bc9554786 100644--- a/pkg/detectors/blazemeter/blazemeter.go+++ b/pkg/detectors/blazemeter/blazemeter.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/blitapp/blitapp.go b/pkg/detectors/blitapp/blitapp.goindex c7e7ebc63..fb753b19d 100644--- a/pkg/detectors/blitapp/blitapp.go+++ b/pkg/detectors/blitapp/blitapp.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/blogger/blogger.go b/pkg/detectors/blogger/blogger.goindex 1ade35d41..e702c9417 100644--- a/pkg/detectors/blogger/blogger.go+++ b/pkg/detectors/blogger/blogger.go@@ -67,5 +67,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bombbomb/bombbomb.go b/pkg/detectors/bombbomb/bombbomb.goindex 46636b9e8..8c69677a0 100644--- a/pkg/detectors/bombbomb/bombbomb.go+++ b/pkg/detectors/bombbomb/bombbomb.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/boostnote/boostnote.go b/pkg/detectors/boostnote/boostnote.goindex 16c9a66dc..3d562c0fa 100644--- a/pkg/detectors/boostnote/boostnote.go+++ b/pkg/detectors/boostnote/boostnote.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/borgbase/borgbase.go b/pkg/detectors/borgbase/borgbase.goindex 7e5374e98..7d01412a7 100644--- a/pkg/detectors/borgbase/borgbase.go+++ b/pkg/detectors/borgbase/borgbase.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/braintreepayments/braintreepayments.go b/pkg/detectors/braintreepayments/braintreepayments.goindex fd11698f9..28a0bff33 100644--- a/pkg/detectors/braintreepayments/braintreepayments.go+++ b/pkg/detectors/braintreepayments/braintreepayments.go@@ -91,5 +91,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/brandfetch/brandfetch.go b/pkg/detectors/brandfetch/brandfetch.goindex 13c454586..4d2e1dec3 100644--- a/pkg/detectors/brandfetch/brandfetch.go+++ b/pkg/detectors/brandfetch/brandfetch.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/browserstack/browserstack.go b/pkg/detectors/browserstack/browserstack.goindex a43efefd6..82c27c144 100644--- a/pkg/detectors/browserstack/browserstack.go+++ b/pkg/detectors/browserstack/browserstack.go@@ -20,8 +20,8 @@ var (client = common.SaneHttpClient()// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.- keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"browserstack","key","automate","local"}) + `\b([0-9a-zA-Z]{20})\b`)- userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"browserstack","user","automate","local"}) + `\b(^[a-zA-Z\d]+([._-]?[a-zA-Z\d]+)*[a-zA-Z\d]+$)\b`)+ keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"browserstack", "key", "automate", "local"}) + `\b([0-9a-zA-Z]{20})\b`)+ userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"browserstack", "user", "automate", "local"}) + `\b(^[a-zA-Z\d]+([._-]?[a-zA-Z\d]+)*[a-zA-Z\d]+$)\b`))// Keywords are used for efficiently pre-filtering chunks.@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/browshot/browshot.go b/pkg/detectors/browshot/browshot.goindex 33f8fe2f6..cd9929e65 100644--- a/pkg/detectors/browshot/browshot.go+++ b/pkg/detectors/browshot/browshot.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/buddyns/buddyns.go b/pkg/detectors/buddyns/buddyns.goindex a36b5ce7f..61294471a 100644--- a/pkg/detectors/buddyns/buddyns.go+++ b/pkg/detectors/buddyns/buddyns.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bugherd/bugherd.go b/pkg/detectors/bugherd/bugherd.goindex ee301080f..862182a28 100644--- a/pkg/detectors/bugherd/bugherd.go+++ b/pkg/detectors/bugherd/bugherd.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bugsnag/bugsnag.go b/pkg/detectors/bugsnag/bugsnag.goindex 4b9147211..ef7bd5ac8 100644--- a/pkg/detectors/bugsnag/bugsnag.go+++ b/pkg/detectors/bugsnag/bugsnag.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/buildkite/buildkite.go b/pkg/detectors/buildkite/buildkite.goindex 4e6ba7797..dd0ebc9b9 100644--- a/pkg/detectors/buildkite/buildkite.go+++ b/pkg/detectors/buildkite/buildkite.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bulbul/bulbul.go b/pkg/detectors/bulbul/bulbul.goindex 1207f3239..efcbb7531 100644--- a/pkg/detectors/bulbul/bulbul.go+++ b/pkg/detectors/bulbul/bulbul.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/bulksms/bulksms.go b/pkg/detectors/bulksms/bulksms.goindex 203e18ee7..1c9f113a3 100644--- a/pkg/detectors/bulksms/bulksms.go+++ b/pkg/detectors/bulksms/bulksms.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/buttercms/buttercms.go b/pkg/detectors/buttercms/buttercms.goindex 2f114c286..1544cc076 100644--- a/pkg/detectors/buttercms/buttercms.go+++ b/pkg/detectors/buttercms/buttercms.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/caflou/caflou.go b/pkg/detectors/caflou/caflou.goindex f61efab61..57ce45662 100644--- a/pkg/detectors/caflou/caflou.go+++ b/pkg/detectors/caflou/caflou.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/calendarific/calendarific.go b/pkg/detectors/calendarific/calendarific.goindex d0e855db9..c98a7700a 100644--- a/pkg/detectors/calendarific/calendarific.go+++ b/pkg/detectors/calendarific/calendarific.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/calendlyapikey/calendlyapikey.go b/pkg/detectors/calendlyapikey/calendlyapikey.goindex ebe3d1854..b250f77eb 100644--- a/pkg/detectors/calendlyapikey/calendlyapikey.go+++ b/pkg/detectors/calendlyapikey/calendlyapikey.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/calorieninja/calorieninja.go b/pkg/detectors/calorieninja/calorieninja.goindex c2f06261e..c87236f5c 100644--- a/pkg/detectors/calorieninja/calorieninja.go+++ b/pkg/detectors/calorieninja/calorieninja.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/campayn/campayn.go b/pkg/detectors/campayn/campayn.goindex 914d9ac84..92e87e976 100644--- a/pkg/detectors/campayn/campayn.go+++ b/pkg/detectors/campayn/campayn.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cannyio/cannyio.go b/pkg/detectors/cannyio/cannyio.goindex 4eef48c93..cddb28ce2 100644--- a/pkg/detectors/cannyio/cannyio.go+++ b/pkg/detectors/cannyio/cannyio.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/capsulecrm/capsulecrm.go b/pkg/detectors/capsulecrm/capsulecrm.goindex 262c0f38c..e92c23bb9 100644--- a/pkg/detectors/capsulecrm/capsulecrm.go+++ b/pkg/detectors/capsulecrm/capsulecrm.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/captaindata/captaindata.go b/pkg/detectors/captaindata/captaindata.goindex 8d77f1dfc..d062c1a9c 100644--- a/pkg/detectors/captaindata/captaindata.go+++ b/pkg/detectors/captaindata/captaindata.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/carboninterface/carboninterface.go b/pkg/detectors/carboninterface/carboninterface.goindex ee1e877f1..f5d8af8c8 100644--- a/pkg/detectors/carboninterface/carboninterface.go+++ b/pkg/detectors/carboninterface/carboninterface.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cashboard/cashboard.go b/pkg/detectors/cashboard/cashboard.goindex 8c4f8d90b..7fb2240e7 100644--- a/pkg/detectors/cashboard/cashboard.go+++ b/pkg/detectors/cashboard/cashboard.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/caspio/caspio.go b/pkg/detectors/caspio/caspio.goindex 9c97af741..191eec005 100644--- a/pkg/detectors/caspio/caspio.go+++ b/pkg/detectors/caspio/caspio.go@@ -92,5 +92,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/censys/censys.go b/pkg/detectors/censys/censys.goindex 5a816d9f0..d6dda21d7 100644--- a/pkg/detectors/censys/censys.go+++ b/pkg/detectors/censys/censys.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/centralstationcrm/centralstationcrm.go b/pkg/detectors/centralstationcrm/centralstationcrm.goindex f21a11489..d88b27be3 100644--- a/pkg/detectors/centralstationcrm/centralstationcrm.go+++ b/pkg/detectors/centralstationcrm/centralstationcrm.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cexio/cexio.go b/pkg/detectors/cexio/cexio.goindex 85fa81a04..4db91876b 100644--- a/pkg/detectors/cexio/cexio.go+++ b/pkg/detectors/cexio/cexio.go@@ -127,7 +127,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}type Response struct {diff --git a/pkg/detectors/chartmogul/chartmogul.go b/pkg/detectors/chartmogul/chartmogul.goindex d0d284a39..3eafb6350 100644--- a/pkg/detectors/chartmogul/chartmogul.go+++ b/pkg/detectors/chartmogul/chartmogul.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/chatbot/chatbot.go b/pkg/detectors/chatbot/chatbot.goindex 59cd72544..385460ea8 100644--- a/pkg/detectors/chatbot/chatbot.go+++ b/pkg/detectors/chatbot/chatbot.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/chatfule/chatfule.go b/pkg/detectors/chatfule/chatfule.goindex d91127659..eceeaf640 100644--- a/pkg/detectors/chatfule/chatfule.go+++ b/pkg/detectors/chatfule/chatfule.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/checio/checio.go b/pkg/detectors/checio/checio.goindex 9ff6874d1..5b322db29 100644--- a/pkg/detectors/checio/checio.go+++ b/pkg/detectors/checio/checio.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/checklyhq/checklyhq.go b/pkg/detectors/checklyhq/checklyhq.goindex 8ffdc28ca..40b2479cc 100644--- a/pkg/detectors/checklyhq/checklyhq.go+++ b/pkg/detectors/checklyhq/checklyhq.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/checkout/checkout.go b/pkg/detectors/checkout/checkout.goindex 6d12f1fa2..170f05831 100644--- a/pkg/detectors/checkout/checkout.go+++ b/pkg/detectors/checkout/checkout.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/checkvist/checkvist.go b/pkg/detectors/checkvist/checkvist.goindex f50ae66c2..9a6181dc6 100644--- a/pkg/detectors/checkvist/checkvist.go+++ b/pkg/detectors/checkvist/checkvist.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cicero/cicero.go b/pkg/detectors/cicero/cicero.goindex d459ddc52..6968e4a7b 100644--- a/pkg/detectors/cicero/cicero.go+++ b/pkg/detectors/cicero/cicero.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clarifai/clarifai.go b/pkg/detectors/clarifai/clarifai.goindex 4f53df5fa..d0e5d2599 100644--- a/pkg/detectors/clarifai/clarifai.go+++ b/pkg/detectors/clarifai/clarifai.go@@ -86,5 +86,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clearbit/clearbit.go b/pkg/detectors/clearbit/clearbit.goindex 8cc45ca16..b1076b74f 100644--- a/pkg/detectors/clearbit/clearbit.go+++ b/pkg/detectors/clearbit/clearbit.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clickhelp/clickhelp.go b/pkg/detectors/clickhelp/clickhelp.goindex d9ebaa1f5..d2b03f296 100644--- a/pkg/detectors/clickhelp/clickhelp.go+++ b/pkg/detectors/clickhelp/clickhelp.go@@ -92,5 +92,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clicksendsms/clicksendsms.go b/pkg/detectors/clicksendsms/clicksendsms.goindex 4bd5f5973..a19c9fe4e 100644--- a/pkg/detectors/clicksendsms/clicksendsms.go+++ b/pkg/detectors/clicksendsms/clicksendsms.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.goindex a7a5df90b..5370b8f70 100644--- a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go+++ b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cliengo/cliengo.go b/pkg/detectors/cliengo/cliengo.goindex 06bb93a1c..23ab0a908 100644--- a/pkg/detectors/cliengo/cliengo.go+++ b/pkg/detectors/cliengo/cliengo.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clinchpad/clinchpad.go b/pkg/detectors/clinchpad/clinchpad.goindex 72d774f76..02707d699 100644--- a/pkg/detectors/clinchpad/clinchpad.go+++ b/pkg/detectors/clinchpad/clinchpad.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clockify/clockify.go b/pkg/detectors/clockify/clockify.goindex 6d332e193..dd8679fe9 100644--- a/pkg/detectors/clockify/clockify.go+++ b/pkg/detectors/clockify/clockify.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clockworksms/clockworksms.go b/pkg/detectors/clockworksms/clockworksms.goindex 84763da53..6427d855d 100644--- a/pkg/detectors/clockworksms/clockworksms.go+++ b/pkg/detectors/clockworksms/clockworksms.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/closecrm/close.go b/pkg/detectors/closecrm/close.goindex 3cbc6f7d2..549be399b 100644--- a/pkg/detectors/closecrm/close.go+++ b/pkg/detectors/closecrm/close.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudconvert/cloudconvert.go b/pkg/detectors/cloudconvert/cloudconvert.goindex 16f0f8330..5575a184b 100644--- a/pkg/detectors/cloudconvert/cloudconvert.go+++ b/pkg/detectors/cloudconvert/cloudconvert.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloudconvert"}) + common.BuildRegexJWT("30,34", "200,500", "600,700")))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudelements/cloudelements.go b/pkg/detectors/cloudelements/cloudelements.goindex dcd066cb7..1ac83f6fb 100644--- a/pkg/detectors/cloudelements/cloudelements.go+++ b/pkg/detectors/cloudelements/cloudelements.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.goindex 365feabc6..9358f5d35 100644--- a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go+++ b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudflarecakey/cloudflarecakey.go b/pkg/detectors/cloudflarecakey/cloudflarecakey.goindex 75d3bdea8..e7db953ef 100644--- a/pkg/detectors/cloudflarecakey/cloudflarecakey.go+++ b/pkg/detectors/cloudflarecakey/cloudflarecakey.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.goindex 23fbb1e50..4f14796de 100644--- a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go+++ b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudimage/cloudimage.go b/pkg/detectors/cloudimage/cloudimage.goindex 3df903f63..948e979e1 100644--- a/pkg/detectors/cloudimage/cloudimage.go+++ b/pkg/detectors/cloudimage/cloudimage.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudmersive/cloudmersive.go b/pkg/detectors/cloudmersive/cloudmersive.goindex b2441250d..8687e2f16 100644--- a/pkg/detectors/cloudmersive/cloudmersive.go+++ b/pkg/detectors/cloudmersive/cloudmersive.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudplan/cloudplan.go b/pkg/detectors/cloudplan/cloudplan.goindex b28a41e72..8be944638 100644--- a/pkg/detectors/cloudplan/cloudplan.go+++ b/pkg/detectors/cloudplan/cloudplan.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloudsmith/cloudsmith.go b/pkg/detectors/cloudsmith/cloudsmith.goindex 5b799b865..f3499aaba 100644--- a/pkg/detectors/cloudsmith/cloudsmith.go+++ b/pkg/detectors/cloudsmith/cloudsmith.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloverly/cloverly.go b/pkg/detectors/cloverly/cloverly.goindex 80421e5b2..e7cfff932 100644--- a/pkg/detectors/cloverly/cloverly.go+++ b/pkg/detectors/cloverly/cloverly.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cloze/cloze.go b/pkg/detectors/cloze/cloze.goindex 215b788cc..c87d7716a 100644--- a/pkg/detectors/cloze/cloze.go+++ b/pkg/detectors/cloze/cloze.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/clustdoc/clustdoc.go b/pkg/detectors/clustdoc/clustdoc.goindex def8bf563..58e76957d 100644--- a/pkg/detectors/clustdoc/clustdoc.go+++ b/pkg/detectors/clustdoc/clustdoc.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/codacy/codacy.go b/pkg/detectors/codacy/codacy.goindex 01c7643d4..fc3d64139 100644--- a/pkg/detectors/codacy/codacy.go+++ b/pkg/detectors/codacy/codacy.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/codeclimate/codeclimate.go b/pkg/detectors/codeclimate/codeclimate.goindex 5106a968a..dad778989 100644--- a/pkg/detectors/codeclimate/codeclimate.go+++ b/pkg/detectors/codeclimate/codeclimate.go@@ -2,13 +2,13 @@ package codeclimateimport ("context"- "net/http"- "regexp"- "strings"-"fmt"+ "fmt""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+ "net/http"+ "regexp"+ "strings")type Scanner struct{}@@ -19,7 +19,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"codeclimate"}) + `\b([a-f0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/codemagic/codemagic.go b/pkg/detectors/codemagic/codemagic.goindex ae7d945f2..bb7fbe71e 100644--- a/pkg/detectors/codemagic/codemagic.go+++ b/pkg/detectors/codemagic/codemagic.go@@ -19,7 +19,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"codemagic"}) + common.BuildRegex(common.AlphaNumPattern, "_", 43)))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/codequiry/codequiry.go b/pkg/detectors/codequiry/codequiry.goindex ddd2f693c..b1afeee74 100644--- a/pkg/detectors/codequiry/codequiry.go+++ b/pkg/detectors/codequiry/codequiry.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/coinapi/coinapi.go b/pkg/detectors/coinapi/coinapi.goindex 6e3f34f53..89fa3ebf3 100644--- a/pkg/detectors/coinapi/coinapi.go+++ b/pkg/detectors/coinapi/coinapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/coinbase/coinbase.go b/pkg/detectors/coinbase/coinbase.goindex 0ac4fbe5d..b7ce1d360 100644--- a/pkg/detectors/coinbase/coinbase.go+++ b/pkg/detectors/coinbase/coinbase.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/coinlayer/coinlayer.go b/pkg/detectors/coinlayer/coinlayer.goindex 47623dd25..1c0c54699 100644--- a/pkg/detectors/coinlayer/coinlayer.go+++ b/pkg/detectors/coinlayer/coinlayer.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/coinlib/coinlib.go b/pkg/detectors/coinlib/coinlib.goindex 2c2dce67d..4b65e6dc9 100644--- a/pkg/detectors/coinlib/coinlib.go+++ b/pkg/detectors/coinlib/coinlib.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/collect2/collect2.go b/pkg/detectors/collect2/collect2.goindex c2667b568..501b39a88 100644--- a/pkg/detectors/collect2/collect2.go+++ b/pkg/detectors/collect2/collect2.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"collect2"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/column/column.go b/pkg/detectors/column/column.goindex e54bf3557..920be0822 100644--- a/pkg/detectors/column/column.go+++ b/pkg/detectors/column/column.go@@ -55,7 +55,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif err != nil {continue}- //req.SetBasicAuth(resMatch, "")+ // req.SetBasicAuth(resMatch, "")req.Header.Add("Authorization", fmt.Sprintf("Basic %s", base64.StdEncoding.EncodeToString([]byte(resMatch))))res, err := client.Do(req)if err == nil {@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/commercejs/commercejs.go b/pkg/detectors/commercejs/commercejs.goindex afb0018ee..78de42832 100644--- a/pkg/detectors/commercejs/commercejs.go+++ b/pkg/detectors/commercejs/commercejs.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/commodities/commodities.go b/pkg/detectors/commodities/commodities.goindex 6f4a8285f..fcf58d216 100644--- a/pkg/detectors/commodities/commodities.go+++ b/pkg/detectors/commodities/commodities.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/companyhub/companyhub.go b/pkg/detectors/companyhub/companyhub.goindex 2fa8e3f99..28e2a7c24 100644--- a/pkg/detectors/companyhub/companyhub.go+++ b/pkg/detectors/companyhub/companyhub.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/confluent/confluent.go b/pkg/detectors/confluent/confluent.goindex 685f08811..56d42d93c 100644--- a/pkg/detectors/confluent/confluent.go+++ b/pkg/detectors/confluent/confluent.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.goindex 91941d250..0226c9132 100644--- a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go+++ b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/conversiontools/conversiontools.go b/pkg/detectors/conversiontools/conversiontools.goindex 84c51e8d6..4dcd83ed4 100644--- a/pkg/detectors/conversiontools/conversiontools.go+++ b/pkg/detectors/conversiontools/conversiontools.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/convertapi/convertapi.go b/pkg/detectors/convertapi/convertapi.goindex f26eaf517..9dc1ef118 100644--- a/pkg/detectors/convertapi/convertapi.go+++ b/pkg/detectors/convertapi/convertapi.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"convertapi"}) + `\b([0-9a-zA-Z]{16})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/convertkit/convertkit.go b/pkg/detectors/convertkit/convertkit.goindex 90a3cdf1a..94c56c8e0 100644--- a/pkg/detectors/convertkit/convertkit.go+++ b/pkg/detectors/convertkit/convertkit.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/convier/convier.go b/pkg/detectors/convier/convier.goindex c4ce78f8f..d8cbd71fb 100644--- a/pkg/detectors/convier/convier.go+++ b/pkg/detectors/convier/convier.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/copper/copper.go b/pkg/detectors/copper/copper.goindex 054a42b75..e38d3e7b2 100644--- a/pkg/detectors/copper/copper.go+++ b/pkg/detectors/copper/copper.go@@ -88,5 +88,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/countrylayer/countrylayer.go b/pkg/detectors/countrylayer/countrylayer.goindex 2ab26348b..0be12aec5 100644--- a/pkg/detectors/countrylayer/countrylayer.go+++ b/pkg/detectors/countrylayer/countrylayer.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/courier/courier.go b/pkg/detectors/courier/courier.goindex c25bb98ad..b60f00522 100644--- a/pkg/detectors/courier/courier.go+++ b/pkg/detectors/courier/courier.go@@ -66,5 +66,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/coveralls/coveralls.go b/pkg/detectors/coveralls/coveralls.goindex 49b1aff0c..c845d1127 100644--- a/pkg/detectors/coveralls/coveralls.go+++ b/pkg/detectors/coveralls/coveralls.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/craftmypdf/craftmypdf.go b/pkg/detectors/craftmypdf/craftmypdf.goindex 6cd7336e7..54511ec53 100644--- a/pkg/detectors/craftmypdf/craftmypdf.go+++ b/pkg/detectors/craftmypdf/craftmypdf.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.goindex c6b12f40f..53337bf3c 100644--- a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go+++ b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/crowdin/crowdin.go b/pkg/detectors/crowdin/crowdin.goindex 82abb7b12..97e3bfbb3 100644--- a/pkg/detectors/crowdin/crowdin.go+++ b/pkg/detectors/crowdin/crowdin.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/cryptocompare/cryptocompare.go b/pkg/detectors/cryptocompare/cryptocompare.goindex 65f952d0c..82b278b41 100644--- a/pkg/detectors/cryptocompare/cryptocompare.go+++ b/pkg/detectors/cryptocompare/cryptocompare.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/currencycloud/currencycloud.go b/pkg/detectors/currencycloud/currencycloud.goindex d13710559..46db8e0cd 100644--- a/pkg/detectors/currencycloud/currencycloud.go+++ b/pkg/detectors/currencycloud/currencycloud.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/currencyfreaks/currencyfreaks.go b/pkg/detectors/currencyfreaks/currencyfreaks.goindex ad2d300dc..474323400 100644--- a/pkg/detectors/currencyfreaks/currencyfreaks.go+++ b/pkg/detectors/currencyfreaks/currencyfreaks.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/currencylayer/currencylayer.go b/pkg/detectors/currencylayer/currencylayer.goindex eb339a913..bb4ac2b5b 100644--- a/pkg/detectors/currencylayer/currencylayer.go+++ b/pkg/detectors/currencylayer/currencylayer.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/currencyscoop/currencyscoop.go b/pkg/detectors/currencyscoop/currencyscoop.goindex 151098729..a2f873640 100644--- a/pkg/detectors/currencyscoop/currencyscoop.go+++ b/pkg/detectors/currencyscoop/currencyscoop.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/currentsapi/currentsapi.go b/pkg/detectors/currentsapi/currentsapi.goindex 9126cef9c..81be4a702 100644--- a/pkg/detectors/currentsapi/currentsapi.go+++ b/pkg/detectors/currentsapi/currentsapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/customerguru/customerguru.go b/pkg/detectors/customerguru/customerguru.goindex 51c3e6a75..e47ba1e0a 100644--- a/pkg/detectors/customerguru/customerguru.go+++ b/pkg/detectors/customerguru/customerguru.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/customerio/customerio.go b/pkg/detectors/customerio/customerio.goindex 3dfd173f2..b0ce152ad 100644--- a/pkg/detectors/customerio/customerio.go+++ b/pkg/detectors/customerio/customerio.go@@ -86,5 +86,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/d7network/d7network.go b/pkg/detectors/d7network/d7network.goindex 839bbcef0..c567fbc6b 100644--- a/pkg/detectors/d7network/d7network.go+++ b/pkg/detectors/d7network/d7network.go@@ -66,5 +66,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dailyco/dailyco.go b/pkg/detectors/dailyco/dailyco.goindex 5a0e80c87..3dd8a8de5 100644--- a/pkg/detectors/dailyco/dailyco.go+++ b/pkg/detectors/dailyco/dailyco.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dandelion/dandelion.go b/pkg/detectors/dandelion/dandelion.goindex dec310281..aedbecb76 100644--- a/pkg/detectors/dandelion/dandelion.go+++ b/pkg/detectors/dandelion/dandelion.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dareboost/dareboost.go b/pkg/detectors/dareboost/dareboost.goindex 14162ba75..cda9fe18a 100644--- a/pkg/detectors/dareboost/dareboost.go+++ b/pkg/detectors/dareboost/dareboost.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/databox/databox.go b/pkg/detectors/databox/databox.goindex a6d0eb426..c310cb7e1 100644--- a/pkg/detectors/databox/databox.go+++ b/pkg/detectors/databox/databox.go@@ -21,7 +21,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"databox"}) + common.BuildRegex(common.RegexPattern, "", 21)))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/datadogtoken/datadogtoken.go b/pkg/detectors/datadogtoken/datadogtoken.goindex 16b07b877..39f80c06b 100644--- a/pkg/detectors/datadogtoken/datadogtoken.go+++ b/pkg/detectors/datadogtoken/datadogtoken.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/datafire/datafire.go b/pkg/detectors/datafire/datafire.goindex a39ed3009..881889999 100644--- a/pkg/detectors/datafire/datafire.go+++ b/pkg/detectors/datafire/datafire.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/datagov/datagov.go b/pkg/detectors/datagov/datagov.goindex 1b8b27636..f36e9a414 100644--- a/pkg/detectors/datagov/datagov.go+++ b/pkg/detectors/datagov/datagov.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/debounce/debounce.go b/pkg/detectors/debounce/debounce.goindex c0cf2b731..95c2dbdeb 100644--- a/pkg/detectors/debounce/debounce.go+++ b/pkg/detectors/debounce/debounce.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/deepai/deepai.go b/pkg/detectors/deepai/deepai.goindex 376660b8b..7a38317c5 100644--- a/pkg/detectors/deepai/deepai.go+++ b/pkg/detectors/deepai/deepai.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/deepgram/deepgram.go b/pkg/detectors/deepgram/deepgram.goindex 8107ce3f4..2280e8f99 100644--- a/pkg/detectors/deepgram/deepgram.go+++ b/pkg/detectors/deepgram/deepgram.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/delighted/delighted.go b/pkg/detectors/delighted/delighted.goindex 5c7d13ae6..4c49e8a8f 100644--- a/pkg/detectors/delighted/delighted.go+++ b/pkg/detectors/delighted/delighted.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/demio/demio.go b/pkg/detectors/demio/demio.goindex 6ca8aa61e..86e2a4cc1 100644--- a/pkg/detectors/demio/demio.go+++ b/pkg/detectors/demio/demio.go@@ -2,13 +2,13 @@ package demioimport ("context"- "net/http"- "regexp"- "strings""fmt""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+ "net/http"+ "regexp"+ "strings")type Scanner struct{}@@ -19,10 +19,9 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives- keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"demio"}) + `\b([a-z0-9A-Z]{32})\b`)+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"demio"}) + `\b([a-z0-9A-Z]{32})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"demio"}) + `\b([a-z0-9A-Z]{10,20})\b`)-)// Keywords are used for efficiently pre-filtering chunks.@@ -52,9 +51,9 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultDetectorType: detectorspb.DetectorType_Demio,Raw: []byte(resMatch),}-+if verify {- url := fmt.Sprintf("https://my.demio.com/api/v1/ping/query?api_key=%s&api_secret=%s",resMatch,resIdMatch)+ url := fmt.Sprintf("https://my.demio.com/api/v1/ping/query?api_key=%s&api_secret=%s", resMatch, resIdMatch)req, err := http.NewRequestWithContext(ctx, "GET", url, nil)if err != nil {continue@@ -65,18 +64,18 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}}}}-+results = append(results, s1)}-+}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/deputy/deputy.go b/pkg/detectors/deputy/deputy.goindex aa87dd958..815175a57 100644--- a/pkg/detectors/deputy/deputy.go+++ b/pkg/detectors/deputy/deputy.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/detectify/detectify.go b/pkg/detectors/detectify/detectify.goindex d2502b5bd..4a8b9d094 100644--- a/pkg/detectors/detectify/detectify.go+++ b/pkg/detectors/detectify/detectify.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/detectlanguage/detectlanguage.go b/pkg/detectors/detectlanguage/detectlanguage.goindex 15dcb788a..71a5ca446 100644--- a/pkg/detectors/detectlanguage/detectlanguage.go+++ b/pkg/detectors/detectlanguage/detectlanguage.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dfuse/dfuse.go b/pkg/detectors/dfuse/dfuse.goindex 0011535ea..6f2b19da9 100644--- a/pkg/detectors/dfuse/dfuse.go+++ b/pkg/detectors/dfuse/dfuse.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/diffbot/diffbot.go b/pkg/detectors/diffbot/diffbot.goindex 1ae1e9d7d..cca0f4145 100644--- a/pkg/detectors/diffbot/diffbot.go+++ b/pkg/detectors/diffbot/diffbot.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/diggernaut/diggernaut.go b/pkg/detectors/diggernaut/diggernaut.goindex 5311f519f..adc7d1fc1 100644--- a/pkg/detectors/diggernaut/diggernaut.go+++ b/pkg/detectors/diggernaut/diggernaut.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"diggernaut"}) + `\b([0-9a-z]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/digitaloceantoken/digitaloceantoken.go b/pkg/detectors/digitaloceantoken/digitaloceantoken.goindex 0cbc8881c..e5d757344 100644--- a/pkg/detectors/digitaloceantoken/digitaloceantoken.go+++ b/pkg/detectors/digitaloceantoken/digitaloceantoken.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/digitaloceanv2/digitaloceanv2.go b/pkg/detectors/digitaloceanv2/digitaloceanv2.goindex daba6ad9e..8a2e83087 100644--- a/pkg/detectors/digitaloceanv2/digitaloceanv2.go+++ b/pkg/detectors/digitaloceanv2/digitaloceanv2.go@@ -102,5 +102,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/discordbottoken/discordbottoken.go b/pkg/detectors/discordbottoken/discordbottoken.goindex b3d2390a4..201b79bf3 100644--- a/pkg/detectors/discordbottoken/discordbottoken.go+++ b/pkg/detectors/discordbottoken/discordbottoken.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/discordwebhook/discordwebhook.go b/pkg/detectors/discordwebhook/discordwebhook.goindex 809168266..5b32e7046 100644--- a/pkg/detectors/discordwebhook/discordwebhook.go+++ b/pkg/detectors/discordwebhook/discordwebhook.go@@ -63,5 +63,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/disqus/disqus.go b/pkg/detectors/disqus/disqus.goindex 5f869da52..9d21072cf 100644--- a/pkg/detectors/disqus/disqus.go+++ b/pkg/detectors/disqus/disqus.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ditto/ditto.go b/pkg/detectors/ditto/ditto.goindex 089be1fa2..99cb1712f 100644--- a/pkg/detectors/ditto/ditto.go+++ b/pkg/detectors/ditto/ditto.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dnscheck/dnscheck.go b/pkg/detectors/dnscheck/dnscheck.goindex dbbd9f3d3..51a80cea5 100644--- a/pkg/detectors/dnscheck/dnscheck.go+++ b/pkg/detectors/dnscheck/dnscheck.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/docparser/docparser.go b/pkg/detectors/docparser/docparser.goindex 595dff59a..931b9db0a 100644--- a/pkg/detectors/docparser/docparser.go+++ b/pkg/detectors/docparser/docparser.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"docparser"}) + `\b([a-f0-9]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/documo/documo.go b/pkg/detectors/documo/documo.goindex 86ae5cfe4..8887501c1 100644--- a/pkg/detectors/documo/documo.go+++ b/pkg/detectors/documo/documo.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/doppler/doppler.go b/pkg/detectors/doppler/doppler.goindex b55b0fc7c..dabe13d54 100644--- a/pkg/detectors/doppler/doppler.go+++ b/pkg/detectors/doppler/doppler.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dotmailer/dotmailer.go b/pkg/detectors/dotmailer/dotmailer.goindex 225f1ad31..71384177c 100644--- a/pkg/detectors/dotmailer/dotmailer.go+++ b/pkg/detectors/dotmailer/dotmailer.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dovico/dovico.go b/pkg/detectors/dovico/dovico.goindex 94cb8d3a8..6e4124108 100644--- a/pkg/detectors/dovico/dovico.go+++ b/pkg/detectors/dovico/dovico.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dronahq/dronahq.go b/pkg/detectors/dronahq/dronahq.goindex 74686bd14..8113b2a92 100644--- a/pkg/detectors/dronahq/dronahq.go+++ b/pkg/detectors/dronahq/dronahq.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/droneci/droneci.go b/pkg/detectors/droneci/droneci.goindex cec6c5208..b9d1df6da 100644--- a/pkg/detectors/droneci/droneci.go+++ b/pkg/detectors/droneci/droneci.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/duply/duply.go b/pkg/detectors/duply/duply.goindex 52612f9f4..ec4bcaed4 100644--- a/pkg/detectors/duply/duply.go+++ b/pkg/detectors/duply/duply.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"duply"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"duply"}) + `\b([0-9A-Z]{7}-[0-9A-Z]{7}-[0-9A-Z]{7}-[0-9A-Z]{7})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dwolla/dwolla.go b/pkg/detectors/dwolla/dwolla.goindex 81059b372..5d2dd88dc 100644--- a/pkg/detectors/dwolla/dwolla.go+++ b/pkg/detectors/dwolla/dwolla.go@@ -89,5 +89,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dynalist/dynalist.go b/pkg/detectors/dynalist/dynalist.goindex b84c19b02..6343dc099 100644--- a/pkg/detectors/dynalist/dynalist.go+++ b/pkg/detectors/dynalist/dynalist.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/dyspatch/dyspatch.go b/pkg/detectors/dyspatch/dyspatch.goindex 949e67653..41bd1141b 100644--- a/pkg/detectors/dyspatch/dyspatch.go+++ b/pkg/detectors/dyspatch/dyspatch.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.goindex c5121278f..3d661da40 100644--- a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go+++ b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/easyinsight/easyinsight.go b/pkg/detectors/easyinsight/easyinsight.goindex f60b02718..e789feacb 100644--- a/pkg/detectors/easyinsight/easyinsight.go+++ b/pkg/detectors/easyinsight/easyinsight.go@@ -86,5 +86,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ecostruxureit/ecostruxureit.go b/pkg/detectors/ecostruxureit/ecostruxureit.goindex 454ff000a..b33c4ae69 100644--- a/pkg/detectors/ecostruxureit/ecostruxureit.go+++ b/pkg/detectors/ecostruxureit/ecostruxureit.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ecostruxureit"}) + `\b(AK1[0-9a-zA-Z\/]{50,55})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/edamam/edamam.go b/pkg/detectors/edamam/edamam.goindex f2ccc3d5b..9fd539405 100644--- a/pkg/detectors/edamam/edamam.go+++ b/pkg/detectors/edamam/edamam.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/edenai/edenai.go b/pkg/detectors/edenai/edenai.goindex 12d9db146..b2f360b66 100644--- a/pkg/detectors/edenai/edenai.go+++ b/pkg/detectors/edenai/edenai.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/eightxeight/eightxeight.go b/pkg/detectors/eightxeight/eightxeight.goindex ffbd6fa16..3d53ede52 100644--- a/pkg/detectors/eightxeight/eightxeight.go+++ b/pkg/detectors/eightxeight/eightxeight.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/elasticemail/elasticemail.go b/pkg/detectors/elasticemail/elasticemail.goindex e392fdb7a..778e50a6e 100644--- a/pkg/detectors/elasticemail/elasticemail.go+++ b/pkg/detectors/elasticemail/elasticemail.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/enablex/enablex.go b/pkg/detectors/enablex/enablex.goindex 3c800d4fe..6992f5913 100644--- a/pkg/detectors/enablex/enablex.go+++ b/pkg/detectors/enablex/enablex.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/enigma/enigma.go b/pkg/detectors/enigma/enigma.goindex 160d31ed1..912d0c6d5 100644--- a/pkg/detectors/enigma/enigma.go+++ b/pkg/detectors/enigma/enigma.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ethplorer/ethplorer.go b/pkg/detectors/ethplorer/ethplorer.goindex 7a899a390..5d757c5f7 100644--- a/pkg/detectors/ethplorer/ethplorer.go+++ b/pkg/detectors/ethplorer/ethplorer.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/etsyapikey/etsyapikey.go b/pkg/detectors/etsyapikey/etsyapikey.goindex 8a5f85e25..3fd8e6d75 100644--- a/pkg/detectors/etsyapikey/etsyapikey.go+++ b/pkg/detectors/etsyapikey/etsyapikey.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/everhour/everhour.go b/pkg/detectors/everhour/everhour.goindex 827d63ad8..dce45ee0b 100644--- a/pkg/detectors/everhour/everhour.go+++ b/pkg/detectors/everhour/everhour.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/exchangerateapi/exchangerateapi.go b/pkg/detectors/exchangerateapi/exchangerateapi.goindex 4ea1d3aff..313a4074c 100644--- a/pkg/detectors/exchangerateapi/exchangerateapi.go+++ b/pkg/detectors/exchangerateapi/exchangerateapi.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/exchangeratesapi/exchangeratesapi.go b/pkg/detectors/exchangeratesapi/exchangeratesapi.goindex da8005cc6..f5f7866e2 100644--- a/pkg/detectors/exchangeratesapi/exchangeratesapi.go+++ b/pkg/detectors/exchangeratesapi/exchangeratesapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/exportsdk/exportsdk.go b/pkg/detectors/exportsdk/exportsdk.goindex 35debc893..1241908ff 100644--- a/pkg/detectors/exportsdk/exportsdk.go+++ b/pkg/detectors/exportsdk/exportsdk.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/extractorapi/extractorapi.go b/pkg/detectors/extractorapi/extractorapi.goindex c01dd5a8f..e93f154a7 100644--- a/pkg/detectors/extractorapi/extractorapi.go+++ b/pkg/detectors/extractorapi/extractorapi.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/facebookoauth/facebookoauth.go b/pkg/detectors/facebookoauth/facebookoauth.goindex c79741648..dde60c846 100644--- a/pkg/detectors/facebookoauth/facebookoauth.go+++ b/pkg/detectors/facebookoauth/facebookoauth.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/faceplusplus/faceplusplus.go b/pkg/detectors/faceplusplus/faceplusplus.goindex 025865674..5480a7495 100644--- a/pkg/detectors/faceplusplus/faceplusplus.go+++ b/pkg/detectors/faceplusplus/faceplusplus.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fakejson/fakejson.go b/pkg/detectors/fakejson/fakejson.goindex 74121ddb3..912039d1f 100644--- a/pkg/detectors/fakejson/fakejson.go+++ b/pkg/detectors/fakejson/fakejson.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fastforex/fastforex.go b/pkg/detectors/fastforex/fastforex.goindex de0759bce..cc3412b85 100644--- a/pkg/detectors/fastforex/fastforex.go+++ b/pkg/detectors/fastforex/fastforex.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.goindex 82185fdd3..8f54f1727 100644--- a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go+++ b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go@@ -94,5 +94,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/feedier/feedier.go b/pkg/detectors/feedier/feedier.goindex 81624641c..b707c6f2f 100644--- a/pkg/detectors/feedier/feedier.go+++ b/pkg/detectors/feedier/feedier.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fetchrss/fetchrss.go b/pkg/detectors/fetchrss/fetchrss.goindex d47d2f82b..6069c50c4 100644--- a/pkg/detectors/fetchrss/fetchrss.go+++ b/pkg/detectors/fetchrss/fetchrss.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fibery/fibery.go b/pkg/detectors/fibery/fibery.goindex 391772069..8ad91a025 100644--- a/pkg/detectors/fibery/fibery.go+++ b/pkg/detectors/fibery/fibery.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken.go b/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken.goindex 8375eaa99..20a804461 100644--- a/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken.go+++ b/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fileio/fileio.go b/pkg/detectors/fileio/fileio.goindex 4ea1dc6ee..db9242ee1 100644--- a/pkg/detectors/fileio/fileio.go+++ b/pkg/detectors/fileio/fileio.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/finage/finage.go b/pkg/detectors/finage/finage.goindex c7bc1739e..336452839 100644--- a/pkg/detectors/finage/finage.go+++ b/pkg/detectors/finage/finage.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/financialmodelingprep/financialmodelingprep.go b/pkg/detectors/financialmodelingprep/financialmodelingprep.goindex bc9cd3abe..c4c211b48 100644--- a/pkg/detectors/financialmodelingprep/financialmodelingprep.go+++ b/pkg/detectors/financialmodelingprep/financialmodelingprep.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/findl/findl.go b/pkg/detectors/findl/findl.goindex e593f2897..7a4eb4ee1 100644--- a/pkg/detectors/findl/findl.go+++ b/pkg/detectors/findl/findl.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/finnhub/finnhub.go b/pkg/detectors/finnhub/finnhub.goindex 043c40310..a4d92a3db 100644--- a/pkg/detectors/finnhub/finnhub.go+++ b/pkg/detectors/finnhub/finnhub.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fixerio/fixerio.go b/pkg/detectors/fixerio/fixerio.goindex 3666fd9bd..99577b82b 100644--- a/pkg/detectors/fixerio/fixerio.go+++ b/pkg/detectors/fixerio/fixerio.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flatio/flatio.go b/pkg/detectors/flatio/flatio.goindex 6c2bd1f6c..e62ec15cc 100644--- a/pkg/detectors/flatio/flatio.go+++ b/pkg/detectors/flatio/flatio.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fleetbase/fleetbase.go b/pkg/detectors/fleetbase/fleetbase.goindex 19f938d4f..5ea6c6f3d 100644--- a/pkg/detectors/fleetbase/fleetbase.go+++ b/pkg/detectors/fleetbase/fleetbase.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flickr/flickr.go b/pkg/detectors/flickr/flickr.goindex 106405c37..85b0a87c9 100644--- a/pkg/detectors/flickr/flickr.go+++ b/pkg/detectors/flickr/flickr.go@@ -76,5 +76,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flightapi/flightapi.go b/pkg/detectors/flightapi/flightapi.goindex 167d5337b..3aeae8e81 100644--- a/pkg/detectors/flightapi/flightapi.go+++ b/pkg/detectors/flightapi/flightapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flightlabs/flightlabs.go b/pkg/detectors/flightlabs/flightlabs.goindex f17f2daac..98d454f28 100644--- a/pkg/detectors/flightlabs/flightlabs.go+++ b/pkg/detectors/flightlabs/flightlabs.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flightstats/flightstats.go b/pkg/detectors/flightstats/flightstats.goindex 303c8ad57..40f118841 100644--- a/pkg/detectors/flightstats/flightstats.go+++ b/pkg/detectors/flightstats/flightstats.go@@ -86,5 +86,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/float/float.go b/pkg/detectors/float/float.goindex 60b8eb51b..c3ce640f7 100644--- a/pkg/detectors/float/float.go+++ b/pkg/detectors/float/float.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flowdash/flowdash.go b/pkg/detectors/flowdash/flowdash.goindex dc54ec151..f2701a306 100644--- a/pkg/detectors/flowdash/flowdash.go+++ b/pkg/detectors/flowdash/flowdash.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flowdock/flowdock.go b/pkg/detectors/flowdock/flowdock.goindex f8cc960da..638ac096a 100644--- a/pkg/detectors/flowdock/flowdock.go+++ b/pkg/detectors/flowdock/flowdock.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flowflu/flowflu.go b/pkg/detectors/flowflu/flowflu.goindex 960c9a414..f9369efa4 100644--- a/pkg/detectors/flowflu/flowflu.go+++ b/pkg/detectors/flowflu/flowflu.go@@ -92,5 +92,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/flutterwave/flutterwave.go b/pkg/detectors/flutterwave/flutterwave.goindex 6184281b8..4ee7a9d42 100644--- a/pkg/detectors/flutterwave/flutterwave.go+++ b/pkg/detectors/flutterwave/flutterwave.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fmfw/fmfw.go b/pkg/detectors/fmfw/fmfw.goindex bef7a66ab..47cfb03ed 100644--- a/pkg/detectors/fmfw/fmfw.go+++ b/pkg/detectors/fmfw/fmfw.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/formbucket/formbucket.go b/pkg/detectors/formbucket/formbucket.goindex cc3ef787e..cc1061d41 100644--- a/pkg/detectors/formbucket/formbucket.go+++ b/pkg/detectors/formbucket/formbucket.go@@ -81,7 +81,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}type Response struct {diff --git a/pkg/detectors/formcraft/formcraft.go b/pkg/detectors/formcraft/formcraft.goindex 7943c9c77..5084c31cf 100644--- a/pkg/detectors/formcraft/formcraft.go+++ b/pkg/detectors/formcraft/formcraft.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/formio/formio.go b/pkg/detectors/formio/formio.goindex dec2c7559..78feb9067 100644--- a/pkg/detectors/formio/formio.go+++ b/pkg/detectors/formio/formio.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/formsite/formsite.go b/pkg/detectors/formsite/formsite.goindex 1c9bae7c6..b102c653b 100644--- a/pkg/detectors/formsite/formsite.go+++ b/pkg/detectors/formsite/formsite.go@@ -20,10 +20,10 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives- keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"formsite"}) + `\b([a-zA-Z0-9]{32})\b`)+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"formsite"}) + `\b([a-zA-Z0-9]{32})\b`)serverPat = regexp.MustCompile(detectors.PrefixRegex([]string{"formsite"}) + `\b(fs[0-9]{1,4})\b`)- userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"formsite"}) + `\b([a-zA-Z0-9]{6})\b`)+ userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"formsite"}) + `\b([a-zA-Z0-9]{6})\b`))// Keywords are used for efficiently pre-filtering chunks.@@ -59,9 +59,9 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultDetectorType: detectorspb.DetectorType_Formsite,Raw: []byte(resMatch),}-+if verify {- req, err := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://%s.formsite.com/api/v2/%s/forms",resServerMatch,resUserMatch), nil)+ req, err := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://%s.formsite.com/api/v2/%s/forms", resServerMatch, resUserMatch), nil)if err != nil {continue}@@ -72,19 +72,19 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}}}}-+results = append(results, s1)- }- }-+ }+ }+}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/foursquare/foursquare.go b/pkg/detectors/foursquare/foursquare.goindex a1a9ab599..8237f3ab1 100644--- a/pkg/detectors/foursquare/foursquare.go+++ b/pkg/detectors/foursquare/foursquare.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/frameio/frameio.go b/pkg/detectors/frameio/frameio.goindex 4275cea1e..81215a86e 100644--- a/pkg/detectors/frameio/frameio.go+++ b/pkg/detectors/frameio/frameio.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/freshbooks/freshbooks.go b/pkg/detectors/freshbooks/freshbooks.goindex 8fafe7407..73eba0335 100644--- a/pkg/detectors/freshbooks/freshbooks.go+++ b/pkg/detectors/freshbooks/freshbooks.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/freshdesk/freshdesk.go b/pkg/detectors/freshdesk/freshdesk.goindex 9dcf6e5a4..748b158b5 100644--- a/pkg/detectors/freshdesk/freshdesk.go+++ b/pkg/detectors/freshdesk/freshdesk.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/front/front.go b/pkg/detectors/front/front.goindex 16a2d6cb4..fcf253730 100644--- a/pkg/detectors/front/front.go+++ b/pkg/detectors/front/front.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fulcrum/fulcrum.go b/pkg/detectors/fulcrum/fulcrum.goindex 1339cba82..fcc5dde70 100644--- a/pkg/detectors/fulcrum/fulcrum.go+++ b/pkg/detectors/fulcrum/fulcrum.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fullstory/fullstory.go b/pkg/detectors/fullstory/fullstory.goindex f6cb3b822..5ddf7978a 100644--- a/pkg/detectors/fullstory/fullstory.go+++ b/pkg/detectors/fullstory/fullstory.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fusebill/fusebill.go b/pkg/detectors/fusebill/fusebill.goindex 6299234c2..f88814b66 100644--- a/pkg/detectors/fusebill/fusebill.go+++ b/pkg/detectors/fusebill/fusebill.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/fxmarket/fxmarket.go b/pkg/detectors/fxmarket/fxmarket.goindex 87480bafe..429862031 100644--- a/pkg/detectors/fxmarket/fxmarket.go+++ b/pkg/detectors/fxmarket/fxmarket.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/geckoboard/geckoboard.go b/pkg/detectors/geckoboard/geckoboard.goindex 969a8f4f1..008cfa2bf 100644--- a/pkg/detectors/geckoboard/geckoboard.go+++ b/pkg/detectors/geckoboard/geckoboard.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/gemini/gemini.go b/pkg/detectors/gemini/gemini.goindex a2d67c6d0..f7d0992ed 100644--- a/pkg/detectors/gemini/gemini.go+++ b/pkg/detectors/gemini/gemini.go@@ -87,7 +87,7 @@ func (s Scanner) FromData(_ context.Context, verify bool, data []byte) (results}}- return detectors.CleanResults(results), nil+ return results, nil}func constructRequest(secret, keyID string) (*http.Request, error) {diff --git a/pkg/detectors/gengo/gengo.go b/pkg/detectors/gengo/gengo.goindex 129dd5cf6..48fb0c64f 100644--- a/pkg/detectors/gengo/gengo.go+++ b/pkg/detectors/gengo/gengo.go@@ -105,7 +105,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}type Response struct {diff --git a/pkg/detectors/geoapify/geoapify.go b/pkg/detectors/geoapify/geoapify.goindex c4c2543a6..45336f8de 100644--- a/pkg/detectors/geoapify/geoapify.go+++ b/pkg/detectors/geoapify/geoapify.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/geocode/geocode.go b/pkg/detectors/geocode/geocode.goindex b67590abf..4e56b12c1 100644--- a/pkg/detectors/geocode/geocode.go+++ b/pkg/detectors/geocode/geocode.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/geocodify/geocodify.go b/pkg/detectors/geocodify/geocodify.goindex 3a5845a7e..ea0bf533b 100644--- a/pkg/detectors/geocodify/geocodify.go+++ b/pkg/detectors/geocodify/geocodify.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/geocodio/geocodio.go b/pkg/detectors/geocodio/geocodio.goindex c4f071ae3..4d9ab5b1c 100644--- a/pkg/detectors/geocodio/geocodio.go+++ b/pkg/detectors/geocodio/geocodio.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/geoipifi/geoipifi.go b/pkg/detectors/geoipifi/geoipifi.goindex c74b9d8a5..97f02005b 100644--- a/pkg/detectors/geoipifi/geoipifi.go+++ b/pkg/detectors/geoipifi/geoipifi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/getemail/getemail.go b/pkg/detectors/getemail/getemail.goindex 3ee4d624d..f1e1d5042 100644--- a/pkg/detectors/getemail/getemail.go+++ b/pkg/detectors/getemail/getemail.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/getemails/getemails.go b/pkg/detectors/getemails/getemails.goindex 5b49f7e56..7e8f4e42c 100644--- a/pkg/detectors/getemails/getemails.go+++ b/pkg/detectors/getemails/getemails.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/getgeoapi/getgeoapi.go b/pkg/detectors/getgeoapi/getgeoapi.goindex 858469ede..00d7b64bf 100644--- a/pkg/detectors/getgeoapi/getgeoapi.go+++ b/pkg/detectors/getgeoapi/getgeoapi.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/getgist/getgist.go b/pkg/detectors/getgist/getgist.goindex dd1f34082..8e04f1605 100644--- a/pkg/detectors/getgist/getgist.go+++ b/pkg/detectors/getgist/getgist.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/getresponse/getresponse.go b/pkg/detectors/getresponse/getresponse.goindex 69e9447a1..01e7216e9 100644--- a/pkg/detectors/getresponse/getresponse.go+++ b/pkg/detectors/getresponse/getresponse.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"getresponse"}) + `\b([a-z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/getsandbox/getsandbox.go b/pkg/detectors/getsandbox/getsandbox.goindex ecb2cb1ca..e58033c89 100644--- a/pkg/detectors/getsandbox/getsandbox.go+++ b/pkg/detectors/getsandbox/getsandbox.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/github_old/github_old.go b/pkg/detectors/github_old/github_old.goindex 14582be46..33a0cbb0a 100644--- a/pkg/detectors/github_old/github_old.go+++ b/pkg/detectors/github_old/github_old.go@@ -22,7 +22,7 @@ var (// https://developer.github.com/v3/#oauth2-token-sent-in-a-headerkeyPat = regexp.MustCompile(`(?i)(?:github)[^\.].{0,40}[ =:'"]+([a-f0-9]{40})\b`)- //TODO: Oauth2 client_id and client_secret+ // TODO: Oauth2 client_id and client_secret// https://developer.github.com/v3/#oauth2-keysecret)@@ -94,5 +94,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/githubapp/githubapp.go b/pkg/detectors/githubapp/githubapp.goindex 088a8582f..348dd64f7 100644--- a/pkg/detectors/githubapp/githubapp.go+++ b/pkg/detectors/githubapp/githubapp.go@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif err != nil {continue}- //issued at time+ // issued at timeiat := time.Now().Add(-60 * time.Second)exp := time.Now().Add(9 * 60 * time.Second)@@ -77,7 +77,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif err != nil {continue}- //end get token+ // end get tokenreq, err := http.NewRequestWithContext(ctx, "GET", "https://api.github.com/app", nil)if err != nil {@@ -100,5 +100,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/gitlab/gitlab.go b/pkg/detectors/gitlab/gitlab.goindex 612960ffb..a21ff4cb4 100644--- a/pkg/detectors/gitlab/gitlab.go+++ b/pkg/detectors/gitlab/gitlab.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, secret)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/gitter/gitter.go b/pkg/detectors/gitter/gitter.goindex 342b09dd0..1f514c2df 100644--- a/pkg/detectors/gitter/gitter.go+++ b/pkg/detectors/gitter/gitter.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/glassnode/glassnode.go b/pkg/detectors/glassnode/glassnode.goindex 9c2cffd3f..eca241873 100644--- a/pkg/detectors/glassnode/glassnode.go+++ b/pkg/detectors/glassnode/glassnode.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/glitterlyapi/glitterlyapi.go b/pkg/detectors/glitterlyapi/glitterlyapi.goindex ac4d5f458..9695ab857 100644--- a/pkg/detectors/glitterlyapi/glitterlyapi.go+++ b/pkg/detectors/glitterlyapi/glitterlyapi.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/gocanvas/gocanvas.go b/pkg/detectors/gocanvas/gocanvas.goindex a24297457..86accf237 100644--- a/pkg/detectors/gocanvas/gocanvas.go+++ b/pkg/detectors/gocanvas/gocanvas.go@@ -96,7 +96,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}type Response struct {diff --git a/pkg/detectors/gocardless/gocardless.go b/pkg/detectors/gocardless/gocardless.goindex 56e39ea47..2beb7d13b 100644--- a/pkg/detectors/gocardless/gocardless.go+++ b/pkg/detectors/gocardless/gocardless.go@@ -21,7 +21,7 @@ var (client = common.SaneHttpClient()// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.- //Removed bounds at the end of the regex since there are some cases that the token ends with an underscore (_) or a dash (-)+ // Removed bounds at the end of the regex since there are some cases that the token ends with an underscore (_) or a dash (-)keyPat = regexp.MustCompile(`\b(live_[0-9A-Za-z\_\-]{40}[ "'\r\n]{1})`))@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/goodday/goodday.go b/pkg/detectors/goodday/goodday.goindex 1e711210c..d0199df96 100644--- a/pkg/detectors/goodday/goodday.go+++ b/pkg/detectors/goodday/goodday.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/graphcms/graphcms.go b/pkg/detectors/graphcms/graphcms.goindex 5e08fd88d..0f22d26f2 100644--- a/pkg/detectors/graphcms/graphcms.go+++ b/pkg/detectors/graphcms/graphcms.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/graphhopper/graphhopper.go b/pkg/detectors/graphhopper/graphhopper.goindex 04b51ef85..a355c56c3 100644--- a/pkg/detectors/graphhopper/graphhopper.go+++ b/pkg/detectors/graphhopper/graphhopper.go@@ -65,5 +65,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/groovehq/groovehq.go b/pkg/detectors/groovehq/groovehq.goindex a428c2f02..f28892ea2 100644--- a/pkg/detectors/groovehq/groovehq.go+++ b/pkg/detectors/groovehq/groovehq.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/gtmetrix/gtmetrix.go b/pkg/detectors/gtmetrix/gtmetrix.goindex 107e3ac92..df55b2bf1 100644--- a/pkg/detectors/gtmetrix/gtmetrix.go+++ b/pkg/detectors/gtmetrix/gtmetrix.go@@ -19,7 +19,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gtmetrix"}) + `\b([0-9a-f]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/guardianapi/guardianapi.go b/pkg/detectors/guardianapi/guardianapi.goindex d0a5373e0..d8c8317ee 100644--- a/pkg/detectors/guardianapi/guardianapi.go+++ b/pkg/detectors/guardianapi/guardianapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/gumroad/gumroad.go b/pkg/detectors/gumroad/gumroad.goindex 4ded29079..9b1c8e406 100644--- a/pkg/detectors/gumroad/gumroad.go+++ b/pkg/detectors/gumroad/gumroad.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/guru/guru.go b/pkg/detectors/guru/guru.goindex 06b1f12fd..e7e1c1773 100644--- a/pkg/detectors/guru/guru.go+++ b/pkg/detectors/guru/guru.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/gyazo/gyazo.go b/pkg/detectors/gyazo/gyazo.goindex 25b2bdb1f..29bc68f5c 100644--- a/pkg/detectors/gyazo/gyazo.go+++ b/pkg/detectors/gyazo/gyazo.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/happi/happi.go b/pkg/detectors/happi/happi.goindex 2d1add0f9..29b306088 100644--- a/pkg/detectors/happi/happi.go+++ b/pkg/detectors/happi/happi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/happyscribe/happyscribe.go b/pkg/detectors/happyscribe/happyscribe.goindex 98420cab8..ddb446d94 100644--- a/pkg/detectors/happyscribe/happyscribe.go+++ b/pkg/detectors/happyscribe/happyscribe.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/harvest/harvest.go b/pkg/detectors/harvest/harvest.goindex 91d66bde9..084d0ad6e 100644--- a/pkg/detectors/harvest/harvest.go+++ b/pkg/detectors/harvest/harvest.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/heatmapapi/heatmapapi.go b/pkg/detectors/heatmapapi/heatmapapi.goindex bcd265957..0c086237b 100644--- a/pkg/detectors/heatmapapi/heatmapapi.go+++ b/pkg/detectors/heatmapapi/heatmapapi.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/hellosign/hellosign.go b/pkg/detectors/hellosign/hellosign.goindex fb28f86c9..112327eb2 100644--- a/pkg/detectors/hellosign/hellosign.go+++ b/pkg/detectors/hellosign/hellosign.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/helpcrunch/helpcrunch.go b/pkg/detectors/helpcrunch/helpcrunch.goindex 22b95a0b1..503db1ac0 100644--- a/pkg/detectors/helpcrunch/helpcrunch.go+++ b/pkg/detectors/helpcrunch/helpcrunch.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/helpscout/helpscout.go b/pkg/detectors/helpscout/helpscout.goindex 1b5b29f24..242271e93 100644--- a/pkg/detectors/helpscout/helpscout.go+++ b/pkg/detectors/helpscout/helpscout.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/hereapi/hereapi.go b/pkg/detectors/hereapi/hereapi.goindex 853fa4344..1d3a44073 100644--- a/pkg/detectors/hereapi/hereapi.go+++ b/pkg/detectors/hereapi/hereapi.go@@ -66,5 +66,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/heroku/heroku.go b/pkg/detectors/heroku/heroku.goindex c4be7d0be..dc5861c36 100644--- a/pkg/detectors/heroku/heroku.go+++ b/pkg/detectors/heroku/heroku.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/hive/hive.go b/pkg/detectors/hive/hive.goindex a71406f9d..f12c53aa3 100644--- a/pkg/detectors/hive/hive.go+++ b/pkg/detectors/hive/hive.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/hiveage/hiveage.go b/pkg/detectors/hiveage/hiveage.goindex 611ac72ea..5065349f8 100644--- a/pkg/detectors/hiveage/hiveage.go+++ b/pkg/detectors/hiveage/hiveage.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/holidayapi/holidayapi.go b/pkg/detectors/holidayapi/holidayapi.goindex 2fbece910..f40381266 100644--- a/pkg/detectors/holidayapi/holidayapi.go+++ b/pkg/detectors/holidayapi/holidayapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/holistic/holistic.go b/pkg/detectors/holistic/holistic.goindex 7ec062461..042bd28b0 100644--- a/pkg/detectors/holistic/holistic.go+++ b/pkg/detectors/holistic/holistic.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/honeycomb/honeycomb.go b/pkg/detectors/honeycomb/honeycomb.goindex 74b41d8c5..d397db1b4 100644--- a/pkg/detectors/honeycomb/honeycomb.go+++ b/pkg/detectors/honeycomb/honeycomb.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/host/host.go b/pkg/detectors/host/host.goindex 418859c4a..631b91e82 100644--- a/pkg/detectors/host/host.go+++ b/pkg/detectors/host/host.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/html2pdf/html2pdf.go b/pkg/detectors/html2pdf/html2pdf.goindex 42656b90e..21b9369df 100644--- a/pkg/detectors/html2pdf/html2pdf.go+++ b/pkg/detectors/html2pdf/html2pdf.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/hubspotapikey/hubspotapikey.go b/pkg/detectors/hubspotapikey/hubspotapikey.goindex a6fefc046..79753ec8a 100644--- a/pkg/detectors/hubspotapikey/hubspotapikey.go+++ b/pkg/detectors/hubspotapikey/hubspotapikey.go@@ -66,5 +66,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/humanity/humanity.go b/pkg/detectors/humanity/humanity.goindex 8465044bd..a03c0d434 100644--- a/pkg/detectors/humanity/humanity.go+++ b/pkg/detectors/humanity/humanity.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/hunter/hunter.go b/pkg/detectors/hunter/hunter.goindex ad61c070e..94838ab01 100644--- a/pkg/detectors/hunter/hunter.go+++ b/pkg/detectors/hunter/hunter.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/hybiscus/hybiscus.go b/pkg/detectors/hybiscus/hybiscus.goindex 7accbd52b..4cd79abbf 100644--- a/pkg/detectors/hybiscus/hybiscus.go+++ b/pkg/detectors/hybiscus/hybiscus.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/hypertrack/hypertrack.go b/pkg/detectors/hypertrack/hypertrack.goindex 849725faa..ceea372b5 100644--- a/pkg/detectors/hypertrack/hypertrack.go+++ b/pkg/detectors/hypertrack/hypertrack.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.goindex 9269604f4..bd219a85a 100644--- a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go+++ b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/iconfinder/iconfinder.go b/pkg/detectors/iconfinder/iconfinder.goindex c94241156..a54f61db2 100644--- a/pkg/detectors/iconfinder/iconfinder.go+++ b/pkg/detectors/iconfinder/iconfinder.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/iexapis/iexapis.go b/pkg/detectors/iexapis/iexapis.goindex 36a7364f9..7d10d5409 100644--- a/pkg/detectors/iexapis/iexapis.go+++ b/pkg/detectors/iexapis/iexapis.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/iexcloud/iexcloud.go b/pkg/detectors/iexcloud/iexcloud.goindex db8465cd2..7392df057 100644--- a/pkg/detectors/iexcloud/iexcloud.go+++ b/pkg/detectors/iexcloud/iexcloud.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/image4/image4.go b/pkg/detectors/image4/image4.goindex 613695231..20c71add2 100644--- a/pkg/detectors/image4/image4.go+++ b/pkg/detectors/image4/image4.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/imagekit/imagekit.go b/pkg/detectors/imagekit/imagekit.goindex 048e44332..a9a8dc8a4 100644--- a/pkg/detectors/imagekit/imagekit.go+++ b/pkg/detectors/imagekit/imagekit.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/imagga/imagga.go b/pkg/detectors/imagga/imagga.goindex 9a0a828d5..3a307e383 100644--- a/pkg/detectors/imagga/imagga.go+++ b/pkg/detectors/imagga/imagga.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/impala/impala.go b/pkg/detectors/impala/impala.goindex 214dc090f..6060be31e 100644--- a/pkg/detectors/impala/impala.go+++ b/pkg/detectors/impala/impala.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/insightly/insightly.go b/pkg/detectors/insightly/insightly.goindex 06729399a..15011f89b 100644--- a/pkg/detectors/insightly/insightly.go+++ b/pkg/detectors/insightly/insightly.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/instabot/instabot.go b/pkg/detectors/instabot/instabot.goindex efb2d8ab1..9e6e85f88 100644--- a/pkg/detectors/instabot/instabot.go+++ b/pkg/detectors/instabot/instabot.go@@ -19,7 +19,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"instabot"}) + `\b([0-9a-zA-Z=+\/]{43}[0-9a-zA-Z+\/=]{1})`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/integromat/integromat.go b/pkg/detectors/integromat/integromat.goindex ea8d310d9..2aa65068d 100644--- a/pkg/detectors/integromat/integromat.go+++ b/pkg/detectors/integromat/integromat.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/intercom/intercom.go b/pkg/detectors/intercom/intercom.goindex 05a2759ee..66cc3ac3b 100644--- a/pkg/detectors/intercom/intercom.go+++ b/pkg/detectors/intercom/intercom.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/interseller/interseller.go b/pkg/detectors/interseller/interseller.goindex 1191146bb..077ddeeef 100644--- a/pkg/detectors/interseller/interseller.go+++ b/pkg/detectors/interseller/interseller.go@@ -2,12 +2,12 @@ package intersellerimport ("context"- "net/http"- "regexp"- "strings""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+ "net/http"+ "regexp"+ "strings")type Scanner struct{}@@ -18,7 +18,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"interseller"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key// if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {// continue// }@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/intrinio/intrinio.go b/pkg/detectors/intrinio/intrinio.goindex 7fbf23ec1..03f86bb75 100644--- a/pkg/detectors/intrinio/intrinio.go+++ b/pkg/detectors/intrinio/intrinio.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/invoiceocean/invoiceocean.go b/pkg/detectors/invoiceocean/invoiceocean.goindex cc4e4e1b3..54119f312 100644--- a/pkg/detectors/invoiceocean/invoiceocean.go+++ b/pkg/detectors/invoiceocean/invoiceocean.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ipapi/ipapi.go b/pkg/detectors/ipapi/ipapi.goindex 6d761bdae..f6c1c3b84 100644--- a/pkg/detectors/ipapi/ipapi.go+++ b/pkg/detectors/ipapi/ipapi.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ipgeolocation/ipgeolocation.go b/pkg/detectors/ipgeolocation/ipgeolocation.goindex 7d9b233bc..a4202d769 100644--- a/pkg/detectors/ipgeolocation/ipgeolocation.go+++ b/pkg/detectors/ipgeolocation/ipgeolocation.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ipify/ipify.go b/pkg/detectors/ipify/ipify.goindex 62afb12b0..4e11b348d 100644--- a/pkg/detectors/ipify/ipify.go+++ b/pkg/detectors/ipify/ipify.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ipinfodb/ipinfodb.go b/pkg/detectors/ipinfodb/ipinfodb.goindex 07b6676be..0998f822d 100644--- a/pkg/detectors/ipinfodb/ipinfodb.go+++ b/pkg/detectors/ipinfodb/ipinfodb.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ipquality/ipquality.go b/pkg/detectors/ipquality/ipquality.goindex 53273a474..c819d6c74 100644--- a/pkg/detectors/ipquality/ipquality.go+++ b/pkg/detectors/ipquality/ipquality.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ipstack/ipstack.go b/pkg/detectors/ipstack/ipstack.goindex 82a7d0a7e..ded3710fb 100644--- a/pkg/detectors/ipstack/ipstack.go+++ b/pkg/detectors/ipstack/ipstack.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/jiratoken/jiratoken.go b/pkg/detectors/jiratoken/jiratoken.goindex e62219ff8..83177131b 100644--- a/pkg/detectors/jiratoken/jiratoken.go+++ b/pkg/detectors/jiratoken/jiratoken.go@@ -94,5 +94,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/jotform/jotform.go b/pkg/detectors/jotform/jotform.goindex b7991a9de..8973a8fb7 100644--- a/pkg/detectors/jotform/jotform.go+++ b/pkg/detectors/jotform/jotform.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/jumpcloud/jumpcloud.go b/pkg/detectors/jumpcloud/jumpcloud.goindex 5eb2edf79..a1045d42e 100644--- a/pkg/detectors/jumpcloud/jumpcloud.go+++ b/pkg/detectors/jumpcloud/jumpcloud.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/juro/juro.go b/pkg/detectors/juro/juro.goindex be3a899fd..237530422 100644--- a/pkg/detectors/juro/juro.go+++ b/pkg/detectors/juro/juro.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/kanban/kanban.go b/pkg/detectors/kanban/kanban.goindex f5861e73b..21112a24f 100644--- a/pkg/detectors/kanban/kanban.go+++ b/pkg/detectors/kanban/kanban.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/kanbantool/kanbantool.go b/pkg/detectors/kanbantool/kanbantool.goindex 0f6e8bb6a..843a8873f 100644--- a/pkg/detectors/kanbantool/kanbantool.go+++ b/pkg/detectors/kanbantool/kanbantool.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kanbantool"}) + `\b([0-9A-Z]{12})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kanbantool"}) + `\b([a-z0-9A-Z]{2,22})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/karmacrm/karmacrm.go b/pkg/detectors/karmacrm/karmacrm.goindex cd2901e03..c64d19b2a 100644--- a/pkg/detectors/karmacrm/karmacrm.go+++ b/pkg/detectors/karmacrm/karmacrm.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/keenio/keenio.go b/pkg/detectors/keenio/keenio.goindex 409599ea4..951981ba9 100644--- a/pkg/detectors/keenio/keenio.go+++ b/pkg/detectors/keenio/keenio.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/kickbox/kickbox.go b/pkg/detectors/kickbox/kickbox.goindex 6ecd9dfdb..83e153611 100644--- a/pkg/detectors/kickbox/kickbox.go+++ b/pkg/detectors/kickbox/kickbox.go@@ -63,5 +63,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/klipfolio/klipfolio.go b/pkg/detectors/klipfolio/klipfolio.goindex fc941ed69..c0d00511e 100644--- a/pkg/detectors/klipfolio/klipfolio.go+++ b/pkg/detectors/klipfolio/klipfolio.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/knapsackpro/knapsackpro.go b/pkg/detectors/knapsackpro/knapsackpro.goindex 07cf6adbb..3eb743484 100644--- a/pkg/detectors/knapsackpro/knapsackpro.go+++ b/pkg/detectors/knapsackpro/knapsackpro.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/kontent/kontent.go b/pkg/detectors/kontent/kontent.goindex 085e74e65..8409d0e12 100644--- a/pkg/detectors/kontent/kontent.go+++ b/pkg/detectors/kontent/kontent.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/kraken/kraken.go b/pkg/detectors/kraken/kraken.goindex cf94d7148..1b2b52611 100644--- a/pkg/detectors/kraken/kraken.go+++ b/pkg/detectors/kraken/kraken.go@@ -103,7 +103,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}// Code from https://docs.kraken.com/rest/#section/Authentication/Headers-and-Signaturediff --git a/pkg/detectors/kucoin/kucoin.go b/pkg/detectors/kucoin/kucoin.goindex b1cbc4ded..23a46b1de 100644--- a/pkg/detectors/kucoin/kucoin.go+++ b/pkg/detectors/kucoin/kucoin.go@@ -112,7 +112,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}func getKucoinPassphrase(apiSecret string, apiPassphrase string) string {diff --git a/pkg/detectors/kylas/kylas.go b/pkg/detectors/kylas/kylas.goindex 80addd612..0a8fef5f4 100644--- a/pkg/detectors/kylas/kylas.go+++ b/pkg/detectors/kylas/kylas.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/languagelayer/languagelayer.go b/pkg/detectors/languagelayer/languagelayer.goindex 17799ec2a..9c452d0b4 100644--- a/pkg/detectors/languagelayer/languagelayer.go+++ b/pkg/detectors/languagelayer/languagelayer.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/lastfm/lastfm.go b/pkg/detectors/lastfm/lastfm.goindex ae6a98b9d..e8daecc83 100644--- a/pkg/detectors/lastfm/lastfm.go+++ b/pkg/detectors/lastfm/lastfm.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/launchdarkly/launchdarkly.go b/pkg/detectors/launchdarkly/launchdarkly.goindex 5a03538bc..a391173b3 100644--- a/pkg/detectors/launchdarkly/launchdarkly.go+++ b/pkg/detectors/launchdarkly/launchdarkly.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/leadfeeder/leadfeeder.go b/pkg/detectors/leadfeeder/leadfeeder.goindex f3db19929..7ba66c7db 100644--- a/pkg/detectors/leadfeeder/leadfeeder.go+++ b/pkg/detectors/leadfeeder/leadfeeder.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/lemlist/lemlist.go b/pkg/detectors/lemlist/lemlist.goindex fec70464a..29cf91057 100644--- a/pkg/detectors/lemlist/lemlist.go+++ b/pkg/detectors/lemlist/lemlist.go@@ -2,14 +2,14 @@ package lemlistimport ("context"- "fmt"- "net/http"- "regexp"- "strings"b64 "encoding/base64"+ "fmt""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+ "net/http"+ "regexp"+ "strings")type Scanner struct{}@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"lemlist"}) + `\b([a-f0-9]{32})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/lendflow/lendflow.go b/pkg/detectors/lendflow/lendflow.goindex 8133ddbfb..815e9da5d 100644--- a/pkg/detectors/lendflow/lendflow.go+++ b/pkg/detectors/lendflow/lendflow.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.goindex d57c5b4f3..6b8da9763 100644--- a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go+++ b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/lexigram/lexigram.go b/pkg/detectors/lexigram/lexigram.goindex 9fb192bb6..15c92cff7 100644--- a/pkg/detectors/lexigram/lexigram.go+++ b/pkg/detectors/lexigram/lexigram.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/linearapi/linearapi.go b/pkg/detectors/linearapi/linearapi.goindex a1f5920aa..977e8ff4c 100644--- a/pkg/detectors/linearapi/linearapi.go+++ b/pkg/detectors/linearapi/linearapi.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/linemessaging/linemessaging.go b/pkg/detectors/linemessaging/linemessaging.goindex 30464fe2b..84ff2a72e 100644--- a/pkg/detectors/linemessaging/linemessaging.go+++ b/pkg/detectors/linemessaging/linemessaging.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/linenotify/linenotify.go b/pkg/detectors/linenotify/linenotify.goindex 837e279fb..a26238f03 100644--- a/pkg/detectors/linenotify/linenotify.go+++ b/pkg/detectors/linenotify/linenotify.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/linkpreview/linkpreview.go b/pkg/detectors/linkpreview/linkpreview.goindex 6337a0d17..d4116a52b 100644--- a/pkg/detectors/linkpreview/linkpreview.go+++ b/pkg/detectors/linkpreview/linkpreview.go@@ -65,5 +65,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}results = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/liveagent/liveagent.go b/pkg/detectors/liveagent/liveagent.goindex 43a3c34b3..3ab5ffa1a 100644--- a/pkg/detectors/liveagent/liveagent.go+++ b/pkg/detectors/liveagent/liveagent.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/livestorm/livestorm.go b/pkg/detectors/livestorm/livestorm.goindex 047e7b6e2..c33c3bacd 100644--- a/pkg/detectors/livestorm/livestorm.go+++ b/pkg/detectors/livestorm/livestorm.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/loadmill/loadmill.go b/pkg/detectors/loadmill/loadmill.goindex ec0057836..eabc408f8 100644--- a/pkg/detectors/loadmill/loadmill.go+++ b/pkg/detectors/loadmill/loadmill.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/lob/lob.go b/pkg/detectors/lob/lob.goindex 1400b4db8..03f72b752 100644--- a/pkg/detectors/lob/lob.go+++ b/pkg/detectors/lob/lob.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/locationiq/locationiq.go b/pkg/detectors/locationiq/locationiq.goindex d0627a4b1..1b05ce8d0 100644--- a/pkg/detectors/locationiq/locationiq.go+++ b/pkg/detectors/locationiq/locationiq.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/loginradius/loginradius.go b/pkg/detectors/loginradius/loginradius.goindex 517fd4141..fce58b292 100644--- a/pkg/detectors/loginradius/loginradius.go+++ b/pkg/detectors/loginradius/loginradius.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/lokalisetoken/lokalisetoken.go b/pkg/detectors/lokalisetoken/lokalisetoken.goindex 199e42196..b90cb0488 100644--- a/pkg/detectors/lokalisetoken/lokalisetoken.go+++ b/pkg/detectors/lokalisetoken/lokalisetoken.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/loyverse/loyverse.go b/pkg/detectors/loyverse/loyverse.goindex 4b9a4f95c..fb05c0cb5 100644--- a/pkg/detectors/loyverse/loyverse.go+++ b/pkg/detectors/loyverse/loyverse.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/lunchmoney/lunchmoney.go b/pkg/detectors/lunchmoney/lunchmoney.goindex ae5b915c2..5a5b3f504 100644--- a/pkg/detectors/lunchmoney/lunchmoney.go+++ b/pkg/detectors/lunchmoney/lunchmoney.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/luno/luno.go b/pkg/detectors/luno/luno.goindex 6d5ceb6a9..d1d308de7 100644--- a/pkg/detectors/luno/luno.go+++ b/pkg/detectors/luno/luno.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/m3o/m3o.go b/pkg/detectors/m3o/m3o.goindex 10806f642..f55621539 100644--- a/pkg/detectors/m3o/m3o.go+++ b/pkg/detectors/m3o/m3o.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/macaddress/macaddress.go b/pkg/detectors/macaddress/macaddress.goindex 2dac49a87..36fb41ee3 100644--- a/pkg/detectors/macaddress/macaddress.go+++ b/pkg/detectors/macaddress/macaddress.go@@ -67,5 +67,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/madkudu/madkudu.go b/pkg/detectors/madkudu/madkudu.goindex e8abc0306..f2a945918 100644--- a/pkg/detectors/madkudu/madkudu.go+++ b/pkg/detectors/madkudu/madkudu.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/magicbell/magicbell.go b/pkg/detectors/magicbell/magicbell.goindex 70e785e97..a00bf9111 100644--- a/pkg/detectors/magicbell/magicbell.go+++ b/pkg/detectors/magicbell/magicbell.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/magnetic/magnetic.go b/pkg/detectors/magnetic/magnetic.goindex a5b746626..68962c0b6 100644--- a/pkg/detectors/magnetic/magnetic.go+++ b/pkg/detectors/magnetic/magnetic.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mailboxlayer/mailboxlayer.go b/pkg/detectors/mailboxlayer/mailboxlayer.goindex d51484f99..b2e9e26f5 100644--- a/pkg/detectors/mailboxlayer/mailboxlayer.go+++ b/pkg/detectors/mailboxlayer/mailboxlayer.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mailerlite/mailerlite.go b/pkg/detectors/mailerlite/mailerlite.goindex 1cd0d12d6..09ff49bc3 100644--- a/pkg/detectors/mailerlite/mailerlite.go+++ b/pkg/detectors/mailerlite/mailerlite.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mailgun/mailgun.go b/pkg/detectors/mailgun/mailgun.goindex e6f615822..2b0e4bc2e 100644--- a/pkg/detectors/mailgun/mailgun.go+++ b/pkg/detectors/mailgun/mailgun.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.goindex 7cad082dd..3b8badcd6 100644--- a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go+++ b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mailjetsms/mailjetsms.go b/pkg/detectors/mailjetsms/mailjetsms.goindex d47cd8d82..a72a4f10e 100644--- a/pkg/detectors/mailjetsms/mailjetsms.go+++ b/pkg/detectors/mailjetsms/mailjetsms.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mailmodo/mailmodo.go b/pkg/detectors/mailmodo/mailmodo.goindex aa2c301df..a7d3524b0 100644--- a/pkg/detectors/mailmodo/mailmodo.go+++ b/pkg/detectors/mailmodo/mailmodo.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mailsac/mailsac.go b/pkg/detectors/mailsac/mailsac.goindex 2106fdc66..642eb7b58 100644--- a/pkg/detectors/mailsac/mailsac.go+++ b/pkg/detectors/mailsac/mailsac.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mandrill/mandrill.go b/pkg/detectors/mandrill/mandrill.goindex 8c597ee4b..5f53135d1 100644--- a/pkg/detectors/mandrill/mandrill.go+++ b/pkg/detectors/mandrill/mandrill.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/manifest/manifest.go b/pkg/detectors/manifest/manifest.goindex 97c8acc49..8906bab28 100644--- a/pkg/detectors/manifest/manifest.go+++ b/pkg/detectors/manifest/manifest.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mapbox/mapbox.go b/pkg/detectors/mapbox/mapbox.goindex 11b09a9ea..b9bf51f5d 100644--- a/pkg/detectors/mapbox/mapbox.go+++ b/pkg/detectors/mapbox/mapbox.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mapquest/mapquest.go b/pkg/detectors/mapquest/mapquest.goindex 92a309d78..2000c846c 100644--- a/pkg/detectors/mapquest/mapquest.go+++ b/pkg/detectors/mapquest/mapquest.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/marketstack/marketstack.go b/pkg/detectors/marketstack/marketstack.goindex e3120e020..424589bd4 100644--- a/pkg/detectors/marketstack/marketstack.go+++ b/pkg/detectors/marketstack/marketstack.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.goindex 2b0241557..87babaa5a 100644--- a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go+++ b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mavenlink/mavenlink.go b/pkg/detectors/mavenlink/mavenlink.goindex 84c90ba88..059bd2c63 100644--- a/pkg/detectors/mavenlink/mavenlink.go+++ b/pkg/detectors/mavenlink/mavenlink.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/maxmindlicense/maxmindlicense.go b/pkg/detectors/maxmindlicense/maxmindlicense.goindex 8650d55a3..4131e020c 100644--- a/pkg/detectors/maxmindlicense/maxmindlicense.go+++ b/pkg/detectors/maxmindlicense/maxmindlicense.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/meaningcloud/meaningcloud.go b/pkg/detectors/meaningcloud/meaningcloud.goindex 86170ae6a..5d121f64a 100644--- a/pkg/detectors/meaningcloud/meaningcloud.go+++ b/pkg/detectors/meaningcloud/meaningcloud.go@@ -91,5 +91,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mediastack/mediastack.go b/pkg/detectors/mediastack/mediastack.goindex d9f90451d..c5a0aede3 100644--- a/pkg/detectors/mediastack/mediastack.go+++ b/pkg/detectors/mediastack/mediastack.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/meistertask/meistertask.go b/pkg/detectors/meistertask/meistertask.goindex 9a545f5d0..45dd09f3e 100644--- a/pkg/detectors/meistertask/meistertask.go+++ b/pkg/detectors/meistertask/meistertask.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mesibo/mesibo.go b/pkg/detectors/mesibo/mesibo.goindex 541a444ef..b80a637c9 100644--- a/pkg/detectors/mesibo/mesibo.go+++ b/pkg/detectors/mesibo/mesibo.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/messagebird/messagebird.go b/pkg/detectors/messagebird/messagebird.goindex b4a5ce2be..f70363174 100644--- a/pkg/detectors/messagebird/messagebird.go+++ b/pkg/detectors/messagebird/messagebird.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/metaapi/metaapi.go b/pkg/detectors/metaapi/metaapi.goindex e2ca68644..3acf1b58a 100644--- a/pkg/detectors/metaapi/metaapi.go+++ b/pkg/detectors/metaapi/metaapi.go@@ -87,5 +87,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/metrilo/metrilo.go b/pkg/detectors/metrilo/metrilo.goindex abe472741..b2b0d2351 100644--- a/pkg/detectors/metrilo/metrilo.go+++ b/pkg/detectors/metrilo/metrilo.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.goindex 76ef21c74..60d07c93f 100644--- a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go+++ b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mindmeister/mindmeister.go b/pkg/detectors/mindmeister/mindmeister.goindex bbeca142b..548f212cf 100644--- a/pkg/detectors/mindmeister/mindmeister.go+++ b/pkg/detectors/mindmeister/mindmeister.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/miro/miro.go b/pkg/detectors/miro/miro.goindex 19fed88ff..3c5f1f0e2 100644--- a/pkg/detectors/miro/miro.go+++ b/pkg/detectors/miro/miro.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mite/mite.go b/pkg/detectors/mite/mite.goindex d408cbd6c..154abbc26 100644--- a/pkg/detectors/mite/mite.go+++ b/pkg/detectors/mite/mite.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mixmax/mixmax.go b/pkg/detectors/mixmax/mixmax.goindex f4302c71a..37f0b2076 100644--- a/pkg/detectors/mixmax/mixmax.go+++ b/pkg/detectors/mixmax/mixmax.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mixpanel/mixpanel.go b/pkg/detectors/mixpanel/mixpanel.goindex c9de0ffb1..e2d620d8c 100644--- a/pkg/detectors/mixpanel/mixpanel.go+++ b/pkg/detectors/mixpanel/mixpanel.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mockaroo/mockaroo.go b/pkg/detectors/mockaroo/mockaroo.goindex fb7e201ba..c150ecbab 100644--- a/pkg/detectors/mockaroo/mockaroo.go+++ b/pkg/detectors/mockaroo/mockaroo.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/moderation/moderation.go b/pkg/detectors/moderation/moderation.goindex e96683b91..452df0835 100644--- a/pkg/detectors/moderation/moderation.go+++ b/pkg/detectors/moderation/moderation.go@@ -76,5 +76,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/monday/monday.go b/pkg/detectors/monday/monday.goindex 027b03941..17179316a 100644--- a/pkg/detectors/monday/monday.go+++ b/pkg/detectors/monday/monday.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mongodb/mongodb.go b/pkg/detectors/mongodb/mongodb.goindex 3d65a4806..357f8130c 100644--- a/pkg/detectors/mongodb/mongodb.go+++ b/pkg/detectors/mongodb/mongodb.go@@ -67,5 +67,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/monkeylearn/monkeylearn.go b/pkg/detectors/monkeylearn/monkeylearn.goindex 14ef9c18a..fc3359235 100644--- a/pkg/detectors/monkeylearn/monkeylearn.go+++ b/pkg/detectors/monkeylearn/monkeylearn.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"monkeylearn"}) + `\b([0-9a-f]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/moonclerck/moonclerck.go b/pkg/detectors/moonclerck/moonclerck.goindex 2dbbcb0bb..53a5c5476 100644--- a/pkg/detectors/moonclerck/moonclerck.go+++ b/pkg/detectors/moonclerck/moonclerck.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/moonclerk/moonclerk.go b/pkg/detectors/moonclerk/moonclerk.goindex 980b19f19..5605097b1 100644--- a/pkg/detectors/moonclerk/moonclerk.go+++ b/pkg/detectors/moonclerk/moonclerk.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/moosend/moosend.go b/pkg/detectors/moosend/moosend.goindex e3f8c24c1..b5eaeb1fe 100644--- a/pkg/detectors/moosend/moosend.go+++ b/pkg/detectors/moosend/moosend.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mrticktock/mrticktock.go b/pkg/detectors/mrticktock/mrticktock.goindex fbebf2d72..4132d7dd5 100644--- a/pkg/detectors/mrticktock/mrticktock.go+++ b/pkg/detectors/mrticktock/mrticktock.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/mux/mux.go b/pkg/detectors/mux/mux.goindex 4648296b0..b0badfd2c 100644--- a/pkg/detectors/mux/mux.go+++ b/pkg/detectors/mux/mux.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/myfreshworks/myfreshworks.go b/pkg/detectors/myfreshworks/myfreshworks.goindex 1dd149d6e..f6afde1f9 100644--- a/pkg/detectors/myfreshworks/myfreshworks.go+++ b/pkg/detectors/myfreshworks/myfreshworks.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/myintervals/myintervals.go b/pkg/detectors/myintervals/myintervals.goindex d3d1b105e..f0443cee9 100644--- a/pkg/detectors/myintervals/myintervals.go+++ b/pkg/detectors/myintervals/myintervals.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.goindex b8e22cdb3..9ebf02cf1 100644--- a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go+++ b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nethunt/nethunt.go b/pkg/detectors/nethunt/nethunt.goindex 057ab3ac3..006cb0311 100644--- a/pkg/detectors/nethunt/nethunt.go+++ b/pkg/detectors/nethunt/nethunt.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/netlify/netlify.go b/pkg/detectors/netlify/netlify.goindex 7c3491c9e..d935d2703 100644--- a/pkg/detectors/netlify/netlify.go+++ b/pkg/detectors/netlify/netlify.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/neutrinoapi/neutrinoapi.go b/pkg/detectors/neutrinoapi/neutrinoapi.goindex 7fedd9e88..b2c4f7193 100644--- a/pkg/detectors/neutrinoapi/neutrinoapi.go+++ b/pkg/detectors/neutrinoapi/neutrinoapi.go@@ -94,5 +94,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.goindex bc7bd6522..b22b18712 100644--- a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go+++ b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/newsapi/newsapi.go b/pkg/detectors/newsapi/newsapi.goindex 099db602a..67f738146 100644--- a/pkg/detectors/newsapi/newsapi.go+++ b/pkg/detectors/newsapi/newsapi.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/newscatcher/newscatcher.go b/pkg/detectors/newscatcher/newscatcher.goindex 47ebffa6a..eb5fe55b9 100644--- a/pkg/detectors/newscatcher/newscatcher.go+++ b/pkg/detectors/newscatcher/newscatcher.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nexmoapikey/nexmoapikey.go b/pkg/detectors/nexmoapikey/nexmoapikey.goindex 8460c891f..40fc66296 100644--- a/pkg/detectors/nexmoapikey/nexmoapikey.go+++ b/pkg/detectors/nexmoapikey/nexmoapikey.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nftport/nftport.go b/pkg/detectors/nftport/nftport.goindex 940ac0c64..dfb8cf5d0 100644--- a/pkg/detectors/nftport/nftport.go+++ b/pkg/detectors/nftport/nftport.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ngc/ngc.go b/pkg/detectors/ngc/ngc.goindex 5088e66f1..e1b7dda9e 100644--- a/pkg/detectors/ngc/ngc.go+++ b/pkg/detectors/ngc/ngc.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nicereply/nicereply.go b/pkg/detectors/nicereply/nicereply.goindex a44eeab3c..e7f34deed 100644--- a/pkg/detectors/nicereply/nicereply.go+++ b/pkg/detectors/nicereply/nicereply.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nightfall/nightfall.go b/pkg/detectors/nightfall/nightfall.goindex df8f4a36a..6e0469768 100644--- a/pkg/detectors/nightfall/nightfall.go+++ b/pkg/detectors/nightfall/nightfall.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nimble/nimble.go b/pkg/detectors/nimble/nimble.goindex c04afaadc..649095dc9 100644--- a/pkg/detectors/nimble/nimble.go+++ b/pkg/detectors/nimble/nimble.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nitro/nitro.go b/pkg/detectors/nitro/nitro.goindex b215c1053..30aee4863 100644--- a/pkg/detectors/nitro/nitro.go+++ b/pkg/detectors/nitro/nitro.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/noticeable/noticeable.go b/pkg/detectors/noticeable/noticeable.goindex f8c3ae26c..0ae22a2f9 100644--- a/pkg/detectors/noticeable/noticeable.go+++ b/pkg/detectors/noticeable/noticeable.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/notion/notion.go b/pkg/detectors/notion/notion.goindex 10945ed25..9b31dedd5 100644--- a/pkg/detectors/notion/notion.go+++ b/pkg/detectors/notion/notion.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nozbeteams/nozbeteams.go b/pkg/detectors/nozbeteams/nozbeteams.goindex 9ea8e3bcb..1399e074d 100644--- a/pkg/detectors/nozbeteams/nozbeteams.go+++ b/pkg/detectors/nozbeteams/nozbeteams.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/numverify/numverify.go b/pkg/detectors/numverify/numverify.goindex 2a6e5a779..83203f780 100644--- a/pkg/detectors/numverify/numverify.go+++ b/pkg/detectors/numverify/numverify.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nutritionix/nutritionix.go b/pkg/detectors/nutritionix/nutritionix.goindex f3eb8b645..413b41da9 100644--- a/pkg/detectors/nutritionix/nutritionix.go+++ b/pkg/detectors/nutritionix/nutritionix.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nylas/nylas.go b/pkg/detectors/nylas/nylas.goindex 3e481a036..b4569998b 100644--- a/pkg/detectors/nylas/nylas.go+++ b/pkg/detectors/nylas/nylas.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/nytimes/nytimes.go b/pkg/detectors/nytimes/nytimes.goindex b743ea7fe..3585642ec 100644--- a/pkg/detectors/nytimes/nytimes.go+++ b/pkg/detectors/nytimes/nytimes.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/oanda/oanda.go b/pkg/detectors/oanda/oanda.goindex 4b784b8ac..7d9f3892b 100644--- a/pkg/detectors/oanda/oanda.go+++ b/pkg/detectors/oanda/oanda.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/omnisend/omnisend.go b/pkg/detectors/omnisend/omnisend.goindex 536884871..f4adf8bf4 100644--- a/pkg/detectors/omnisend/omnisend.go+++ b/pkg/detectors/omnisend/omnisend.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/onedesk/onedesk.go b/pkg/detectors/onedesk/onedesk.goindex 8d1411ac0..73dda5e40 100644--- a/pkg/detectors/onedesk/onedesk.go+++ b/pkg/detectors/onedesk/onedesk.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/onelogin/onelogin.go b/pkg/detectors/onelogin/onelogin.goindex e8a87e2e8..7e8b754eb 100644--- a/pkg/detectors/onelogin/onelogin.go+++ b/pkg/detectors/onelogin/onelogin.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/onepagecrm/onepagecrm.go b/pkg/detectors/onepagecrm/onepagecrm.goindex 9a1d033ff..00bdd75ae 100644--- a/pkg/detectors/onepagecrm/onepagecrm.go+++ b/pkg/detectors/onepagecrm/onepagecrm.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/onesignal/onesignal.go b/pkg/detectors/onesignal/onesignal.goindex 2fa984610..786264425 100644--- a/pkg/detectors/onesignal/onesignal.go+++ b/pkg/detectors/onesignal/onesignal.go@@ -21,7 +21,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"onesignal"}) + common.UUIDPattern))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/onwaterio/onwaterio.go b/pkg/detectors/onwaterio/onwaterio.goindex 7e731a836..a5a793d03 100644--- a/pkg/detectors/onwaterio/onwaterio.go+++ b/pkg/detectors/onwaterio/onwaterio.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/oopspam/oopspam.go b/pkg/detectors/oopspam/oopspam.goindex 20ebd683f..cb44917cd 100644--- a/pkg/detectors/oopspam/oopspam.go+++ b/pkg/detectors/oopspam/oopspam.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/opencagedata/opencagedata.go b/pkg/detectors/opencagedata/opencagedata.goindex ce8d21712..f009ab474 100644--- a/pkg/detectors/opencagedata/opencagedata.go+++ b/pkg/detectors/opencagedata/opencagedata.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/opengraphr/opengraphr.go b/pkg/detectors/opengraphr/opengraphr.goindex bba66c680..4d8110da1 100644--- a/pkg/detectors/opengraphr/opengraphr.go+++ b/pkg/detectors/opengraphr/opengraphr.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/openuv/openuv.go b/pkg/detectors/openuv/openuv.goindex 218c7586e..e12be710d 100644--- a/pkg/detectors/openuv/openuv.go+++ b/pkg/detectors/openuv/openuv.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/openweather/openweather.go b/pkg/detectors/openweather/openweather.goindex f35b27c38..8741eaf34 100644--- a/pkg/detectors/openweather/openweather.go+++ b/pkg/detectors/openweather/openweather.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/optimizely/optimizely.go b/pkg/detectors/optimizely/optimizely.goindex d8fcaeb49..0a49b7291 100644--- a/pkg/detectors/optimizely/optimizely.go+++ b/pkg/detectors/optimizely/optimizely.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/owlbot/owlbot.go b/pkg/detectors/owlbot/owlbot.goindex a5f5c3ca9..ba05488cd 100644--- a/pkg/detectors/owlbot/owlbot.go+++ b/pkg/detectors/owlbot/owlbot.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/packagecloud/packagecloud.go b/pkg/detectors/packagecloud/packagecloud.goindex fb6d8504e..01fae5c94 100644--- a/pkg/detectors/packagecloud/packagecloud.go+++ b/pkg/detectors/packagecloud/packagecloud.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.goindex 94fa814f9..6b793f7b1 100644--- a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go+++ b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pandadoc/pandadoc.go b/pkg/detectors/pandadoc/pandadoc.goindex e36446d18..f5b48c477 100644--- a/pkg/detectors/pandadoc/pandadoc.go+++ b/pkg/detectors/pandadoc/pandadoc.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pandascore/pandascore.go b/pkg/detectors/pandascore/pandascore.goindex 17809597e..cc549bb94 100644--- a/pkg/detectors/pandascore/pandascore.go+++ b/pkg/detectors/pandascore/pandascore.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/paperform/paperform.go b/pkg/detectors/paperform/paperform.goindex 04c6352fc..b13f6ffcf 100644--- a/pkg/detectors/paperform/paperform.go+++ b/pkg/detectors/paperform/paperform.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/paralleldots/paralleldots.go b/pkg/detectors/paralleldots/paralleldots.goindex acf566c3a..5500aa54c 100644--- a/pkg/detectors/paralleldots/paralleldots.go+++ b/pkg/detectors/paralleldots/paralleldots.go@@ -96,5 +96,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/parsehub/parsehub.go b/pkg/detectors/parsehub/parsehub.goindex 70b5aa17d..70009e967 100644--- a/pkg/detectors/parsehub/parsehub.go+++ b/pkg/detectors/parsehub/parsehub.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/parsers/parsers.go b/pkg/detectors/parsers/parsers.goindex 4bc466e75..026bbe869 100644--- a/pkg/detectors/parsers/parsers.go+++ b/pkg/detectors/parsers/parsers.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/parseur/parseur.go b/pkg/detectors/parseur/parseur.goindex 82aa4f214..ac9f70b9c 100644--- a/pkg/detectors/parseur/parseur.go+++ b/pkg/detectors/parseur/parseur.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"parseur"}) + `\b([a-f0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/partnerstack/partnerstack.go b/pkg/detectors/partnerstack/partnerstack.goindex 0a010ab13..80626c078 100644--- a/pkg/detectors/partnerstack/partnerstack.go+++ b/pkg/detectors/partnerstack/partnerstack.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/passbase/passbase.go b/pkg/detectors/passbase/passbase.goindex 6957bfa50..b990e1815 100644--- a/pkg/detectors/passbase/passbase.go+++ b/pkg/detectors/passbase/passbase.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pastebin/pastebin.go b/pkg/detectors/pastebin/pastebin.goindex 5a163b505..473b6177b 100644--- a/pkg/detectors/pastebin/pastebin.go+++ b/pkg/detectors/pastebin/pastebin.go@@ -99,5 +99,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/paydirtapp/paydirtapp.go b/pkg/detectors/paydirtapp/paydirtapp.goindex 0adde9fd9..d3ca5ea32 100644--- a/pkg/detectors/paydirtapp/paydirtapp.go+++ b/pkg/detectors/paydirtapp/paydirtapp.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/paymoapp/paymoapp.go b/pkg/detectors/paymoapp/paymoapp.goindex c0c0b5b21..95e4b9eec 100644--- a/pkg/detectors/paymoapp/paymoapp.go+++ b/pkg/detectors/paymoapp/paymoapp.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/paymongo/paymongo.go b/pkg/detectors/paymongo/paymongo.goindex cbcbbc309..d9af80b6c 100644--- a/pkg/detectors/paymongo/paymongo.go+++ b/pkg/detectors/paymongo/paymongo.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/paypaloauth/paypaloauth.go b/pkg/detectors/paypaloauth/paypaloauth.goindex e63ecbd16..1608238d4 100644--- a/pkg/detectors/paypaloauth/paypaloauth.go+++ b/pkg/detectors/paypaloauth/paypaloauth.go@@ -86,5 +86,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/paystack/paystack.go b/pkg/detectors/paystack/paystack.goindex 9a5dc3852..b45220f27 100644--- a/pkg/detectors/paystack/paystack.go+++ b/pkg/detectors/paystack/paystack.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pdflayer/pdflayer.go b/pkg/detectors/pdflayer/pdflayer.goindex c64325462..8168769f5 100644--- a/pkg/detectors/pdflayer/pdflayer.go+++ b/pkg/detectors/pdflayer/pdflayer.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pdfshift/pdfshift.go b/pkg/detectors/pdfshift/pdfshift.goindex eb418c3e4..d1afaa1b5 100644--- a/pkg/detectors/pdfshift/pdfshift.go+++ b/pkg/detectors/pdfshift/pdfshift.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/peopledatalabs/peopledatalabs.go b/pkg/detectors/peopledatalabs/peopledatalabs.goindex 75921b248..84cdb78eb 100644--- a/pkg/detectors/peopledatalabs/peopledatalabs.go+++ b/pkg/detectors/peopledatalabs/peopledatalabs.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pepipost/pepipost.go b/pkg/detectors/pepipost/pepipost.goindex 89345eaf5..4a56bfbb1 100644--- a/pkg/detectors/pepipost/pepipost.go+++ b/pkg/detectors/pepipost/pepipost.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pinata/pinata.go b/pkg/detectors/pinata/pinata.goindex 9ab2046f7..afe999837 100644--- a/pkg/detectors/pinata/pinata.go+++ b/pkg/detectors/pinata/pinata.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pipedream/pipedream.go b/pkg/detectors/pipedream/pipedream.goindex 4d0a5f911..2b6559d0e 100644--- a/pkg/detectors/pipedream/pipedream.go+++ b/pkg/detectors/pipedream/pipedream.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pipedrive/pipedrive.go b/pkg/detectors/pipedrive/pipedrive.goindex 56c93af02..6c66b6662 100644--- a/pkg/detectors/pipedrive/pipedrive.go+++ b/pkg/detectors/pipedrive/pipedrive.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pivotaltracker/pivotaltracker.go b/pkg/detectors/pivotaltracker/pivotaltracker.goindex f68e462af..054776222 100644--- a/pkg/detectors/pivotaltracker/pivotaltracker.go+++ b/pkg/detectors/pivotaltracker/pivotaltracker.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pixabay/pixabay.go b/pkg/detectors/pixabay/pixabay.goindex 5a54ec7be..edae0de8b 100644--- a/pkg/detectors/pixabay/pixabay.go+++ b/pkg/detectors/pixabay/pixabay.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/plaidkey/plaidkey.go b/pkg/detectors/plaidkey/plaidkey.goindex 7355065cb..2976d0f1c 100644--- a/pkg/detectors/plaidkey/plaidkey.go+++ b/pkg/detectors/plaidkey/plaidkey.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/planviewleankit/planviewleankit.go b/pkg/detectors/planviewleankit/planviewleankit.goindex d3cea2b07..5c8a2a7cc 100644--- a/pkg/detectors/planviewleankit/planviewleankit.go+++ b/pkg/detectors/planviewleankit/planviewleankit.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/planyo/planyo.go b/pkg/detectors/planyo/planyo.goindex 6291d1d97..8e2d5b65c 100644--- a/pkg/detectors/planyo/planyo.go+++ b/pkg/detectors/planyo/planyo.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/plivo/plivo.go b/pkg/detectors/plivo/plivo.goindex 29125f8fe..682334155 100644--- a/pkg/detectors/plivo/plivo.go+++ b/pkg/detectors/plivo/plivo.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/podio/podio.go b/pkg/detectors/podio/podio.goindex 8e86c3ccc..ca41786d5 100644--- a/pkg/detectors/podio/podio.go+++ b/pkg/detectors/podio/podio.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pollsapi/pollsapi.go b/pkg/detectors/pollsapi/pollsapi.goindex 2fee8b54e..4ee17e78a 100644--- a/pkg/detectors/pollsapi/pollsapi.go+++ b/pkg/detectors/pollsapi/pollsapi.go@@ -19,7 +19,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pollsapi"}) + `\b([A-Z0-9]{28})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/poloniex/poloniex.go b/pkg/detectors/poloniex/poloniex.goindex 3470a499a..e95d50b4f 100644--- a/pkg/detectors/poloniex/poloniex.go+++ b/pkg/detectors/poloniex/poloniex.go@@ -100,7 +100,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}func getPoloniexSignature(secret string, payload string) string {diff --git a/pkg/detectors/polygon/polygon.go b/pkg/detectors/polygon/polygon.goindex 2a45620df..57ac37634 100644--- a/pkg/detectors/polygon/polygon.go+++ b/pkg/detectors/polygon/polygon.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/positionstack/positionstack.go b/pkg/detectors/positionstack/positionstack.goindex df7f12033..3f209773f 100644--- a/pkg/detectors/positionstack/positionstack.go+++ b/pkg/detectors/positionstack/positionstack.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/postageapp/postageapp.go b/pkg/detectors/postageapp/postageapp.goindex 9cd79fbfb..661c0dfcc 100644--- a/pkg/detectors/postageapp/postageapp.go+++ b/pkg/detectors/postageapp/postageapp.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/postbacks/postbacks.go b/pkg/detectors/postbacks/postbacks.goindex 83ed272ae..3018ff58e 100644--- a/pkg/detectors/postbacks/postbacks.go+++ b/pkg/detectors/postbacks/postbacks.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"postbacks"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/posthog/posthog.go b/pkg/detectors/posthog/posthog.goindex ee63f655c..ef1947626 100644--- a/pkg/detectors/posthog/posthog.go+++ b/pkg/detectors/posthog/posthog.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/postman/postman.go b/pkg/detectors/postman/postman.goindex 76a655c09..db2f613a8 100644--- a/pkg/detectors/postman/postman.go+++ b/pkg/detectors/postman/postman.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/postmark/postmark.go b/pkg/detectors/postmark/postmark.goindex 6f0d1e166..2394b553b 100644--- a/pkg/detectors/postmark/postmark.go+++ b/pkg/detectors/postmark/postmark.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/powrbot/powrbot.go b/pkg/detectors/powrbot/powrbot.goindex 1880450a8..624c9ff0a 100644--- a/pkg/detectors/powrbot/powrbot.go+++ b/pkg/detectors/powrbot/powrbot.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/prodpad/prodpad.go b/pkg/detectors/prodpad/prodpad.goindex 237190d43..30ef2429e 100644--- a/pkg/detectors/prodpad/prodpad.go+++ b/pkg/detectors/prodpad/prodpad.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"prodpad"}) + `\b([a-f0-9]{64})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/prospectcrm/prospectcrm.go b/pkg/detectors/prospectcrm/prospectcrm.goindex e80ccdc9e..15c357c44 100644--- a/pkg/detectors/prospectcrm/prospectcrm.go+++ b/pkg/detectors/prospectcrm/prospectcrm.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/prospectio/prospectio.go b/pkg/detectors/prospectio/prospectio.goindex ca72ecdd4..e2af0d623 100644--- a/pkg/detectors/prospectio/prospectio.go+++ b/pkg/detectors/prospectio/prospectio.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/protocolsio/protocolsio.go b/pkg/detectors/protocolsio/protocolsio.goindex b7e796551..11207a416 100644--- a/pkg/detectors/protocolsio/protocolsio.go+++ b/pkg/detectors/protocolsio/protocolsio.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/proxycrawl/proxycrawl.go b/pkg/detectors/proxycrawl/proxycrawl.goindex 6f58ca61c..98a75d2f4 100644--- a/pkg/detectors/proxycrawl/proxycrawl.go+++ b/pkg/detectors/proxycrawl/proxycrawl.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.goindex 2122fdd4c..5ee8ef8af 100644--- a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go+++ b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.goindex 3d93dfd76..81bbd0629 100644--- a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go+++ b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/purestake/purestake.go b/pkg/detectors/purestake/purestake.goindex 88f310f98..6c3ce426f 100644--- a/pkg/detectors/purestake/purestake.go+++ b/pkg/detectors/purestake/purestake.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pushbulletapikey/pushbulletapikey.go b/pkg/detectors/pushbulletapikey/pushbulletapikey.goindex f8d689011..dc64f230e 100644--- a/pkg/detectors/pushbulletapikey/pushbulletapikey.go+++ b/pkg/detectors/pushbulletapikey/pushbulletapikey.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/pusherchannelkey/pusherchannelkey.go b/pkg/detectors/pusherchannelkey/pusherchannelkey.goindex 3fb4f9bbf..b3f4e2b56 100644--- a/pkg/detectors/pusherchannelkey/pusherchannelkey.go+++ b/pkg/detectors/pusherchannelkey/pusherchannelkey.go@@ -127,7 +127,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}func hmacBytes(toSign, secret []byte) []byte {_authSignature := hmac.New(sha256.New, secret)diff --git a/pkg/detectors/qase/qase.go b/pkg/detectors/qase/qase.goindex 89a98ae7b..7a2e294a4 100644--- a/pkg/detectors/qase/qase.go+++ b/pkg/detectors/qase/qase.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/qualaroo/qualaroo.go b/pkg/detectors/qualaroo/qualaroo.goindex f31b83c77..4c695c2b7 100644--- a/pkg/detectors/qualaroo/qualaroo.go+++ b/pkg/detectors/qualaroo/qualaroo.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/qubole/qubole.go b/pkg/detectors/qubole/qubole.goindex ffb9fa67f..5ece33949 100644--- a/pkg/detectors/qubole/qubole.go+++ b/pkg/detectors/qubole/qubole.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/quickmetrics/quickmetrics.go b/pkg/detectors/quickmetrics/quickmetrics.goindex e4e158457..037bab488 100644--- a/pkg/detectors/quickmetrics/quickmetrics.go+++ b/pkg/detectors/quickmetrics/quickmetrics.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rapidapi/rapidapi.go b/pkg/detectors/rapidapi/rapidapi.goindex 1f4cc0455..013ef1380 100644--- a/pkg/detectors/rapidapi/rapidapi.go+++ b/pkg/detectors/rapidapi/rapidapi.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/raven/raven.go b/pkg/detectors/raven/raven.goindex e866a6e0c..2425507f9 100644--- a/pkg/detectors/raven/raven.go+++ b/pkg/detectors/raven/raven.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rawg/rawg.go b/pkg/detectors/rawg/rawg.goindex c6182a677..5e1fceb8a 100644--- a/pkg/detectors/rawg/rawg.go+++ b/pkg/detectors/rawg/rawg.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/reachmail/reachmail.go b/pkg/detectors/reachmail/reachmail.goindex 7e94b320b..ef3e78701 100644--- a/pkg/detectors/reachmail/reachmail.go+++ b/pkg/detectors/reachmail/reachmail.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/readme/readme.go b/pkg/detectors/readme/readme.goindex 47d498a9e..d0bcbedae 100644--- a/pkg/detectors/readme/readme.go+++ b/pkg/detectors/readme/readme.go@@ -6,7 +6,6 @@ import ("regexp""strings"-"github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb")@@ -69,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/reallysimplesystems/reallysimplesystems.go b/pkg/detectors/reallysimplesystems/reallysimplesystems.goindex d3bee2f14..8f3563756 100644--- a/pkg/detectors/reallysimplesystems/reallysimplesystems.go+++ b/pkg/detectors/reallysimplesystems/reallysimplesystems.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rebrandly/rebrandly.go b/pkg/detectors/rebrandly/rebrandly.goindex bdfd823fe..58edd5679 100644--- a/pkg/detectors/rebrandly/rebrandly.go+++ b/pkg/detectors/rebrandly/rebrandly.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rechargepayments/rechargepayments.go b/pkg/detectors/rechargepayments/rechargepayments.goindex 73ea2f1ca..5502a03d6 100644--- a/pkg/detectors/rechargepayments/rechargepayments.go+++ b/pkg/detectors/rechargepayments/rechargepayments.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/refiner/refiner.go b/pkg/detectors/refiner/refiner.goindex 95f9c0864..47725650c 100644--- a/pkg/detectors/refiner/refiner.go+++ b/pkg/detectors/refiner/refiner.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rentman/rentman.go b/pkg/detectors/rentman/rentman.goindex 51c8e302d..b11dd7b87 100644--- a/pkg/detectors/rentman/rentman.go+++ b/pkg/detectors/rentman/rentman.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rentman"}) + `\b(ey[a-zA-Z0-9]{34}.ey[a-zA-Z0-9._-]{250,300})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/repairshopr/repairshopr.go b/pkg/detectors/repairshopr/repairshopr.goindex 03c3da54e..f0600699f 100644--- a/pkg/detectors/repairshopr/repairshopr.go+++ b/pkg/detectors/repairshopr/repairshopr.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/restpack/restpack.go b/pkg/detectors/restpack/restpack.goindex 2b4e3ba8c..3a26717a7 100644--- a/pkg/detectors/restpack/restpack.go+++ b/pkg/detectors/restpack/restpack.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.goindex f4d2a86ae..f7db1641f 100644--- a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go+++ b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.goindex 7aad0c7f5..ea35c1954 100644--- a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go+++ b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rev/rev.go b/pkg/detectors/rev/rev.goindex e23e2378a..85e19cb78 100644--- a/pkg/detectors/rev/rev.go+++ b/pkg/detectors/rev/rev.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/revampcrm/revampcrm.go b/pkg/detectors/revampcrm/revampcrm.goindex 53931001a..5de3f1ccd 100644--- a/pkg/detectors/revampcrm/revampcrm.go+++ b/pkg/detectors/revampcrm/revampcrm.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ringcentral/ringcentral.go b/pkg/detectors/ringcentral/ringcentral.goindex 6505f9d13..2fbf316ca 100644--- a/pkg/detectors/ringcentral/ringcentral.go+++ b/pkg/detectors/ringcentral/ringcentral.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ritekit/ritekit.go b/pkg/detectors/ritekit/ritekit.goindex daf493999..bb4992180 100644--- a/pkg/detectors/ritekit/ritekit.go+++ b/pkg/detectors/ritekit/ritekit.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/roaring/roaring.go b/pkg/detectors/roaring/roaring.goindex c92317687..86ca807ff 100644--- a/pkg/detectors/roaring/roaring.go+++ b/pkg/detectors/roaring/roaring.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rocketreach/rocketreach.go b/pkg/detectors/rocketreach/rocketreach.goindex 0ac22a91a..0c259b75f 100644--- a/pkg/detectors/rocketreach/rocketreach.go+++ b/pkg/detectors/rocketreach/rocketreach.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rockset/rockset.go b/pkg/detectors/rockset/rockset.goindex 524087dd5..3ba2665c1 100644--- a/pkg/detectors/rockset/rockset.go+++ b/pkg/detectors/rockset/rockset.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/roninapp/roninapp.go b/pkg/detectors/roninapp/roninapp.goindex 3b57bae6c..5d7a2af5a 100644--- a/pkg/detectors/roninapp/roninapp.go+++ b/pkg/detectors/roninapp/roninapp.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/route4me/route4me.go b/pkg/detectors/route4me/route4me.goindex b0fbbff57..b42d43253 100644--- a/pkg/detectors/route4me/route4me.go+++ b/pkg/detectors/route4me/route4me.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rownd/rownd.go b/pkg/detectors/rownd/rownd.goindex 2a03c9a98..adcbb00e4 100644--- a/pkg/detectors/rownd/rownd.go+++ b/pkg/detectors/rownd/rownd.go@@ -91,5 +91,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/rubygems/rubygems.go b/pkg/detectors/rubygems/rubygems.goindex 855f6b349..2a07cac7e 100644--- a/pkg/detectors/rubygems/rubygems.go+++ b/pkg/detectors/rubygems/rubygems.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/runrunit/runrunit.go b/pkg/detectors/runrunit/runrunit.goindex 0dd1b50d6..d0bddd318 100644--- a/pkg/detectors/runrunit/runrunit.go+++ b/pkg/detectors/runrunit/runrunit.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/salesblink/salesblink.go b/pkg/detectors/salesblink/salesblink.goindex 47e1ff8db..a5f0a907e 100644--- a/pkg/detectors/salesblink/salesblink.go+++ b/pkg/detectors/salesblink/salesblink.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/salescookie/salescookie.go b/pkg/detectors/salescookie/salescookie.goindex bb9139fe2..862b5d01b 100644--- a/pkg/detectors/salescookie/salescookie.go+++ b/pkg/detectors/salescookie/salescookie.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/salesflare/salesflare.go b/pkg/detectors/salesflare/salesflare.goindex 0ec14a337..70e1b724f 100644--- a/pkg/detectors/salesflare/salesflare.go+++ b/pkg/detectors/salesflare/salesflare.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/salesmate/salesmate.go b/pkg/detectors/salesmate/salesmate.goindex 83b94522b..c9e7477ad 100644--- a/pkg/detectors/salesmate/salesmate.go+++ b/pkg/detectors/salesmate/salesmate.go@@ -20,8 +20,8 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives- keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"salesmate"}) + `\b([0-9Aa-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`)+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"salesmate"}) + `\b([0-9Aa-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"salesmate"}) + `\b([a-z0-9A-Z]{3,22})\b`))@@ -52,14 +52,14 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultDetectorType: detectorspb.DetectorType_Salesmate,Raw: []byte(resMatch),}-+if verify {- url := fmt.Sprintf("https://%s.salesmate.io/apis/v3/companies/1?trackingRecentSearch=true",resIdMatch)+ url := fmt.Sprintf("https://%s.salesmate.io/apis/v3/companies/1?trackingRecentSearch=true", resIdMatch)req, err := http.NewRequestWithContext(ctx, "GET", url, nil)if err != nil {continue}-+req.Header.Add("Content-Type", "application/json")req.Header.Add("sessionToken", resMatch)res, err := client.Do(req)@@ -68,18 +68,18 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}}}}-+results = append(results, s1)}-+}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.goindex 3496bcfc3..896698872 100644--- a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go+++ b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go@@ -95,5 +95,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/satismeterwritekey/satismeterwritekey.go b/pkg/detectors/satismeterwritekey/satismeterwritekey.goindex 1fb5df904..a50b14e24 100644--- a/pkg/detectors/satismeterwritekey/satismeterwritekey.go+++ b/pkg/detectors/satismeterwritekey/satismeterwritekey.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/saucelabs/saucelabs.go b/pkg/detectors/saucelabs/saucelabs.goindex 796321cc3..488fd10ae 100644--- a/pkg/detectors/saucelabs/saucelabs.go+++ b/pkg/detectors/saucelabs/saucelabs.go@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultcontinue}req.Header.Add("Authorization", fmt.Sprintf("Basic %s", encoded))- //req.SetBasicAuth(idMatch, keyMatch)+ // req.SetBasicAuth(idMatch, keyMatch)res, err := client.Do(req)if err == nil {defer res.Body.Close()@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scalewaykey/scalewaykey.go b/pkg/detectors/scalewaykey/scalewaykey.goindex f0f1de83b..1e5a44acb 100644--- a/pkg/detectors/scalewaykey/scalewaykey.go+++ b/pkg/detectors/scalewaykey/scalewaykey.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scalr/scalr.go b/pkg/detectors/scalr/scalr.goindex baaf74e09..2330ab2c2 100644--- a/pkg/detectors/scalr/scalr.go+++ b/pkg/detectors/scalr/scalr.go@@ -20,9 +20,9 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scalr"}) + `\b([0-9a-zA-Z._]{136})`)- idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scalr"}) + `\b([0-9a-z]{4,50})\b`)+ idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scalr"}) + `\b([0-9a-z]{4,50})\b`))// Keywords are used for efficiently pre-filtering chunks.@@ -52,34 +52,34 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultDetectorType: detectorspb.DetectorType_Scalr,Raw: []byte(resMatch),}-+if verify {- url := fmt.Sprintf("https://%s.scalr.io/api/iacp/v3/agents",resIdMatch)+ url := fmt.Sprintf("https://%s.scalr.io/api/iacp/v3/agents", resIdMatch)req, err := http.NewRequestWithContext(ctx, "GET", url, nil)if err != nil {continue}- req.Header.Add("Authorization", fmt.Sprintf("Bearer %s",resMatch))+ req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", resMatch))req.Header.Add("Content-Type", "application/vnd.api+json")req.Header.Add("Prefer", "profile=preview")res, err := client.Do(req)if err == nil {defer res.Body.Close()if res.StatusCode >= 200 && res.StatusCode < 300 {- s1.Verified = true+ s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}}}}-+results = append(results, s1)- }-+ }+}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scrapeowl/scrapeowl.go b/pkg/detectors/scrapeowl/scrapeowl.goindex c55c76b1d..bbf681cad 100644--- a/pkg/detectors/scrapeowl/scrapeowl.go+++ b/pkg/detectors/scrapeowl/scrapeowl.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scraperapi/scraperapi.go b/pkg/detectors/scraperapi/scraperapi.goindex 82b85f9c4..e71d8e252 100644--- a/pkg/detectors/scraperapi/scraperapi.go+++ b/pkg/detectors/scraperapi/scraperapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scraperbox/scraperbox.go b/pkg/detectors/scraperbox/scraperbox.goindex d50afc59e..d9d0f6b7a 100644--- a/pkg/detectors/scraperbox/scraperbox.go+++ b/pkg/detectors/scraperbox/scraperbox.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scrapersite/scrapersite.go b/pkg/detectors/scrapersite/scrapersite.goindex 2b14a3b9a..e7b6c5527 100644--- a/pkg/detectors/scrapersite/scrapersite.go+++ b/pkg/detectors/scrapersite/scrapersite.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scrapestack/scrapestack.go b/pkg/detectors/scrapestack/scrapestack.goindex 41eb3f5d7..7ff5b29b9 100644--- a/pkg/detectors/scrapestack/scrapestack.go+++ b/pkg/detectors/scrapestack/scrapestack.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scrapfly/scrapfly.go b/pkg/detectors/scrapfly/scrapfly.goindex 4c9352c1a..c0fa5cf7c 100644--- a/pkg/detectors/scrapfly/scrapfly.go+++ b/pkg/detectors/scrapfly/scrapfly.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scrapingant/scrapingant.go b/pkg/detectors/scrapingant/scrapingant.goindex 9d57e6ab9..f19e3ea47 100644--- a/pkg/detectors/scrapingant/scrapingant.go+++ b/pkg/detectors/scrapingant/scrapingant.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scrapingbee/scrapingbee.go b/pkg/detectors/scrapingbee/scrapingbee.goindex e31771962..61ca862e5 100644--- a/pkg/detectors/scrapingbee/scrapingbee.go+++ b/pkg/detectors/scrapingbee/scrapingbee.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/screenshotapi/screenshotapi.go b/pkg/detectors/screenshotapi/screenshotapi.goindex 5c701138a..0420b0d8f 100644--- a/pkg/detectors/screenshotapi/screenshotapi.go+++ b/pkg/detectors/screenshotapi/screenshotapi.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/screenshotlayer/screenshotlayer.go b/pkg/detectors/screenshotlayer/screenshotlayer.goindex 8fa64590c..ace60d55d 100644--- a/pkg/detectors/screenshotlayer/screenshotlayer.go+++ b/pkg/detectors/screenshotlayer/screenshotlayer.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/scrutinizerci/scrutinizerci.go b/pkg/detectors/scrutinizerci/scrutinizerci.goindex 003f24a99..612bd6930 100644--- a/pkg/detectors/scrutinizerci/scrutinizerci.go+++ b/pkg/detectors/scrutinizerci/scrutinizerci.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/securitytrails/securitytrails.go b/pkg/detectors/securitytrails/securitytrails.goindex 0c777dd25..aab33272e 100644--- a/pkg/detectors/securitytrails/securitytrails.go+++ b/pkg/detectors/securitytrails/securitytrails.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/segmentapikey/segmentapikey.go b/pkg/detectors/segmentapikey/segmentapikey.goindex 8ab80d6d3..89865f897 100644--- a/pkg/detectors/segmentapikey/segmentapikey.go+++ b/pkg/detectors/segmentapikey/segmentapikey.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/selectpdf/selectpdf.go b/pkg/detectors/selectpdf/selectpdf.goindex 8716d2f22..c8c39f81e 100644--- a/pkg/detectors/selectpdf/selectpdf.go+++ b/pkg/detectors/selectpdf/selectpdf.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/semaphore/semaphore.go b/pkg/detectors/semaphore/semaphore.goindex bddecc80b..763911ae9 100644--- a/pkg/detectors/semaphore/semaphore.go+++ b/pkg/detectors/semaphore/semaphore.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sendbird/sendbird.go b/pkg/detectors/sendbird/sendbird.goindex e21b14725..a9abb4775 100644--- a/pkg/detectors/sendbird/sendbird.go+++ b/pkg/detectors/sendbird/sendbird.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.goindex dfd227df8..46e270c25 100644--- a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go+++ b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sendinbluev2/sendinbluev2.go b/pkg/detectors/sendinbluev2/sendinbluev2.goindex 27e87e3da..be1533ad2 100644--- a/pkg/detectors/sendinbluev2/sendinbluev2.go+++ b/pkg/detectors/sendinbluev2/sendinbluev2.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sentiment/sentiment.go b/pkg/detectors/sentiment/sentiment.goindex 0155bb39b..9b7ed6728 100644--- a/pkg/detectors/sentiment/sentiment.go+++ b/pkg/detectors/sentiment/sentiment.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sentrytoken/sentrytoken.go b/pkg/detectors/sentrytoken/sentrytoken.goindex 6822f063f..12f9b6b72 100644--- a/pkg/detectors/sentrytoken/sentrytoken.go+++ b/pkg/detectors/sentrytoken/sentrytoken.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/serphouse/serphouse.go b/pkg/detectors/serphouse/serphouse.goindex f7263761e..88693aa5a 100644--- a/pkg/detectors/serphouse/serphouse.go+++ b/pkg/detectors/serphouse/serphouse.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/serpstack/serpstack.go b/pkg/detectors/serpstack/serpstack.goindex 8fac9dcfa..9d8a39991 100644--- a/pkg/detectors/serpstack/serpstack.go+++ b/pkg/detectors/serpstack/serpstack.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sheety/sheety.go b/pkg/detectors/sheety/sheety.goindex 99dcf8dc0..73a78c2a4 100644--- a/pkg/detectors/sheety/sheety.go+++ b/pkg/detectors/sheety/sheety.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sherpadesk/sherpadesk.go b/pkg/detectors/sherpadesk/sherpadesk.goindex 3e4bab1cc..455dbebc5 100644--- a/pkg/detectors/sherpadesk/sherpadesk.go+++ b/pkg/detectors/sherpadesk/sherpadesk.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/shipday/shipday.go b/pkg/detectors/shipday/shipday.goindex 883b8cdef..841e4fdda 100644--- a/pkg/detectors/shipday/shipday.go+++ b/pkg/detectors/shipday/shipday.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/shodankey/shodankey.go b/pkg/detectors/shodankey/shodankey.goindex 358eeafca..624823f33 100644--- a/pkg/detectors/shodankey/shodankey.go+++ b/pkg/detectors/shodankey/shodankey.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/shortcut/shortcut.go b/pkg/detectors/shortcut/shortcut.goindex 3e9194855..a8a4ebdb9 100644--- a/pkg/detectors/shortcut/shortcut.go+++ b/pkg/detectors/shortcut/shortcut.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/shotstack/shotstack.go b/pkg/detectors/shotstack/shotstack.goindex 2f6e7640b..b926b028f 100644--- a/pkg/detectors/shotstack/shotstack.go+++ b/pkg/detectors/shotstack/shotstack.go@@ -101,5 +101,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/shutterstock/shutterstock.go b/pkg/detectors/shutterstock/shutterstock.goindex 3597fc006..519ed89ad 100644--- a/pkg/detectors/shutterstock/shutterstock.go+++ b/pkg/detectors/shutterstock/shutterstock.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/shutterstockoauth/shutterstockoauth.go b/pkg/detectors/shutterstockoauth/shutterstockoauth.goindex 4850036be..a90f530fa 100644--- a/pkg/detectors/shutterstockoauth/shutterstockoauth.go+++ b/pkg/detectors/shutterstockoauth/shutterstockoauth.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/signable/signable.go b/pkg/detectors/signable/signable.goindex fdd909084..dd4182d44 100644--- a/pkg/detectors/signable/signable.go+++ b/pkg/detectors/signable/signable.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/signalwire/signalwire.go b/pkg/detectors/signalwire/signalwire.goindex 6a2e2a7dd..d800f5e5b 100644--- a/pkg/detectors/signalwire/signalwire.go+++ b/pkg/detectors/signalwire/signalwire.go@@ -92,5 +92,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/signaturit/signaturit.go b/pkg/detectors/signaturit/signaturit.goindex b00ccb362..c7b2955ff 100644--- a/pkg/detectors/signaturit/signaturit.go+++ b/pkg/detectors/signaturit/signaturit.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/signupgenius/signupgenius.go b/pkg/detectors/signupgenius/signupgenius.goindex b24f69c06..7818a2e6e 100644--- a/pkg/detectors/signupgenius/signupgenius.go+++ b/pkg/detectors/signupgenius/signupgenius.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sigopt/sigopt.go b/pkg/detectors/sigopt/sigopt.goindex 6e9188e34..e076f9fca 100644--- a/pkg/detectors/sigopt/sigopt.go+++ b/pkg/detectors/sigopt/sigopt.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/simfin/simfin.go b/pkg/detectors/simfin/simfin.goindex 45b8b038e..3d60d5604 100644--- a/pkg/detectors/simfin/simfin.go+++ b/pkg/detectors/simfin/simfin.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/simplesat/simplesat.go b/pkg/detectors/simplesat/simplesat.goindex 9c86b82dd..6109941b6 100644--- a/pkg/detectors/simplesat/simplesat.go+++ b/pkg/detectors/simplesat/simplesat.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/simplynoted/simplynoted.go b/pkg/detectors/simplynoted/simplynoted.goindex e85b07d0d..3e801269c 100644--- a/pkg/detectors/simplynoted/simplynoted.go+++ b/pkg/detectors/simplynoted/simplynoted.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/simvoly/simvoly.go b/pkg/detectors/simvoly/simvoly.goindex 5fa997fb8..494b60608 100644--- a/pkg/detectors/simvoly/simvoly.go+++ b/pkg/detectors/simvoly/simvoly.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sinchmessage/sinchmessage.go b/pkg/detectors/sinchmessage/sinchmessage.goindex 31de4b5c2..c33fc54b3 100644--- a/pkg/detectors/sinchmessage/sinchmessage.go+++ b/pkg/detectors/sinchmessage/sinchmessage.go@@ -86,5 +86,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sirv/sirv.go b/pkg/detectors/sirv/sirv.goindex aa5c0cbb7..82af5d7c7 100644--- a/pkg/detectors/sirv/sirv.go+++ b/pkg/detectors/sirv/sirv.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/siteleaf/siteleaf.go b/pkg/detectors/siteleaf/siteleaf.goindex e33227ca9..115c8bd2a 100644--- a/pkg/detectors/siteleaf/siteleaf.go+++ b/pkg/detectors/siteleaf/siteleaf.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/skrappio/skrappio.go b/pkg/detectors/skrappio/skrappio.goindex bad489d57..5cef5975d 100644--- a/pkg/detectors/skrappio/skrappio.go+++ b/pkg/detectors/skrappio/skrappio.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/skybiometry/skybiometry.go b/pkg/detectors/skybiometry/skybiometry.goindex e2727b7a1..ce4dcf9e1 100644--- a/pkg/detectors/skybiometry/skybiometry.go+++ b/pkg/detectors/skybiometry/skybiometry.go@@ -87,5 +87,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/slackwebhook/slackwebhook.go b/pkg/detectors/slackwebhook/slackwebhook.goindex 739ba721c..3d977f5b0 100644--- a/pkg/detectors/slackwebhook/slackwebhook.go+++ b/pkg/detectors/slackwebhook/slackwebhook.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/smartsheets/smartsheets.go b/pkg/detectors/smartsheets/smartsheets.goindex ac82df31e..6ca344f70 100644--- a/pkg/detectors/smartsheets/smartsheets.go+++ b/pkg/detectors/smartsheets/smartsheets.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/smartystreets/smartystreets.go b/pkg/detectors/smartystreets/smartystreets.goindex 2d3ba927c..dc023e546 100644--- a/pkg/detectors/smartystreets/smartystreets.go+++ b/pkg/detectors/smartystreets/smartystreets.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/smooch/smooch.go b/pkg/detectors/smooch/smooch.goindex 5f2b5249e..796c48b02 100644--- a/pkg/detectors/smooch/smooch.go+++ b/pkg/detectors/smooch/smooch.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/snipcart/snipcart.go b/pkg/detectors/snipcart/snipcart.goindex be18c9652..6c549b193 100644--- a/pkg/detectors/snipcart/snipcart.go+++ b/pkg/detectors/snipcart/snipcart.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/snykkey/snykkey.go b/pkg/detectors/snykkey/snykkey.goindex b52cc4954..76c83a3e1 100644--- a/pkg/detectors/snykkey/snykkey.go+++ b/pkg/detectors/snykkey/snykkey.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sonarcloud/sonarcloud.go b/pkg/detectors/sonarcloud/sonarcloud.goindex 39e1c1ea2..b057b2a49 100644--- a/pkg/detectors/sonarcloud/sonarcloud.go+++ b/pkg/detectors/sonarcloud/sonarcloud.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/speechtextai/speechtextai.go b/pkg/detectors/speechtextai/speechtextai.goindex 4a750a68c..d45b0ef50 100644--- a/pkg/detectors/speechtextai/speechtextai.go+++ b/pkg/detectors/speechtextai/speechtextai.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"speechtext"}) + common.BuildRegex(common.HexPattern, "", 32)))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.goindex 42f2e0a68..a891f9d18 100644--- a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go+++ b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/spoonacular/spoonacular.go b/pkg/detectors/spoonacular/spoonacular.goindex abd33fb9a..45982f135 100644--- a/pkg/detectors/spoonacular/spoonacular.go+++ b/pkg/detectors/spoonacular/spoonacular.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sportradar/sportradar.go b/pkg/detectors/sportradar/sportradar.goindex 9d4440ca2..54c79f9b5 100644--- a/pkg/detectors/sportradar/sportradar.go+++ b/pkg/detectors/sportradar/sportradar.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sportsmonk/sportsmonk.go b/pkg/detectors/sportsmonk/sportsmonk.goindex ddb921535..c3f1f3306 100644--- a/pkg/detectors/sportsmonk/sportsmonk.go+++ b/pkg/detectors/sportsmonk/sportsmonk.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/spotifykey/spotifykey.go b/pkg/detectors/spotifykey/spotifykey.goindex fa386efcd..f097ffaf9 100644--- a/pkg/detectors/spotifykey/spotifykey.go+++ b/pkg/detectors/spotifykey/spotifykey.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sqlserver/sqlserver.go b/pkg/detectors/sqlserver/sqlserver.goindex 6400fc394..3d86265f4 100644--- a/pkg/detectors/sqlserver/sqlserver.go+++ b/pkg/detectors/sqlserver/sqlserver.go@@ -56,7 +56,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, detected)}- return detectors.CleanResults(results), nil+ return results, nil}var ping = func(config msdsn.Config) (bool, error) {diff --git a/pkg/detectors/squarespace/squarespace.go b/pkg/detectors/squarespace/squarespace.goindex 6525f13de..74112c71c 100644--- a/pkg/detectors/squarespace/squarespace.go+++ b/pkg/detectors/squarespace/squarespace.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/squareup/squareup.go b/pkg/detectors/squareup/squareup.goindex e131f2340..1a07a86e0 100644--- a/pkg/detectors/squareup/squareup.go+++ b/pkg/detectors/squareup/squareup.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sslmate/sslmate.go b/pkg/detectors/sslmate/sslmate.goindex b965df804..2dee72eed 100644--- a/pkg/detectors/sslmate/sslmate.go+++ b/pkg/detectors/sslmate/sslmate.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/statuscake/statuscake.go b/pkg/detectors/statuscake/statuscake.goindex 065025123..5afbaa52c 100644--- a/pkg/detectors/statuscake/statuscake.go+++ b/pkg/detectors/statuscake/statuscake.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/statuspage/statuspage.go b/pkg/detectors/statuspage/statuspage.goindex f72fe3dbe..f01ee06e5 100644--- a/pkg/detectors/statuspage/statuspage.go+++ b/pkg/detectors/statuspage/statuspage.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/statuspal/statuspal.go b/pkg/detectors/statuspal/statuspal.goindex fc98cb527..6c8979672 100644--- a/pkg/detectors/statuspal/statuspal.go+++ b/pkg/detectors/statuspal/statuspal.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/stitchdata/stitchdata.go b/pkg/detectors/stitchdata/stitchdata.goindex edb342fd0..7052c409b 100644--- a/pkg/detectors/stitchdata/stitchdata.go+++ b/pkg/detectors/stitchdata/stitchdata.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/stockdata/stockdata.go b/pkg/detectors/stockdata/stockdata.goindex 43345efd0..27b0102b6 100644--- a/pkg/detectors/stockdata/stockdata.go+++ b/pkg/detectors/stockdata/stockdata.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/storecove/storecove.go b/pkg/detectors/storecove/storecove.goindex 15edb2d58..468a00be9 100644--- a/pkg/detectors/storecove/storecove.go+++ b/pkg/detectors/storecove/storecove.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/stormboard/stormboard.go b/pkg/detectors/stormboard/stormboard.goindex af83b3338..90f5d2e93 100644--- a/pkg/detectors/stormboard/stormboard.go+++ b/pkg/detectors/stormboard/stormboard.go@@ -19,7 +19,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"stormboard"}) + `\b([a-f0-9]{40})\b`))@@ -51,14 +51,14 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif err != nil {continue}- req.Header.Add("X-API-Key",resMatch)+ req.Header.Add("X-API-Key", resMatch)res, err := client.Do(req)if err == nil {defer res.Body.Close()if res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/storyblok/storyblok.go b/pkg/detectors/storyblok/storyblok.goindex 5d2682b3b..2db3576b1 100644--- a/pkg/detectors/storyblok/storyblok.go+++ b/pkg/detectors/storyblok/storyblok.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/storychief/storychief.go b/pkg/detectors/storychief/storychief.goindex d85a9348c..c72db30d3 100644--- a/pkg/detectors/storychief/storychief.go+++ b/pkg/detectors/storychief/storychief.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/strava/strava.go b/pkg/detectors/strava/strava.goindex 1de0356c9..795f81f48 100644--- a/pkg/detectors/strava/strava.go+++ b/pkg/detectors/strava/strava.go@@ -90,5 +90,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/streak/streak.go b/pkg/detectors/streak/streak.goindex c3adcbf97..529e798ee 100644--- a/pkg/detectors/streak/streak.go+++ b/pkg/detectors/streak/streak.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/stytch/stytch.go b/pkg/detectors/stytch/stytch.goindex f5b5a09e6..8befdddb5 100644--- a/pkg/detectors/stytch/stytch.go+++ b/pkg/detectors/stytch/stytch.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sugester/sugester.go b/pkg/detectors/sugester/sugester.goindex cce6be9ee..b241969e8 100644--- a/pkg/detectors/sugester/sugester.go+++ b/pkg/detectors/sugester/sugester.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/sumologickey/sumologickey.go b/pkg/detectors/sumologickey/sumologickey.goindex 50b4ebbaf..499b323ef 100644--- a/pkg/detectors/sumologickey/sumologickey.go+++ b/pkg/detectors/sumologickey/sumologickey.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/supernotesapi/supernotesapi.go b/pkg/detectors/supernotesapi/supernotesapi.goindex 20ca55f2b..5762455d6 100644--- a/pkg/detectors/supernotesapi/supernotesapi.go+++ b/pkg/detectors/supernotesapi/supernotesapi.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/surveyanyplace/surveyanyplace.go b/pkg/detectors/surveyanyplace/surveyanyplace.goindex f74e8690d..30a644a61 100644--- a/pkg/detectors/surveyanyplace/surveyanyplace.go+++ b/pkg/detectors/surveyanyplace/surveyanyplace.go@@ -87,5 +87,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/surveybot/surveybot.go b/pkg/detectors/surveybot/surveybot.goindex 9aa928909..4f19dde24 100644--- a/pkg/detectors/surveybot/surveybot.go+++ b/pkg/detectors/surveybot/surveybot.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/surveysparrow/surveysparrow.go b/pkg/detectors/surveysparrow/surveysparrow.goindex 698e71e50..e74cf40f0 100644--- a/pkg/detectors/surveysparrow/surveysparrow.go+++ b/pkg/detectors/surveysparrow/surveysparrow.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/survicate/survicate.go b/pkg/detectors/survicate/survicate.goindex 8ef4884aa..a474d2819 100644--- a/pkg/detectors/survicate/survicate.go+++ b/pkg/detectors/survicate/survicate.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/swell/swell.go b/pkg/detectors/swell/swell.goindex 2682cc099..a50e42db1 100644--- a/pkg/detectors/swell/swell.go+++ b/pkg/detectors/swell/swell.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/swiftype/swiftype.go b/pkg/detectors/swiftype/swiftype.goindex 3a36c420b..e4f5fc87a 100644--- a/pkg/detectors/swiftype/swiftype.go+++ b/pkg/detectors/swiftype/swiftype.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tallyfy/tallyfy.go b/pkg/detectors/tallyfy/tallyfy.goindex 533b70d13..e91f3c1fa 100644--- a/pkg/detectors/tallyfy/tallyfy.go+++ b/pkg/detectors/tallyfy/tallyfy.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tatumio/tatumio.go b/pkg/detectors/tatumio/tatumio.goindex 8063e94cc..885f7b370 100644--- a/pkg/detectors/tatumio/tatumio.go+++ b/pkg/detectors/tatumio/tatumio.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/taxjar/taxjar.go b/pkg/detectors/taxjar/taxjar.goindex 385b706b0..7d7b3507e 100644--- a/pkg/detectors/taxjar/taxjar.go+++ b/pkg/detectors/taxjar/taxjar.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/teamgate/teamgate.go b/pkg/detectors/teamgate/teamgate.goindex c76304d63..495751920 100644--- a/pkg/detectors/teamgate/teamgate.go+++ b/pkg/detectors/teamgate/teamgate.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/teamworkcrm/teamworkcrm.go b/pkg/detectors/teamworkcrm/teamworkcrm.goindex 88eeee9dd..a34aabd47 100644--- a/pkg/detectors/teamworkcrm/teamworkcrm.go+++ b/pkg/detectors/teamworkcrm/teamworkcrm.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/teamworkdesk/teamworkdesk.go b/pkg/detectors/teamworkdesk/teamworkdesk.goindex 3421d27f4..4df974edf 100644--- a/pkg/detectors/teamworkdesk/teamworkdesk.go+++ b/pkg/detectors/teamworkdesk/teamworkdesk.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/teamworkspaces/teamworkspaces.go b/pkg/detectors/teamworkspaces/teamworkspaces.goindex 253705e7d..4c27fa062 100644--- a/pkg/detectors/teamworkspaces/teamworkspaces.go+++ b/pkg/detectors/teamworkspaces/teamworkspaces.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.goindex c2812f86e..05e756432 100644--- a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go+++ b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tefter/tefter.go b/pkg/detectors/tefter/tefter.goindex 9767c3c99..9f7085de2 100644--- a/pkg/detectors/tefter/tefter.go+++ b/pkg/detectors/tefter/tefter.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/telegrambottoken/telegrambottoken.go b/pkg/detectors/telegrambottoken/telegrambottoken.goindex 7e560baec..149a760eb 100644--- a/pkg/detectors/telegrambottoken/telegrambottoken.go+++ b/pkg/detectors/telegrambottoken/telegrambottoken.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/teletype/teletype.go b/pkg/detectors/teletype/teletype.goindex 905bf6a8d..5bd0130c0 100644--- a/pkg/detectors/teletype/teletype.go+++ b/pkg/detectors/teletype/teletype.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/telnyx/telnyx.go b/pkg/detectors/telnyx/telnyx.goindex 7da32ae99..d40be13e3 100644--- a/pkg/detectors/telnyx/telnyx.go+++ b/pkg/detectors/telnyx/telnyx.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.goindex 5f211b1f4..30bd7d015 100644--- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go+++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/testdetector/testdetector.go b/pkg/detectors/testdetector/testdetector.goindex 8d610bc4d..be41da31a 100644--- a/pkg/detectors/testdetector/testdetector.go+++ b/pkg/detectors/testdetector/testdetector.go@@ -51,5 +51,5 @@ func (d Detector) FromData(ctx context.Context, verify bool, data []byte) (resulresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/testingbot/testingbot.go b/pkg/detectors/testingbot/testingbot.goindex cc85568aa..75977274a 100644--- a/pkg/detectors/testingbot/testingbot.go+++ b/pkg/detectors/testingbot/testingbot.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/text2data/text2data.go b/pkg/detectors/text2data/text2data.goindex 2e5ed68fd..7429d971d 100644--- a/pkg/detectors/text2data/text2data.go+++ b/pkg/detectors/text2data/text2data.go@@ -85,7 +85,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}type Response struct {diff --git a/pkg/detectors/textmagic/textmagic.go b/pkg/detectors/textmagic/textmagic.goindex fc1839987..50995fa30 100644--- a/pkg/detectors/textmagic/textmagic.go+++ b/pkg/detectors/textmagic/textmagic.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/theoddsapi/theoddsapi.go b/pkg/detectors/theoddsapi/theoddsapi.goindex 482f422c0..991563596 100644--- a/pkg/detectors/theoddsapi/theoddsapi.go+++ b/pkg/detectors/theoddsapi/theoddsapi.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/thinkific/thinkific.go b/pkg/detectors/thinkific/thinkific.goindex 11e96f9c0..d7343b0f7 100644--- a/pkg/detectors/thinkific/thinkific.go+++ b/pkg/detectors/thinkific/thinkific.go@@ -89,5 +89,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/thousandeyes/thousandeyes.go b/pkg/detectors/thousandeyes/thousandeyes.goindex 9ad83f464..fee648071 100644--- a/pkg/detectors/thousandeyes/thousandeyes.go+++ b/pkg/detectors/thousandeyes/thousandeyes.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ticketmaster/ticketmaster.go b/pkg/detectors/ticketmaster/ticketmaster.goindex 3d1dee97f..34c274cfa 100644--- a/pkg/detectors/ticketmaster/ticketmaster.go+++ b/pkg/detectors/ticketmaster/ticketmaster.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tickettailor/tickettailor.go b/pkg/detectors/tickettailor/tickettailor.goindex 3aa53c956..96b78d7ae 100644--- a/pkg/detectors/tickettailor/tickettailor.go+++ b/pkg/detectors/tickettailor/tickettailor.go@@ -2,11 +2,11 @@ package tickettailorimport ("context"+ b64 "encoding/base64""fmt""net/http""regexp""strings"- b64 "encoding/base64""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors"@@ -21,7 +21,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tickettailor"}) + `\b(sk[a-fA-Z0-9_]{45})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tiingo/tiingo.go b/pkg/detectors/tiingo/tiingo.goindex 579118d31..4e71dd680 100644--- a/pkg/detectors/tiingo/tiingo.go+++ b/pkg/detectors/tiingo/tiingo.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/timecamp/timecamp.go b/pkg/detectors/timecamp/timecamp.goindex 5211f89c3..b75745080 100644--- a/pkg/detectors/timecamp/timecamp.go+++ b/pkg/detectors/timecamp/timecamp.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/timezoneapi/timezoneapi.go b/pkg/detectors/timezoneapi/timezoneapi.goindex 06d3d3b87..a35002aca 100644--- a/pkg/detectors/timezoneapi/timezoneapi.go+++ b/pkg/detectors/timezoneapi/timezoneapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tly/tly.go b/pkg/detectors/tly/tly.goindex d600b769d..b2866de0b 100644--- a/pkg/detectors/tly/tly.go+++ b/pkg/detectors/tly/tly.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tmetric/tmetric.go b/pkg/detectors/tmetric/tmetric.goindex a29bb5d41..d9f023b76 100644--- a/pkg/detectors/tmetric/tmetric.go+++ b/pkg/detectors/tmetric/tmetric.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/todoist/todoist.go b/pkg/detectors/todoist/todoist.goindex e7815bd79..1cfd41f45 100644--- a/pkg/detectors/todoist/todoist.go+++ b/pkg/detectors/todoist/todoist.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/toggltrack/toggltrack.go b/pkg/detectors/toggltrack/toggltrack.goindex 7d1d8c912..a71112d67 100644--- a/pkg/detectors/toggltrack/toggltrack.go+++ b/pkg/detectors/toggltrack/toggltrack.go@@ -74,5 +74,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tokeet/tokeet.go b/pkg/detectors/tokeet/tokeet.goindex 8ee4ff039..035d3f9ca 100644--- a/pkg/detectors/tokeet/tokeet.go+++ b/pkg/detectors/tokeet/tokeet.go@@ -20,10 +20,9 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tokeet"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`)- idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tokeet"}) + `\b([0-9]{10}.[0-9]{4})\b`)-+ idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tokeet"}) + `\b([0-9]{10}.[0-9]{4})\b`))// Keywords are used for efficiently pre-filtering chunks.@@ -61,25 +60,25 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultcontinue}req.Header.Add("Accept", "application/json")- req.Header.Add("Authorization",resMatch)+ req.Header.Add("Authorization", resMatch)res, err := client.Do(req)if err == nil {defer res.Body.Close()if res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}}}}-+results = append(results, s1)}-+}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tomorrowio/tomorrowio.go b/pkg/detectors/tomorrowio/tomorrowio.goindex 12a6508f7..5f34fd3c7 100644--- a/pkg/detectors/tomorrowio/tomorrowio.go+++ b/pkg/detectors/tomorrowio/tomorrowio.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tomtom/tomtom.go b/pkg/detectors/tomtom/tomtom.goindex cd138ab18..1b3ef36c7 100644--- a/pkg/detectors/tomtom/tomtom.go+++ b/pkg/detectors/tomtom/tomtom.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tradier/tradier.go b/pkg/detectors/tradier/tradier.goindex 72ee44bae..1f0fe7f38 100644--- a/pkg/detectors/tradier/tradier.go+++ b/pkg/detectors/tradier/tradier.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/transferwise/transferwise.go b/pkg/detectors/transferwise/transferwise.goindex 7758320cb..ececd3d00 100644--- a/pkg/detectors/transferwise/transferwise.go+++ b/pkg/detectors/transferwise/transferwise.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"transferwise"}) + `\b([0-9a-f-]{8}-[0-9a-f-]{4}-[0-9a-f-]{4}-[0-9a-f-]{4}-[0-9a-f-]{12})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/travelpayouts/travelpayouts.go b/pkg/detectors/travelpayouts/travelpayouts.goindex fddad483d..a9d7b49be 100644--- a/pkg/detectors/travelpayouts/travelpayouts.go+++ b/pkg/detectors/travelpayouts/travelpayouts.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/travisci/travisci.go b/pkg/detectors/travisci/travisci.goindex 89cb6d816..b4ee03e04 100644--- a/pkg/detectors/travisci/travisci.go+++ b/pkg/detectors/travisci/travisci.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/trelloapikey/trelloapikey.go b/pkg/detectors/trelloapikey/trelloapikey.goindex 11ba326ab..720fe8eb6 100644--- a/pkg/detectors/trelloapikey/trelloapikey.go+++ b/pkg/detectors/trelloapikey/trelloapikey.go@@ -76,5 +76,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tru/tru.go b/pkg/detectors/tru/tru.goindex a08cd3599..9675b714c 100644--- a/pkg/detectors/tru/tru.go+++ b/pkg/detectors/tru/tru.go@@ -83,5 +83,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/twelvedata/twelvedata.go b/pkg/detectors/twelvedata/twelvedata.goindex e0c99e6dc..2cc3c0ac3 100644--- a/pkg/detectors/twelvedata/twelvedata.go+++ b/pkg/detectors/twelvedata/twelvedata.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/twist/twist.go b/pkg/detectors/twist/twist.goindex b794f26e8..0f5368e68 100644--- a/pkg/detectors/twist/twist.go+++ b/pkg/detectors/twist/twist.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"twist"}) + `\b([0-9a-f:]{40,47})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}results = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/twitch/twitch.go b/pkg/detectors/twitch/twitch.goindex 7cf5ad683..da9047290 100644--- a/pkg/detectors/twitch/twitch.go+++ b/pkg/detectors/twitch/twitch.go@@ -21,7 +21,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"twitch"}) + `\b([0-9a-z]{30})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"twitch"}) + `\b([0-9a-z]{30})\b`))@@ -75,7 +75,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -86,5 +86,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/twitter/twitter.go b/pkg/detectors/twitter/twitter.goindex 158cc7a7a..294f73676 100644--- a/pkg/detectors/twitter/twitter.go+++ b/pkg/detectors/twitter/twitter.go@@ -65,5 +65,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/tyntec/tyntec.go b/pkg/detectors/tyntec/tyntec.goindex 1369f47df..961aab2a3 100644--- a/pkg/detectors/tyntec/tyntec.go+++ b/pkg/detectors/tyntec/tyntec.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/typeform/typeform.go b/pkg/detectors/typeform/typeform.goindex cb765dbbd..4054cae96 100644--- a/pkg/detectors/typeform/typeform.go+++ b/pkg/detectors/typeform/typeform.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/typetalk/typetalk.go b/pkg/detectors/typetalk/typetalk.goindex 8b41a1f6e..3085eefab 100644--- a/pkg/detectors/typetalk/typetalk.go+++ b/pkg/detectors/typetalk/typetalk.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/ubidots/ubidots.go b/pkg/detectors/ubidots/ubidots.goindex 63c5c5f2c..2dc609d36 100644--- a/pkg/detectors/ubidots/ubidots.go+++ b/pkg/detectors/ubidots/ubidots.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/uclassify/uclassify.go b/pkg/detectors/uclassify/uclassify.goindex b3ebd01a4..a27b7e9f2 100644--- a/pkg/detectors/uclassify/uclassify.go+++ b/pkg/detectors/uclassify/uclassify.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"uclassify"}) + `\b([a-z0-9A-Z]{12})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -72,5 +72,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/unifyid/unifyid.go b/pkg/detectors/unifyid/unifyid.goindex 0a128db45..3a6fb6dc3 100644--- a/pkg/detectors/unifyid/unifyid.go+++ b/pkg/detectors/unifyid/unifyid.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/unplugg/unplugg.go b/pkg/detectors/unplugg/unplugg.goindex f3d96422b..8d9b93502 100644--- a/pkg/detectors/unplugg/unplugg.go+++ b/pkg/detectors/unplugg/unplugg.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/unsplash/unsplash.go b/pkg/detectors/unsplash/unsplash.goindex aac97b7ab..5e2481f8a 100644--- a/pkg/detectors/unsplash/unsplash.go+++ b/pkg/detectors/unsplash/unsplash.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/upcdatabase/upcdatabase.go b/pkg/detectors/upcdatabase/upcdatabase.goindex 62cb3c71a..09a20651a 100644--- a/pkg/detectors/upcdatabase/upcdatabase.go+++ b/pkg/detectors/upcdatabase/upcdatabase.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/uplead/uplead.go b/pkg/detectors/uplead/uplead.goindex efa28466b..53285f369 100644--- a/pkg/detectors/uplead/uplead.go+++ b/pkg/detectors/uplead/uplead.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/uploadcare/uploadcare.go b/pkg/detectors/uploadcare/uploadcare.goindex 7768985da..7a99164b9 100644--- a/pkg/detectors/uploadcare/uploadcare.go+++ b/pkg/detectors/uploadcare/uploadcare.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/uptimerobot/uptimerobot.go b/pkg/detectors/uptimerobot/uptimerobot.goindex afe4ae6b5..78d674941 100644--- a/pkg/detectors/uptimerobot/uptimerobot.go+++ b/pkg/detectors/uptimerobot/uptimerobot.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/upwave/upwave.go b/pkg/detectors/upwave/upwave.goindex 91f41009e..6c614f135 100644--- a/pkg/detectors/upwave/upwave.go+++ b/pkg/detectors/upwave/upwave.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/uri/uri.go b/pkg/detectors/uri/uri.goindex b68e32f2f..6a4278ef0 100644--- a/pkg/detectors/uri/uri.go+++ b/pkg/detectors/uri/uri.go@@ -48,9 +48,9 @@ func allowlistedProtos(scheme string) bool {// FromData will find and optionally verify URI secrets in a given set of bytes.func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {- //Prevent SSRF "https://us-central1-ssrfproxy.cloudfunctions.net/ssrfproxy-6d96c399-74bb-4299-b49d-c1c870277eb9"- //TODO add as config option- //TODO extend to other http outbound calls in other areas of code+ // Prevent SSRF "https://us-central1-ssrfproxy.cloudfunctions.net/ssrfproxy-6d96c399-74bb-4299-b49d-c1c870277eb9"+ // TODO add as config option+ // TODO extend to other http outbound calls in other areas of codessrfProtectorURL := "https://us-central1-ssrfproxy.cloudfunctions.net/ssrfproxy-6d96c399-74bb-4299-b49d-c1c870277eb9"dataStr := string(data)@@ -133,5 +133,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/urlscan/urlscan.go b/pkg/detectors/urlscan/urlscan.goindex b415d5f1f..3d3d01aad 100644--- a/pkg/detectors/urlscan/urlscan.go+++ b/pkg/detectors/urlscan/urlscan.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/user/user.go b/pkg/detectors/user/user.goindex d376eb863..acc447e53 100644--- a/pkg/detectors/user/user.go+++ b/pkg/detectors/user/user.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/userflow/userflow.go b/pkg/detectors/userflow/userflow.goindex 0cc6d145f..49446f19e 100644--- a/pkg/detectors/userflow/userflow.go+++ b/pkg/detectors/userflow/userflow.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/userstack/userstack.go b/pkg/detectors/userstack/userstack.goindex 07ccc7312..a78c79cf6 100644--- a/pkg/detectors/userstack/userstack.go+++ b/pkg/detectors/userstack/userstack.go@@ -76,5 +76,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/vatlayer/vatlayer.go b/pkg/detectors/vatlayer/vatlayer.goindex e036e0960..c6f4bb9d4 100644--- a/pkg/detectors/vatlayer/vatlayer.go+++ b/pkg/detectors/vatlayer/vatlayer.go@@ -79,5 +79,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/vbout/vbout.go b/pkg/detectors/vbout/vbout.goindex 05dba7615..125cbd8c1 100644--- a/pkg/detectors/vbout/vbout.go+++ b/pkg/detectors/vbout/vbout.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"vbout"}) + `\b([0-9]{25})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/vercel/vercel.go b/pkg/detectors/vercel/vercel.goindex a603467ae..fc1dc131a 100644--- a/pkg/detectors/vercel/vercel.go+++ b/pkg/detectors/vercel/vercel.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/verifier/verifier.go b/pkg/detectors/verifier/verifier.goindex aa081e7e2..710ed5f21 100644--- a/pkg/detectors/verifier/verifier.go+++ b/pkg/detectors/verifier/verifier.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/verimail/verimail.go b/pkg/detectors/verimail/verimail.goindex 10c194115..c69eb031d 100644--- a/pkg/detectors/verimail/verimail.go+++ b/pkg/detectors/verimail/verimail.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/veriphone/veriphone.go b/pkg/detectors/veriphone/veriphone.goindex 8cce7f4f4..a1a003184 100644--- a/pkg/detectors/veriphone/veriphone.go+++ b/pkg/detectors/veriphone/veriphone.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/versioneye/versioneye.go b/pkg/detectors/versioneye/versioneye.goindex 0eaa9de4f..4c0588ff5 100644--- a/pkg/detectors/versioneye/versioneye.go+++ b/pkg/detectors/versioneye/versioneye.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/viewneo/viewneo.go b/pkg/detectors/viewneo/viewneo.goindex d30594238..86c663548 100644--- a/pkg/detectors/viewneo/viewneo.go+++ b/pkg/detectors/viewneo/viewneo.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/virustotal/virustotal.go b/pkg/detectors/virustotal/virustotal.goindex bf4665d19..a5e5fc933 100644--- a/pkg/detectors/virustotal/virustotal.go+++ b/pkg/detectors/virustotal/virustotal.go@@ -84,5 +84,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/visualcrossing/visualcrossing.go b/pkg/detectors/visualcrossing/visualcrossing.goindex 9aa6ba04f..f55cca372 100644--- a/pkg/detectors/visualcrossing/visualcrossing.go+++ b/pkg/detectors/visualcrossing/visualcrossing.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/voicegain/voicegain.go b/pkg/detectors/voicegain/voicegain.goindex 3daa3f898..2bee8e376 100644--- a/pkg/detectors/voicegain/voicegain.go+++ b/pkg/detectors/voicegain/voicegain.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/voodoosms/voodoosms.go b/pkg/detectors/voodoosms/voodoosms.goindex 4cfd2486d..2594926fc 100644--- a/pkg/detectors/voodoosms/voodoosms.go+++ b/pkg/detectors/voodoosms/voodoosms.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/vouchery/vouchery.go b/pkg/detectors/vouchery/vouchery.goindex 5b977aee7..a47d03ab9 100644--- a/pkg/detectors/vouchery/vouchery.go+++ b/pkg/detectors/vouchery/vouchery.go@@ -81,5 +81,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/vpnapi/vpnapi.go b/pkg/detectors/vpnapi/vpnapi.goindex 1aab24778..417aef2c2 100644--- a/pkg/detectors/vpnapi/vpnapi.go+++ b/pkg/detectors/vpnapi/vpnapi.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/vultrapikey/vultrapikey.go b/pkg/detectors/vultrapikey/vultrapikey.goindex 45195a539..adcae99b9 100644--- a/pkg/detectors/vultrapikey/vultrapikey.go+++ b/pkg/detectors/vultrapikey/vultrapikey.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/vyte/vyte.go b/pkg/detectors/vyte/vyte.goindex 18cd4b818..e74500728 100644--- a/pkg/detectors/vyte/vyte.go+++ b/pkg/detectors/vyte/vyte.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/walkscore/walkscore.go b/pkg/detectors/walkscore/walkscore.goindex b3316aaff..012013360 100644--- a/pkg/detectors/walkscore/walkscore.go+++ b/pkg/detectors/walkscore/walkscore.go@@ -76,5 +76,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/weatherbit/weatherbit.go b/pkg/detectors/weatherbit/weatherbit.goindex 9e6d04c9f..f1d32888f 100644--- a/pkg/detectors/weatherbit/weatherbit.go+++ b/pkg/detectors/weatherbit/weatherbit.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/weatherstack/weatherstack.go b/pkg/detectors/weatherstack/weatherstack.goindex df8d9f6a8..dd7b993de 100644--- a/pkg/detectors/weatherstack/weatherstack.go+++ b/pkg/detectors/weatherstack/weatherstack.go@@ -77,5 +77,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/webex/webex.go b/pkg/detectors/webex/webex.goindex c9bd79249..7067e1ebe 100644--- a/pkg/detectors/webex/webex.go+++ b/pkg/detectors/webex/webex.go@@ -88,5 +88,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/webflow/webflow.go b/pkg/detectors/webflow/webflow.goindex 9dbbc15c3..ea2b9b832 100644--- a/pkg/detectors/webflow/webflow.go+++ b/pkg/detectors/webflow/webflow.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/webscraper/webscraper.go b/pkg/detectors/webscraper/webscraper.goindex 692e10cde..c5b78bfc4 100644--- a/pkg/detectors/webscraper/webscraper.go+++ b/pkg/detectors/webscraper/webscraper.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/webscraping/webscraping.go b/pkg/detectors/webscraping/webscraping.goindex 3582f7f63..864638503 100644--- a/pkg/detectors/webscraping/webscraping.go+++ b/pkg/detectors/webscraping/webscraping.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/websitepulse/websitepulse.go b/pkg/detectors/websitepulse/websitepulse.goindex 403f7b711..ceec5f4a2 100644--- a/pkg/detectors/websitepulse/websitepulse.go+++ b/pkg/detectors/websitepulse/websitepulse.go@@ -82,5 +82,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/wepay/wepay.go b/pkg/detectors/wepay/wepay.goindex 7d18aedc4..11e3fd5f0 100644--- a/pkg/detectors/wepay/wepay.go+++ b/pkg/detectors/wepay/wepay.go@@ -85,5 +85,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/whoxy/whoxy.go b/pkg/detectors/whoxy/whoxy.goindex a59ad2a0f..e59580aa9 100644--- a/pkg/detectors/whoxy/whoxy.go+++ b/pkg/detectors/whoxy/whoxy.go@@ -76,5 +76,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/wistia/wistia.go b/pkg/detectors/wistia/wistia.goindex 173b5fdf8..88853c949 100644--- a/pkg/detectors/wistia/wistia.go+++ b/pkg/detectors/wistia/wistia.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/wit/wit.go b/pkg/detectors/wit/wit.goindex a5bcd10e7..8a7f87cb4 100644--- a/pkg/detectors/wit/wit.go+++ b/pkg/detectors/wit/wit.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/worksnaps/worksnaps.go b/pkg/detectors/worksnaps/worksnaps.goindex 1365fdea3..de5b50447 100644--- a/pkg/detectors/worksnaps/worksnaps.go+++ b/pkg/detectors/worksnaps/worksnaps.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/workstack/workstack.go b/pkg/detectors/workstack/workstack.goindex 5219439a8..73049b546 100644--- a/pkg/detectors/workstack/workstack.go+++ b/pkg/detectors/workstack/workstack.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/worldcoinindex/worldcoinindex.go b/pkg/detectors/worldcoinindex/worldcoinindex.goindex 2c171660a..8af7693e6 100644--- a/pkg/detectors/worldcoinindex/worldcoinindex.go+++ b/pkg/detectors/worldcoinindex/worldcoinindex.go@@ -80,5 +80,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/worldweather/worldweather.go b/pkg/detectors/worldweather/worldweather.goindex 2fd06db23..f6b5022b5 100644--- a/pkg/detectors/worldweather/worldweather.go+++ b/pkg/detectors/worldweather/worldweather.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/wrike/wrike.go b/pkg/detectors/wrike/wrike.goindex 1e4812bca..dcca9b6c6 100644--- a/pkg/detectors/wrike/wrike.go+++ b/pkg/detectors/wrike/wrike.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/yandex/yandex.go b/pkg/detectors/yandex/yandex.goindex 15d21179a..0c2ec5ee0 100644--- a/pkg/detectors/yandex/yandex.go+++ b/pkg/detectors/yandex/yandex.go@@ -68,5 +68,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/yelp/yelp.go b/pkg/detectors/yelp/yelp.goindex ddd8474b3..56d0bf42c 100644--- a/pkg/detectors/yelp/yelp.go+++ b/pkg/detectors/yelp/yelp.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/youneedabudget/youneedabudget.go b/pkg/detectors/youneedabudget/youneedabudget.goindex 6daa6aa7d..900a2cdf1 100644--- a/pkg/detectors/youneedabudget/youneedabudget.go+++ b/pkg/detectors/youneedabudget/youneedabudget.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/yousign/yousign.go b/pkg/detectors/yousign/yousign.goindex 67df84e97..6dc137448 100644--- a/pkg/detectors/yousign/yousign.go+++ b/pkg/detectors/yousign/yousign.go@@ -71,5 +71,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/youtubeapikey/youtubeapikey.go b/pkg/detectors/youtubeapikey/youtubeapikey.goindex 4fc9b7c1e..6caa7b89e 100644--- a/pkg/detectors/youtubeapikey/youtubeapikey.go+++ b/pkg/detectors/youtubeapikey/youtubeapikey.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zapierwebhook/zapierwebhook.go b/pkg/detectors/zapierwebhook/zapierwebhook.goindex 61cb98878..df29b9c0c 100644--- a/pkg/detectors/zapierwebhook/zapierwebhook.go+++ b/pkg/detectors/zapierwebhook/zapierwebhook.go@@ -63,5 +63,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zendeskapi/zendeskapi.go b/pkg/detectors/zendeskapi/zendeskapi.goindex 411b0fb97..26948fd5a 100644--- a/pkg/detectors/zendeskapi/zendeskapi.go+++ b/pkg/detectors/zendeskapi/zendeskapi.go@@ -92,5 +92,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zenkitapi/zenkitapi.go b/pkg/detectors/zenkitapi/zenkitapi.goindex 58d869c69..9caadc34e 100644--- a/pkg/detectors/zenkitapi/zenkitapi.go+++ b/pkg/detectors/zenkitapi/zenkitapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zenrows/zenrows.go b/pkg/detectors/zenrows/zenrows.goindex 3bf8684f7..ce4b8a94a 100644--- a/pkg/detectors/zenrows/zenrows.go+++ b/pkg/detectors/zenrows/zenrows.go@@ -20,7 +20,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zenrows"}) + `\b([0-9a-f]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zenscrape/zenscrape.go b/pkg/detectors/zenscrape/zenscrape.goindex e98056812..cbec741d7 100644--- a/pkg/detectors/zenscrape/zenscrape.go+++ b/pkg/detectors/zenscrape/zenscrape.go@@ -76,5 +76,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zenserp/zenserp.go b/pkg/detectors/zenserp/zenserp.goindex 4a3827349..41c9153df 100644--- a/pkg/detectors/zenserp/zenserp.go+++ b/pkg/detectors/zenserp/zenserp.go@@ -73,5 +73,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zeplin/zeplin.go b/pkg/detectors/zeplin/zeplin.goindex 2b22785c2..529c20595 100644--- a/pkg/detectors/zeplin/zeplin.go+++ b/pkg/detectors/zeplin/zeplin.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zerobounce/zerobounce.go b/pkg/detectors/zerobounce/zerobounce.goindex c42a61a29..1f5e4f6e0 100644--- a/pkg/detectors/zerobounce/zerobounce.go+++ b/pkg/detectors/zerobounce/zerobounce.go@@ -75,5 +75,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zipapi/zipapi.go b/pkg/detectors/zipapi/zipapi.goindex 629284a48..9fc5df053 100644--- a/pkg/detectors/zipapi/zipapi.go+++ b/pkg/detectors/zipapi/zipapi.go@@ -90,5 +90,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zipbooks/zipbooks.go b/pkg/detectors/zipbooks/zipbooks.goindex 6d5ba7a3a..27f17dbae 100644--- a/pkg/detectors/zipbooks/zipbooks.go+++ b/pkg/detectors/zipbooks/zipbooks.go@@ -78,5 +78,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zipcodeapi/zipcodeapi.go b/pkg/detectors/zipcodeapi/zipcodeapi.goindex 924b35287..00dd0139b 100644--- a/pkg/detectors/zipcodeapi/zipcodeapi.go+++ b/pkg/detectors/zipcodeapi/zipcodeapi.go@@ -69,5 +69,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zipcodebase/zipcodebase.go b/pkg/detectors/zipcodebase/zipcodebase.goindex cb8f74df2..d60fa4bd9 100644--- a/pkg/detectors/zipcodebase/zipcodebase.go+++ b/pkg/detectors/zipcodebase/zipcodebase.go@@ -19,7 +19,7 @@ var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundry characters such as below to reduce false positiveskeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zipcodebase"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real keyif detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zonkafeedback/zonkafeedback.go b/pkg/detectors/zonkafeedback/zonkafeedback.goindex e2f0877e8..4745eced5 100644--- a/pkg/detectors/zonkafeedback/zonkafeedback.go+++ b/pkg/detectors/zonkafeedback/zonkafeedback.go@@ -70,5 +70,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresults = append(results, s1)}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/detectors/zulipchat/zulipchat.go b/pkg/detectors/zulipchat/zulipchat.goindex 412c96c62..344524c40 100644--- a/pkg/detectors/zulipchat/zulipchat.go+++ b/pkg/detectors/zulipchat/zulipchat.go@@ -47,7 +47,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultresMatch := strings.TrimSpace(match[1])for _, idMatch := range idMatches {- //getting the last word of the string+ // getting the last word of the stringresIdMatch := strings.TrimSpace(idMatch[0][strings.LastIndex(idMatch[0], " ")+1:])for _, domainMatch := range domainMatches {@@ -89,5 +89,5 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result}}- return detectors.CleanResults(results), nil+ return results, nil}diff --git a/pkg/engine/engine.go b/pkg/engine/engine.goindex ea59b555e..095a5a334 100644--- a/pkg/engine/engine.go+++ b/pkg/engine/engine.go@@ -31,6 +31,10 @@ type Engine struct {detectorAvgTime sync.MapsourcesWg sync.WaitGroupworkersWg sync.WaitGroup+ // filterUnverified is used to reduce the number of unverified results.+ // If there are multiple unverified results for the same chunk for the same detector,+ // only the first one will be kept.+ filterUnverified bool}type EngineOption func(*Engine)@@ -60,6 +64,14 @@ func WithDecoders(decoders ...decoders.Decoder) EngineOption {}}+// WithFilterUnverified sets the filterUnverified flag on the engine. If set to+// true, the engine will only return the first unverified result for a chunk for a detector.+func WithFilterUnverified(filter bool) EngineOption {+ return func(e *Engine) {+ e.filterUnverified = filter+ }+}+func Start(ctx context.Context, options ...EngineOption) *Engine {e := &Engine{chunks: make(chan *sources.Chunk),@@ -214,6 +226,9 @@ func (e *Engine) detectorWorker(ctx context.Context) {continue}+ if e.filterUnverified {+ results = detectors.CleanResults(results)+ }for _, result := range results {if isGitSource(chunk.SourceType) {offset := FragmentLineOffset(chunk, &result)