Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is the analysis engine
func NewEngine ¶
NewEngine creates a new Engine instance path is the path of the source code, if not exists, pass an empty string src is the source code, if not exists, pass nil path and src must not be nil at the same time
func (*Engine) CheckControlFlow ¶
CheckControlFlow checks if the control flow (if, for, switch, select) is nested more than 4 times returns true if control flow is not nested more than 4 times, otherwise false
func (*Engine) CheckIdentifiers ¶
CheckIdentifiers checks if the identifiers' length is equal to 13 returns true if all identifiers' length is not equal to 13, otherwise false
Click to show internal directories.
Click to hide internal directories.