go-ruleguard: github.com/quasilyte/go-ruleguard/ruleguard Index | Files | Directories

package ruleguard

import "github.com/quasilyte/go-ruleguard/ruleguard"

Index

Package Files

bool3.go gorule.go node_category.go parser.go ruleguard.go runner.go utils.go

func RunRules Uses

func RunRules(ctx *Context, f *ast.File, rules *GoRuleSet)

type Context Uses

type Context struct {
    Types  *types.Info
    Sizes  types.Sizes
    Fset   *token.FileSet
    Report func(n ast.Node, msg string, s *Suggestion)
    Pkg    *types.Package
}

type GoRuleSet Uses

type GoRuleSet struct {
    // contains filtered or unexported fields
}

func ParseRules Uses

func ParseRules(filename string, fset *token.FileSet, r io.Reader) (*GoRuleSet, error)

type Suggestion Uses

type Suggestion struct {
    From        token.Pos
    To          token.Pos
    Replacement []byte
}

Directories

PathSynopsis
typematch

Package ruleguard imports 14 packages (graph) and is imported by 1 packages. Updated 2020-01-07. Refresh now. Tools for package owners.