Documentation
¶
Overview ¶
Package qual implements tests and helpers for writing highly readable code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CyclomaticComplexity ¶
CyclomaticComplexity fails if max is exceeded in any go files of this project.
func FuncHeight ¶ added in v0.4.0
FuncHeight fails if any func body exceeds maxLines. All lines are considered, source and comments.
func Gofumpt ¶ added in v0.5.0
func Gofumpt(t T)
Gofumpt uses gofumpt -l . command to check if files have been formatted.
Types ¶
type LineLength ¶
type LineLength struct {
MaxChars int
TabSize int
IncludeVendor bool
IncludeGenerated bool
// Set to true if lines with urls should be considered
IncludeURLs bool
// contains filtered or unexported fields
}
func (*LineLength) Test ¶ added in v0.5.0
func (l *LineLength) Test(t T)
LineLength fails if any go file contains lines exceeding maxChars. All lines are considered, source and comments.
Click to show internal directories.
Click to hide internal directories.