parseLintReport

package
v0.0.0-...-cfc8201 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeTeamCityString

func EscapeTeamCityString(str string) string

func ParseReport

func ParseReport(jsonFilePath string) error

func WriteTeamCityMsg

func WriteTeamCityMsg(w io.Writer, str string) error

Types

type LinterJson

type LinterJson struct {
	Violators []Violator `json:"Violators"`
}

type Violation

type Violation struct {
	RuleGroup             string `json:"RuleGroup"`
	RuleTitle             string `json:"RuleTitle"`
	RuleDesc              string `json:"RuleDesc"`
	RuleSeverity          int    `json:"RuleSeverity"`
	RuleRecommendedAction string `json:"RuleRecommendedAction"`
}

type Violator

type Violator struct {
	ViolatorAssetName string      `json:"ViolatorAssetName"`
	ViolatorAssetPath string      `json:"ViolatorAssetPath"`
	ViolatorFullName  string      `json:"ViolatorFullName"`
	Violations        []Violation `json:"Violations"`
}

Jump to

Keyboard shortcuts

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