SecretMatchers returns a slice of SecretMatcher for use with (*Analyzer).AddSecretMatchers()
()
| 198 | // SecretMatchers returns a slice of SecretMatcher for use with |
| 199 | // (*Analyzer).AddSecretMatchers() |
| 200 | func (u UserPatterns) SecretMatchers() []SecretMatcher { |
| 201 | out := make([]SecretMatcher, 0) |
| 202 | |
| 203 | for _, p := range u { |
| 204 | out = append(out, p.SecretMatcher()) |
| 205 | } |
| 206 | return out |
| 207 | } |
| 208 | |
| 209 | // ParseUserPatterns accepts an io.Reader pointing to a JSON user-pattern |
| 210 | // definition file, and returns a list of UserPatterns, and any error that |
no test coverage detected