MCPcopy Create free account

hub / github.com/gitleaks/gitleaks / functions

Functions501 in github.com/gitleaks/gitleaks

↓ 1 callersFunctionshannonEntropy
shannonEntropy calculates the entropy of data using the formula defined here: https://en.wiktionary.org/wiki/Shannon_entropy Another way to think abou
detect/utils.go:117
↓ 1 callersMethodsub
sub subtracts the values of two startEnds
detect/codec/start_end.go:15
↓ 1 callersFunctionvalidateMinVersion
(minVer string, configPath string)
config/config.go:283
↓ 1 callersMethodwithinProximity
(primary, required report.Finding, requiredRule *config.Required)
detect/detect.go:675
FunctionBenchmarkCommitAllowed
(b *testing.B)
config/allowlist_test.go:269
FunctionBenchmarkCommitNotAllowed
(b *testing.B)
config/allowlist_test.go:276
FunctionBenchmarkConfigAllowlistPaths
(b *testing.B)
cmd/generate/config/base/config_test.go:185
FunctionBenchmarkConfigAllowlistRegexes
(b *testing.B)
cmd/generate/config/base/config_test.go:100
FunctionBenchmarkPathAllowed
(b *testing.B)
config/allowlist_test.go:368
FunctionBenchmarkPathNotAllowed
(b *testing.B)
config/allowlist_test.go:375
FunctionBenchmarkRegexAllowed
(b *testing.B)
config/allowlist_test.go:318
FunctionBenchmarkRegexNotAllowed
(b *testing.B)
config/allowlist_test.go:327
MethodDetectBytes
DetectBytes scans the given bytes and returns a list of findings
detect/detect.go:196
FunctionErr
(err error)
logging/log.go:40
MethodFragments
Fragments yields fragments from files discovered under the path
sources/files.go:142
MethodFragments
Fragments yields fragments from a git repo
sources/git.go:299
FunctionGCPServiceAccount
TODO this one could probably use some work
cmd/generate/config/rules/gcp.go:11
FunctionMustCompile
(str string)
regexp/stdlib_regex.go:13
MethodNewBlobReader
NewBlobReader returns an io.ReadCloser that can be used to read a blob within the git repo used to create the GitCmd. The caller is responsible for c
sources/git.go:201
FunctionPanic
()
logging/log.go:48
FunctionPrintHello
()
testdata/repos/small/api/api.go:5
FunctionPrintHello
()
testdata/repos/staged/api/api.go:5
FunctionSquareSecret
()
cmd/generate/config/rules/square.go:31
MethodString
()
detect/codec/encodings.go:66
FunctionTestCommitAllowed
(t *testing.T)
config/allowlist_test.go:14
FunctionTestConfigAllowlistPaths
(t *testing.T)
cmd/generate/config/base/config_test.go:161
FunctionTestConfigAllowlistRegexes
(t *testing.T)
cmd/generate/config/base/config_test.go:76
FunctionTestDecode
(t *testing.T)
detect/codec/decoder_test.go:11
FunctionTestDetect
(t *testing.T)
detect/detect_test.go:132
FunctionTestDetectReader
TestDetectReader tests the DetectReader function.
detect/reader_test.go:42
FunctionTestDetectRuleAllowlist
(t *testing.T)
detect/detect_test.go:2186
FunctionTestDetectWithArchives
(t *testing.T)
detect/detect_test.go:1529
FunctionTestDetectWithSymlinks
(t *testing.T)
detect/detect_test.go:2127
FunctionTestExtendedRuleKeywordsAreDowncase
(t *testing.T)
config/config_test.go:632
FunctionTestFileLoadBaseline
(t *testing.T)
detect/baseline_test.go:156
FunctionTestFromFiles
TestFromFiles tests the FromFiles function
detect/detect_test.go:1400
FunctionTestFromGit
TestFromGit tests the FromGit function
detect/detect_test.go:850
FunctionTestFromGitStaged
(t *testing.T)
detect/detect_test.go:1328
FunctionTestGenerateSemiGenericRegex
(t *testing.T)
cmd/generate/config/utils/generate_test.go:7
FunctionTestGenerateUniqueTokenRegex
(t *testing.T)
cmd/generate/config/utils/generate_test.go:165
FunctionTestGetLocation
TestGetLocation tests the getLocation function.
detect/location_test.go:10
FunctionTestIgnoreIssuesInBaseline
(t *testing.T)
detect/baseline_test.go:182
FunctionTestIsNew
(t *testing.T)
detect/baseline_test.go:13
FunctionTestMask
(t *testing.T)
report/finding_test.go:32
FunctionTestMaskSecret
(t *testing.T)
report/finding_test.go:66
FunctionTestNormalizeGitleaksIgnorePaths
region Windows-specific tests[]
detect/detect_test.go:2461
FunctionTestPathAllowed
(t *testing.T)
config/allowlist_test.go:74
FunctionTestRedact
(t *testing.T)
report/finding_test.go:9
FunctionTestRegexAllowed
(t *testing.T)
config/allowlist_test.go:48
FunctionTestStreamDetectReader
(t *testing.T)
detect/reader_test.go:78
FunctionTestTemplateDangerousFunctions
(t *testing.T)
report/template_test.go:100
FunctionTestTranslate
(t *testing.T)
config/config_test.go:36
FunctionTestTranslateAllowlists
(t *testing.T)
config/config_test.go:116
FunctionTestTranslateExtend
(t *testing.T)
config/config_test.go:326
FunctionTestValidate
(t *testing.T)
config/allowlist_test.go:100
FunctionTestWindowsFileSeparator_RuleAllowlistPaths
(t *testing.T)
detect/detect_test.go:2591
FunctionTestWindowsFileSeparator_RulePath
(t *testing.T)
detect/detect_test.go:2477
FunctionTestWriteCSV
(t *testing.T)
report/csv_test.go:12
FunctionTestWriteJSON
(t *testing.T)
report/json_test.go:31
FunctionTestWriteJunit
(t *testing.T)
report/junit_test.go:12
FunctionTestWriteSarif
(t *testing.T)
report/sarif_test.go:14
FunctionTestWriteStdout
(t *testing.T)
report/report_test.go:15
FunctionTestWriteTemplate
(t *testing.T)
report/template_test.go:12
FunctionTest_createScmLink
(t *testing.T)
detect/utils_test.go:13
FunctionTest_readUntilSafeBoundary
(t *testing.T)
sources/common_test.go:13
FunctionTrelloAccessToken
()
cmd/generate/config/rules/trello.go:9
FunctiondecodeBase64
decodeBase64 decodes base64 encoded printable ASCII characters
detect/codec/base64.go:20
FunctiondecodeHex
decodeHex decodes hex data
detect/codec/hex.go:35
FunctiondecodePercent
decodePercent decodes percent encoded strings
detect/codec/percent.go:4
FunctiondecodeUnicode
decodeUnicode decodes Unicode escape sequences in the given string
detect/codec/unicode.go:30
MethodextendURL
()
config/config.go:416
Functioninit
()
logging/log.go:11
Functioninit
()
sources/common.go:20
Functioninit
()
cmd/stdin.go:13
Functioninit
()
cmd/detect.go:33
Functioninit
()
cmd/git.go:14
Functioninit
()
cmd/protect.go:15
Functioninit
()
cmd/directory.go:12
Functioninit
()
cmd/root.go:73
Functioninit
()
cmd/version.go:10
Functioninit
()
detect/codec/encodings.go:105
Functioninit
()
detect/codec/ascii.go:5
Functioninit
()
detect/codec/base64.go:13
Functioninit
()
detect/codec/hex.go:28
FunctioninitLog
()
cmd/root.go:107
Functionmain
()
main.go:11
Functionmain
()
testdata/archives/files/api.go:5
Functionmain
()
testdata/archives/files/main.go:5
Functionmain
()
testdata/repos/nogit/api.go:5
Functionmain
()
testdata/repos/nogit/main.go:5
Functionmain
()
testdata/repos/small/main.go:8
Functionmain
()
testdata/repos/small/api/ignoreGlobal.go:5
Functionmain
()
testdata/repos/small/api/ignoreCommit.go:5
Functionmain
()
testdata/repos/staged/main.go:8
Functionmain
go:generate go run $GOFILE ../../../config/gitleaks.toml
cmd/generate/config/main.go:20
FunctionrunDetect
(cmd *cobra.Command, args []string)
cmd/detect.go:50
FunctionrunDirectory
(cmd *cobra.Command, args []string)
cmd/directory.go:24
FunctionrunGit
(cmd *cobra.Command, args []string)
cmd/git.go:29
FunctionrunProtect
(cmd *cobra.Command, args []string)
cmd/protect.go:29
FunctionrunStdIn
(cmd *cobra.Command, _ []string)
cmd/stdin.go:23
← previousnext →401–500 of 501, ranked by callers