package keyword

import "github.com/DefangLabs/secret-detector/pkg/detectors/keyword"

Index

Constants

const (
	Name = "keyword"

	// ValuesRegex exclude values starting with $ because they are usually variables
	// exclude values surrounded by {} because they are usually computed expressions
	ValuesRegex = `[^${\s].+[^}\s]`
)

Functions

func NewDetector

func NewDetector(config ...string) secrets.Detector

Source Files

keyword_detector.go

Version
v0.0.0-20250403165618-22662109213e (latest)
Published
Apr 3, 2025
Platform
js/wasm
Imports
6 packages
Last checked
4 hours ago

Tools for package owners.