package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

FindOffset returns the offset of a given position in a file.
FormatCode is to format code for nogo.
GetPackageName returns the package name used in this file.
MakeFakeLoaderPackageInfo creates a fake loader.PackageInfo for a given package.
ParseDirectives extracts all directives from a list of Go files.
ReadFile reads a file and adds it to the FileSet so that we can report errors against it using lineStart.
SkipAnalyzer updates an analyzer from `staticcheck` and `golangci-linter` to make it work on nogo.
SkipAnalyzerByConfig updates an analyzer to skip files according to `exclude_files`.

# Variables

Directives is a fact that contains a list of directives.

# Structs

Directive is a comment of the form '//lint:<command> [arguments...]' and `//nolint:<command>`.