Package buildifier implements processing of Starlark files via buildifier.
Buildifier is primarily intended for Bazel files. We try to disable as much of Bazel-specific logic as possible, keeping only generally useful Starlark rules.
- func Visit(loader interpreter.Loader, paths string, v Visitor) errors.MultiError
- type Finding
- type Position
- type Visitor
Finding is information about one linting or formatting error.
Implements error interface. Non-actionable findings are assumed to be non-blocking errors.
Lint appliers linting and formatting checks to the given files.
Returns all findings and a non-nil error (usually a MultiError) if some findings are blocking.
Error returns a short summary of the finding.
Position indicates a position within a file.