Documentation ¶
Overview ¶
Package shipshape provides the basic types and base functions for parsing config, running checks as well as the file & yaml checks.
Index ¶
- Variables
- func FetchConfigData(files []string) ([][]byte, error)
- func Init(projectDir string, configFiles []string, checkTypesToRun []string, ...) error
- func JUnit(w *bufio.Writer)
- func ParseConfigData(configData [][]byte) error
- func ProcessCheck(rl *result.ResultList, c config.Check)
- func ReadAndParseConfig(projectDir string, files []string) error
- func RunChecks()
- func SimpleDisplay(w *bufio.Writer)
- func TableDisplay(w *tabwriter.Writer)
- type JUnitError
- type JUnitTestCase
- type JUnitTestSuite
- type JUnitTestSuites
Constants ¶
This section is empty.
Variables ¶
View Source
var OutputFormats = []string{"json", "junit", "simple", "table"}
View Source
var RunConfig config.Config
View Source
var RunResultList result.ResultList
Functions ¶
func FetchConfigData ¶ added in v0.2.0
func ParseConfigData ¶ added in v0.2.0
func ProcessCheck ¶ added in v0.2.0
func ProcessCheck(rl *result.ResultList, c config.Check)
func ReadAndParseConfig ¶
func SimpleDisplay ¶ added in v0.2.0
SimpleDisplay outputs only failures to the writer.
func TableDisplay ¶ added in v0.2.0
TableDisplay generates the tabular output for the ResultList.
Types ¶
type JUnitError ¶
type JUnitTestCase ¶
type JUnitTestCase struct { XMLName xml.Name `xml:"testcase"` Name string `xml:"name,attr"` ClassName string `xml:"classname,attr"` Errors []JUnitError }
type JUnitTestSuite ¶
type JUnitTestSuites ¶
type JUnitTestSuites struct { XMLName xml.Name `xml:"testsuites"` Tests uint32 `xml:"tests,attr"` Errors uint32 `xml:"errors,attr"` TestSuites []JUnitTestSuite }
JUnit format taken from https://llg.cubic.org/docs/junit/.
Click to show internal directories.
Click to hide internal directories.