clangtidy

package
v0.0.0-...-6b3ebeb Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Referenced from https://github.com/yuriisk/clang-tidy-converter/blob/master/clang_tidy_converter/parser/clang_tidy_parser.py

Referenced from https://github.com/yuriisk/clang-tidy-converter/blob/master/clang_tidy_converter/parser/clang_tidy_parser.py

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResult

func GetResult(jsonMessages []JsonMessage, conf Conf) (int, string)

func Parse

func Parse(executorResult stage.ExecutorResult, conf Conf) stage.ParserResult

Types

type ClangMessage

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

func ParseLines

func ParseLines(lines []string, conf Conf) []ClangMessage

type ClangTidy

type ClangTidy struct{}

func (*ClangTidy) Run

func (*ClangTidy) Run(results []stage.ExecutorResult, confAny any) (
	[]stage.ParserResult, bool, error,
)

type Conf

type Conf struct {
	Score             int
	RootDir           string `default:"/w"`
	Matches           []Match
	Stdout            string `default:"stdout"`
	Stderr            string `default:"stderr"`
	ForceQuitOnDeduct bool   `default:"false"`
}

type JsonMessage

type JsonMessage struct {
	Type        string                 `json:"type"`
	CheckName   string                 `json:"checkname"`
	Description string                 `json:"description"`
	Content     map[string]interface{} `json:"content"`
	Categories  []string               `json:"categories"`
	Location    map[string]interface{} `json:"location"`
	Trace       map[string]interface{} `json:"trace"`
	Severity    string                 `json:"severity"`
}

func Format

func Format(messages []ClangMessage) []JsonMessage

type Level

type Level int
const (
	UNKNOWN Level = iota
	NOTE
	REMARK
	WARNING
	ERROR
	FATAL
)

type Match

type Match struct {
	Keywords []string
	Score    int
}

Jump to

Keyboard shortcuts

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