Versions in this module Expand all Collapse all v1 v1.0.0 Sep 13, 2024 Changes in this version + const GNO_PKG_PREFIX + const GNO_STD_PACKAGE + var RepeatedRegexCompilationAnalyzer = &analysis.Analyzer + func DetectCycle(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectDeferIssues(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectEarlyReturnOpportunities(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectEmitFormat(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectGnoPackageImports(filename string) ([]tt.Issue, error) + func DetectHighCyclomaticComplexity(filename string, threshold int) ([]tt.Issue, error) + func DetectLoopAllocation(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectMissingModPackage(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectRepeatedRegexCompilation(filename string) ([]tt.Issue, error) + func DetectSliceBoundCheck(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectUnnecessaryConversions(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectUnnecessarySliceLength(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func DetectUselessBreak(filename string, node *ast.File, fset *token.FileSet) ([]tt.Issue, error) + func ParseFile(filename string) (*ast.File, *token.FileSet, error) + func RemoveUnnecessaryElse(snippet string) (string, error) + func RunGolangciLint(filename string) ([]tt.Issue, error) + type DeferChecker struct + func NewDeferChecker(filename string, fset *token.FileSet) *DeferChecker + func (dc *DeferChecker) Check(node *ast.File) []tt.Issue + type Dependencies map[string]*Dependency + type Dependency struct + ImportPath string + IsGno bool + IsIgnored bool + IsUsed bool