engine

package
v0.0.0-...-55f9c82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2016 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoFileWalk

func GoFileWalk(rootPath string, includePaths []string) (fileList []string, err error)

func IncludePaths

func IncludePaths(rootPath string, config map[string]interface{}) []string

func LoadConfig

func LoadConfig() (config map[string]interface{}, err error)

func PrintIssue

func PrintIssue(issue *Issue) (err error)

func PrintWarning

func PrintWarning(warning *Warning) (err error)

Types

type Config

type Config map[string]interface{}

type Issue

type Issue struct {
	Type              string    `json:"type"`
	Check             string    `json:"check_name"`
	Description       string    `json:"description"`
	RemediationPoints int32     `json:"remediation_points"`
	Location          *Location `json:"location"`
	Categories        []string  `json:"categories"`
}

type LineColumn

type LineColumn struct {
	Line   int `json:"line,omitempty"`
	Column int `json:"column,omitempty"`
}

type LineColumnPosition

type LineColumnPosition struct {
	Begin *LineColumn `json:"begin,omitempty"`
	End   *LineColumn `json:"end,omitempty"`
}

type LinesOnlyPosition

type LinesOnlyPosition struct {
	Begin int `json:"begin,omitempty"`
	End   int `json:"end,omitempty"`
}

type Location

type Location struct {
	Path      string              `json:"path"`
	Lines     *LinesOnlyPosition  `json:"lines,omitempty"`
	Positions *LineColumnPosition `json:"positions,omitempty"`
}

type Warning

type Warning struct {
	Type        string    `json:"type"`
	Description string    `json:"description"`
	Location    *Location `json:"location"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL