nolint

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages nolint scopes and checks if a position is nolinted.

func ParseComments

func ParseComments(f *ast.File, fset *token.FileSet) *Manager

ParseComments parses nolint comments in the given AST file and returns a nolintManager.

func (*Manager) IsNolint

func (m *Manager) IsNolint(pos token.Position, ruleName string) bool

IsNolint checks if a given position and rule are nolinted.

Jump to

Keyboard shortcuts

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