linter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package linter provides linter and formatter commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EslintMessage

type EslintMessage struct {
	RuleId   string `json:"ruleId"`
	Severity int    `json:"severity"`
	Message  string `json:"message"`
	Line     int    `json:"line"`
	Column   int    `json:"column"`
}

type EslintResult

type EslintResult struct {
	FilePath     string          `json:"filePath"`
	Messages     []EslintMessage `json:"messages"`
	ErrorCount   int             `json:"errorCount"`
	WarningCount int             `json:"warningCount"`
}

type MypyError

type MypyError struct {
	File         string
	Line         int
	Code         string
	Message      string
	ContextLines []string
}

type PylintDiagnostic

type PylintDiagnostic struct {
	Type      string `json:"type"`
	Module    string `json:"module"`
	Obj       string `json:"obj"`
	Line      int    `json:"line"`
	Column    int    `json:"column"`
	Path      string `json:"path"`
	Symbol    string `json:"symbol"`
	Message   string `json:"message"`
	MessageId string `json:"message-id"`
}

type RubocopFile

type RubocopFile struct {
	Path     string           `json:"path"`
	Offenses []RubocopOffense `json:"offenses"`
}

type RubocopLocation

type RubocopLocation struct {
	StartLine int `json:"start_line"`
}

type RubocopOffense

type RubocopOffense struct {
	CopName     string          `json:"cop_name"`
	Severity    string          `json:"severity"`
	Message     string          `json:"message"`
	Correctable bool            `json:"correctable"`
	Location    RubocopLocation `json:"location"`
}

type RubocopOutput

type RubocopOutput struct {
	Files   []RubocopFile  `json:"files"`
	Summary RubocopSummary `json:"summary"`
}

type RubocopSummary

type RubocopSummary struct {
	OffenseCount            int `json:"offense_count"`
	InspectedFileCount      int `json:"inspected_file_count"`
	CorrectableOffenseCount int `json:"correctable_offense_count"`
}

type RuffDiagnostic

type RuffDiagnostic struct {
	Code     string       `json:"code"`
	Message  string       `json:"message"`
	Location RuffLocation `json:"location"`
	Filename string       `json:"filename"`
	Fix      *RuffFix     `json:"fix"`
}

type RuffFix

type RuffFix struct {
	Applicability string `json:"applicability"`
}

type RuffLocation

type RuffLocation struct {
	Row    int `json:"row"`
	Column int `json:"column"`
}

Jump to

Keyboard shortcuts

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