Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
pkg: fix function names in comment (#2761)
mountcount1d92655d979d
diff --git a/pkg/context/context.go b/pkg/context/context.goindex 060a3ed4c..62950685e 100644--- a/pkg/context/context.go+++ b/pkg/context/context.go@@ -169,7 +169,7 @@ func AddLogger(parent context.Context) Context {return WithLogger(parent, defaultLogger)}-// SetupDefaultLogger sets the package-level global default logger that will be+// SetDefaultLogger sets the package-level global default logger that will be// used for Background and TODO contexts. On startup, the default logger will// be configured to output logs to stderr. Use logr.Discard() to disable all// logs from Contexts.diff --git a/pkg/detectors/falsepositives.go b/pkg/detectors/falsepositives.goindex 856c4ecf7..29ce2e7c8 100644--- a/pkg/detectors/falsepositives.go+++ b/pkg/detectors/falsepositives.go@@ -43,7 +43,7 @@ func init() {filter = builder.Build()}-// IsKnownFalsePositives will not return a valid secret finding if any of the disqualifying conditions are met+// IsKnownFalsePositive will not return a valid secret finding if any of the disqualifying conditions are met// Currently that includes: No number, english word in key, or matches common example pattens.// Only the secret key material should be passed into this functionfunc IsKnownFalsePositive(match string, falsePositives []FalsePositive, wordCheck bool) bool {diff --git a/pkg/engine/postman.go b/pkg/engine/postman.goindex 59e8a69b6..4a7af8355 100644--- a/pkg/engine/postman.go+++ b/pkg/engine/postman.go@@ -12,7 +12,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/sources/postman")-// ScanGitHub scans Postman with the provided options.+// ScanPostman scans Postman with the provided options.func (e *Engine) ScanPostman(ctx context.Context, c sources.PostmanConfig) error {connection := sourcespb.Postman{Workspaces: c.Workspaces,diff --git a/pkg/sources/job_progress.go b/pkg/sources/job_progress.goindex 08d609c3e..1b7bc6ac2 100644--- a/pkg/sources/job_progress.go+++ b/pkg/sources/job_progress.go@@ -307,13 +307,13 @@ func (jp *JobProgress) Ref() JobProgressRef {}}-// EnumerationErrors joins all errors encountered during initialization or+// EnumerationError joins all errors encountered during initialization or// enumeration.func (m JobProgressMetrics) EnumerationError() error {return errors.Join(m.Errors...)}-// ChunkErrors joins all errors encountered during chunking.+// ChunkError joins all errors encountered during chunking.func (m JobProgressMetrics) ChunkError() error {var aggregate []errorfor _, err := range m.Errors {