Documentation ¶
Overview ¶
Package qual implements tests and helpers for writing highly readable code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultWeight = 20 * 60 * time.Second
DefaultWeight is the duration it takes to fix overloaded complexity level. E.g. if complexity is 6 and you've set max to 5 this is the duration it takes to fix the code from 6 to 5.
Functions ¶
func CyclomaticComplexity ¶
CyclomaticComplexity fails if max is exceeded in any go files of this project.
func FixDuration ¶ added in v0.2.1
FixDuration calculates the duration to fix all overloaded complexity. Everything more complex than 14+max is timed as if 14.
func FuncHeight ¶ added in v0.4.0
FuncHeight fails if any func body exceeds maxLines. All lines are considered, source and comments.
func High ¶
func High(t T)
High is the same as Standard, only it includes all vendor source as well.
func LineLength ¶
LineLength fails if any go file contains lines exceeding maxChars. All lines are considered, source and comments.