linters

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package linters provides proto file linting with AIP rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Linter

func Linter(c *CliArgs, config LinterConfig, protoImportPaths, protoFiles []string) error

Linter runs the linter on the given proto files.

Types

type CliArgs

type CliArgs struct {
	// FormatType string
	// ProtoImportPaths          []string
	EnabledRules  []string
	DisabledRules []string
	ListRulesFlag bool
	DebugFlag     bool
}

CliArgs holds command line arguments for the linter.

func NewCli

func NewCli() (*CliArgs, typex.Options)

NewCli creates a new CLI arguments instance and options.

type LinterConfig

type LinterConfig struct {
	Rules                     lint.Config `yaml:"rules,omitempty" hash:"-"`
	FormatType                string      `yaml:"format_type"`
	IgnoreCommentDisablesFlag bool        `yaml:"ignore_comment_disables_flag"`
}

LinterConfig holds configuration for the linter.

Jump to

Keyboard shortcuts

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