package
8.0.3+incompatible
Repository: https://github.com/bazelbuild/buildtools.git
Documentation: pkg.go.dev

# Packages

Documentation generator.

# Functions

DetectTypes tries to infer the type of expressions in the current file, using basic heuristics.
DisabledWarning checks if the warning was disabled by a comment.
FileWarnings returns a list of all warnings found in the file.
FixWarnings fixes all warnings that can be fixed automatically.
HasDisablingComment checks if a node has a comment that disables a certain warning.
NativeCcRulesWarning produces a warning for missing loads of cc rules.
NativeCcSymbolsWarning produces a warning for missing loads of cc top-level symbols.
NativeCcToolchainRulesWarning produces a warning for missing loads of cc toolchain rules.
NativeJavaRulesWarning produces a warning for missing loads of java rules.
NativeJavaSymbolsWarning produces a warning for missing loads of java top-level symbols.
NativeJavaToolchainRulesWarning produces a warning for missing loads of java toolchain rules.
NativeProtoRulesWarning produces a warning for missing loads of proto rules.
NativeShellRulesWarning produces a warning for missing loads of shell rules.
NewFileReader creates and initializes a FileReader instance with a custom readFile function that can read an arbitrary file in the repository using a path relative to the workspace root (OS-independent, with forward slashes).
NotLoadedFunctionUsageCheck checks whether there's a usage of a given not imported function in the file and adds a load statement if necessary.
NotLoadedSymbolUsageCheck checks whether there's a usage of a given not imported function in the file and adds a load statement if necessary.

# Constants

List of known types.
List of known types.
List of known types.
List of known types.
List of known types.
List of known types.
List of known types.
FunctionLengthDocstringThreshold is a limit for a function size (in statements), above which a public function is required to have a docstring.
List of known types.
List of known types.
ModeFix means that all warnings that can be fixed automatically should be fixed and no warnings should be returned for them.
ModeSuggest means that automatic fixes shouldn't be applied, but instead corresponding suggestions should be attached to all warnings that can be fixed automatically.
ModeWarn means only warnings should be returned for each finding.
List of known types.
List of known types.
List of known types.

# Variables

AllWarnings is the list of all available warnings.
DefaultWarnings is the list of all warnings that should be used inside google3.
FileWarningMap lists the warnings that run on the whole file.
MultiFileWarningMap lists the warnings that run on the whole file, but may use other files.
RuleWarningMap lists the warnings that run on a single rule.

# Structs

FileReader is a class that can read an arbitrary Starlark file from the repository and cache the results.
A Finding is a warning reported by the analyzer.
LinterFinding is a low-level warning reported by single linter/fixer functions.
LinterReplacement is a low-level object returned by single fixer functions.
A Replacement is a suggested fix.

# Type aliases

LintMode is an enum representing a linter mode.
Type describes an expression type in Starlark.