MCPcopy
hub / github.com/eth0izzle/shhgit / CanCheckEntropy

Method CanCheckEntropy

core/match.go:49–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (match MatchFile) CanCheckEntropy() bool {
50 if match.Filename == "id_rsa" {
51 return false
52 }
53
54 for _, skippableExt := range session.Config.BlacklistedEntropyExtensions {
55 if match.Extension == skippableExt {
56 return false
57 }
58 }
59
60 return true
61}
62
63func GetMatchingFiles(dir string) []MatchFile {
64 fileList := make([]MatchFile, 0)

Callers 1

processRepositoryOrGistFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected