pass

package
v0.2.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package pass useful functionality for implementing passes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindContainingFile

func FindContainingFile(pass *analysis.Pass, n ast.Node) *ast.File

FindContainingFile finds the file for an ast Node in a Pass.

func HasNolintComment

func HasNolintComment(pass *analysis.Pass, n ast.Node, nolintName string) bool

HasNolintComment returns true if the comments on the passed node have the comment "nolint:<nolintName>" appearing anywhere in it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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