Documentation
¶
Index ¶
Constants ¶
View Source
const ( RuleIDInfo = "info" RuleIDNegationOnlyFilter = "negation-only-filter" RuleIDUnrestrictedWildcard = "unrestricted-wildcard" RuleIDUnanchoredRegex = "unanchored-regex" RuleIDPathBoundaryBypass = "path-boundary-bypass" RuleIDUnfilteredAutodiscovery = "unfiltered-autodiscovery" RuleIDLeadingSlashGlob = "leading-slash-glob" RuleIDRegexEngineReview = "regex-engine-review" RuleIDUnsupportedExtglob = "unsupported-extglob" RuleIDUnresolvedVariable = "unresolved-variable" RuleIDTopicOnlyAutodiscovery = "topic-only-autodiscovery" RuleIDNamespaceScopeReview = "namespace-scope-unresolved" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
RuleID string
Verdict Verdict
Pattern string
Evidence []string
Message string
}
func AnalyzeTopicOnlyAutodiscovery ¶ added in v1.5.2
func AnalyzeUnfilteredAutodiscovery ¶ added in v1.5.2
func AnalyzeUnfilteredAutodiscovery() []Finding
func AnalyzeWithGitLabProjectPaths ¶ added in v1.5.2
func AnalyzeWithGitLabProjectPaths(filterValue string, paths GitLabProjectPathValues) []Finding
type GitLabProjectPathValues ¶ added in v1.5.2
type PatternKind ¶
type PatternKind int
const ( KindGlob PatternKind = iota KindRegex KindMalformedRegexFallback )
Click to show internal directories.
Click to hide internal directories.