codeclimate

package
v0.0.0-...-062f805 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeClimatePrint

func CodeClimatePrint(issues formatter.JSONOutput)

Types

type CodeClimateConfiguration

type CodeClimateConfiguration struct {
	ExcludePatterns []string `json:"exclude_patterns,omitempty"`
	IncludePaths    []string `json:"include_paths,omitempty"`
}

Model for the CodeClimate configuration that is not TFLint specific

type CodeClimateContent

type CodeClimateContent struct {
	Body string `json:"body"`
}

type CodeClimateIssue

type CodeClimateIssue struct {
	Type           string                `json:"type"`
	CheckName      string                `json:"check_name"`
	Description    string                `json:"description"`
	Content        CodeClimateContent    `json:"content,omitempty"`
	Categories     []string              `json:"categories"`
	Location       CodeClimateLocation   `json:"location"`
	OtherLocations []CodeClimateLocation `json:"other_locations,omitempty"`
	Fingerprint    string                `json:"fingerprint"`
	Severity       string                `json:"severity,omitempty"`
}

CodeClimateIssue is a temporary structure for converting TFLint issues to CodeClimate report format. See specs here: https://github.com/codeclimate/platform/blob/master/spec/analyzers/SPEC.md#data-types We're only mapping the types for which we have data and the required ones

type CodeClimateLocation

type CodeClimateLocation struct {
	Path      string               `json:"path"`
	Positions CodeClimatePositions `json:"positions"`
}

type CodeClimatePosition

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

type CodeClimatePositions

type CodeClimatePositions struct {
	Begin CodeClimatePosition `json:"begin"`
	End   CodeClimatePosition `json:"end,omitempty"`
}

Jump to

Keyboard shortcuts

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