Documentation ¶
Overview ¶
Package bazel implements the main logic of the analysis for Bazel-related files. It currently supports auto-approval of changes to BUILD.bazel files which involve comments, formatting, test-related directives, and removal (but not modification or addition) of dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct { // analyzableFileName represents file name of analyzable files (it // is made configurable for testing purposes, as test files have // different names than prod files). AnalyzableFileName string // contains filtered or unexported fields }
Analyzer is an analyzer for Bazel files.
func (*Analyzer) BaseIRBuild ¶
BaseIRBuild builds intermediate representation for relevant files in the base diff.
func (*Analyzer) ChangesEq ¶
ChangesEq returns true if the changes between Bazel files in base and last diffs are equivalent.
func (*Analyzer) IsAnalyzable ¶
IsAnalyzable determines if a given file name represents file analyzable by this analyzer.
Click to show internal directories.
Click to hide internal directories.