Bazel: Automatically fix lint errors with buildifier
In recent buildifier versions, lint errors can be fixed automatically:
$ find . \( -name BUILD -o -name "*.bzl" \) -print \
| xargs buildifier --lint=fix
This commit was created with Buildifier version 0.19.2:
$ buildifier --version
buildifier version: 0.19.2
buildifier scm revision: d39e4d5c25111527369142f16cdb49aa67707313
Change-Id: I1f06cd4596e794981ccc2d9fc2d1da9b17f3973a
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
load("//tools/bzl:genrule2.bzl", "genrule2")
|
||||
|
||||
# Source Code Pro. Version 2.010 Roman / 1.030 Italics
|
||||
# https://github.com/adobe-fonts/source-code-pro/releases/tag/2.010R-ro%2F1.030R-it
|
||||
filegroup(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("//tools/bzl:maven_jar.bzl", "GERRIT", "MAVEN_CENTRAL", "MAVEN_LOCAL", "maven_jar")
|
||||
load("//tools/bzl:maven_jar.bzl", "MAVEN_CENTRAL", "maven_jar")
|
||||
|
||||
_JGIT_VERS = "4.7.6.201810191618-r"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
load("//lib/js:bower_components.bzl", "define_bower_components")
|
||||
load("//tools/bzl:js.bzl", "js_component")
|
||||
|
||||
load("//tools/bzl:js.bzl", "bower_component", "js_component")
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# For importing new versions of existing bower packages,
|
||||
#
|
||||
@@ -20,8 +21,6 @@ load("//tools/bzl:js.bzl", "bower_component", "js_component")
|
||||
# 4) remove bower_component(name="my_new_dependency", .. ) here
|
||||
#
|
||||
|
||||
load("//lib/js:bower_components.bzl", "define_bower_components")
|
||||
|
||||
define_bower_components()
|
||||
|
||||
js_component(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load("//tools/bzl:maven.bzl", "merge_maven_jars")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# core and backward-codecs both provide
|
||||
# META-INF/services/org.apache.lucene.codecs.Codec, so they must be merged.
|
||||
merge_maven_jars(
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
closure_js_library(
|
||||
name = "polymer_closure",
|
||||
srcs = ["@polymer_closure//file"],
|
||||
|
||||
Reference in New Issue
Block a user