Documentation
¶
Overview ¶
Package lint validates visionspec directory structure and naming conventions.
Index ¶
Constants ¶
View Source
const ( RuleProjectNaming = "project-naming" RuleDirectoryStructure = "directory-structure" RuleSpecNaming = "spec-naming" RuleConfigExists = "config-exists" RuleRepoLevelNaming = "repo-level-naming" RuleEvalNaming = "eval-naming" RuleUnknownFile = "unknown-file" )
Rules
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
Path string `json:"path"`
Rule string `json:"rule"`
Message string `json:"message"`
Severity Severity `json:"severity"`
}
Finding represents a single lint issue.
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
Linter validates visionspec projects.
func NewWithConfig ¶
func NewWithConfig(specsDir string, specConfig *types.SpecConfig) *Linter
NewWithConfig creates a new Linter with a custom spec configuration.
type Result ¶
type Result struct {
Project string `json:"project"`
Findings []Finding `json:"findings"`
Errors int `json:"errors"`
Warnings int `json:"warnings"`
Passed bool `json:"passed"`
}
Result contains the complete lint output.
func (*Result) FormatText ¶
FormatText renders the result as terminal text.
Click to show internal directories.
Click to hide internal directories.