Documentation
¶
Overview ¶
Package lint provides PSL code style checking.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSnakeCase ¶
CheckSnakeCase checks if a name follows snake_case convention.
func FormatIssues ¶
FormatIssues formats lint issues for display.
Types ¶
type Config ¶
type Config struct {
Rules []Rule `json:"rules"`
}
Config holds linter configuration.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default linter configuration.
type Issue ¶
type Issue struct {
File string `json:"file"`
Line int `json:"line"`
Severity Severity `json:"severity"`
Rule string `json:"rule"`
Message string `json:"message"`
}
Issue represents a lint issue.
type Linter ¶
type Linter struct {
Config *Config
TransportLoader *pdl.TransportLoader
}
Linter performs PSL code style checks.
func NewLinterWithTransport ¶
NewLinterWithTransport creates a new linter with transport support.
func (*Linter) LintContent ¶
LintContent lints PSL content and returns issues.
Click to show internal directories.
Click to hide internal directories.