Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
Pass string // pass that produced it: "complexity", "lint", "security"
Rule string // rule id, e.g. "high-complexity", "unused-local"
Severity Severity
Message string
Line int
}
Finding is a single issue reported by a pass.
type Metrics ¶
type Metrics struct {
Lines int
Functions int // excludes the main chunk
MaxComplexity int
TotalComplexity int
}
Metrics are whole-program counts gathered during analysis.
type Options ¶
type Options struct {
MaxComplexity int // functions above this are flagged; default 10
}
Options configures the analysis.
Click to show internal directories.
Click to hide internal directories.