C001

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

C001

C001 detects incompatible Required and Optional kubebuilder markers.

// +kubebuilder:Optional
// +kubebuilder:Required
Foo string `json:"foo"`

It is undefined that the field Foo will be required or optional.

Documentation

Index

Constants

View Source
const (
	Name = "C001"
	Doc  = "detects incompatible `Required` and `Optional` kubebuilder markers"
)

Variables

This section is empty.

Functions

func NewAnalyzer

func NewAnalyzer() *analysis.Analyzer

Types

type Linter

type Linter struct {
	*b.BaseLinter
}

func (*Linter) LintFile

func (l *Linter) LintFile(file *ast.File) error

Jump to

Keyboard shortcuts

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