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.
Visit parses Starlark files using Buildifier and calls the callback for each parsed file, in parallel.
Collects all errors from all callbacks in a single joint multi-error.
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.
Format returns a detailed reported that can be printed to stderr.
Position indicates a position within a file.
Visitor processes a parsed Starlark file, returning all errors encountered when processing it.