Skip to content

Commit

Permalink
apply buildifier default changes
Browse files Browse the repository at this point in the history
  • Loading branch information
albertocavalcante committed Aug 1, 2024
1 parent 2f51fa4 commit a0e5b55
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 52 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")

http_archive(
name = "rules_java",
sha256 = "a1f82b730b9c6395d3653032bd7e3a660f9d5ddb1099f427c1e1fe768f92e395",
urls = [
"https://github.com/bazelbuild/rules_java/releases/download/5.4.1/rules_java-5.4.1.tar.gz",
],
sha256 = "a1f82b730b9c6395d3653032bd7e3a660f9d5ddb1099f427c1e1fe768f92e395",
)

load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
Expand Down
6 changes: 3 additions & 3 deletions antlr/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package(default_visibility = ["//visibility:public"])

load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc")

package(default_visibility = ["//visibility:public"])

filegroup(
name = "srcs",
Expand Down
2 changes: 1 addition & 1 deletion examples/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ local_repository(

http_archive(
name = "platforms",
sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
],
sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee",
)

http_archive(
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr2/Calc/src/main/antlr2/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr2.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr2.bzl", "antlr")

antlr(
name = "generated",
srcs = ["calc.g"],
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr2/InheritTinyC/src/main/antlr2/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr2.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr2.bzl", "antlr")

antlr(
name = "generated",
srcs = ["subc.g"],
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr2/TinyC/src/main/antlr2/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr2.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr2.bzl", "antlr")

filegroup(
name = "srcs",
srcs = [
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr3/DetectLanguage/src/main/antlr3/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr3.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr3.bzl", "antlr")

antlr(
name = "csharp",
srcs = ["T.g"],
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr3/InheritLibFolder/src/main/antlr3/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr3.bzl", "antlr", "imports")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr3.bzl", "antlr", "imports")

antlr(
name = "generated",
srcs = ["Simple.g"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr3.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr3.bzl", "antlr")

antlr(
name = "generated",
srcs = glob(["*.g"]),
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr3/Java/src/main/antlr3/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr3.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr3.bzl", "antlr")

antlr(
name = "generated",
srcs = ["SimpleC.g"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr3.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr3.bzl", "antlr")

antlr(
name = "generated",
srcs = ["SimpleC.g"],
Expand Down
1 change: 0 additions & 1 deletion examples/antlr3/ObjC/src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ antlr(
srcs = glob(["SimpleC.g"]),
language = "ObjC",
)

2 changes: 1 addition & 1 deletion examples/antlr3/Python2/src/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
load("@rules_antlr//antlr:antlr3.bzl", "antlr")
load("@rules_python//python:defs.bzl", "py_binary", "py_library")

antlr(
name = "generated",
Expand Down
2 changes: 1 addition & 1 deletion examples/antlr3/Python3/src/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
load("@rules_antlr//antlr:antlr3.bzl", "antlr")
load("@rules_python//python:defs.bzl", "py_binary", "py_library")

antlr(
name = "generated",
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr4-opt/Hello/src/main/antlr4/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = ["Hello.g4"],
Expand Down
2 changes: 1 addition & 1 deletion examples/antlr4/Cpp/src/antlr4/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_cc//cc:defs.bzl", "cc_library")

antlr(
name = "generated",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = ["Hello.g4"],
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr4/DetectLanguage/src/main/antlr4/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "cpp",
srcs = glob(["cpp/*.g4"]),
Expand Down
2 changes: 1 addition & 1 deletion examples/antlr4/Go/src/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr4/InheritLibFolder/src/main/antlr4/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr", "imports")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr", "imports")

antlr(
name = "generated",
srcs = glob(["*.g4"]),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = glob(["*.g4"]),
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr4/Java/src/main/antlr4/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = ["Hello.g4"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "cpp",
srcs = glob(["**/*.g4"]),
Expand Down
3 changes: 1 addition & 2 deletions examples/antlr4/LanguageByOption/src/main/antlr4/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = ["Hello.g4"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = ["Hello.g4"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = ["Hello.g4"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = ["Hello.g4"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_antlr//antlr:antlr4.bzl", "antlr")
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("@rules_antlr//antlr:antlr4.bzl", "antlr")

antlr(
name = "generated",
srcs = ["Hello.g4"],
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/org/antlr/bazel/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
load("@rules_java//java:defs.bzl", "java_library")
load("//tools:gen_test_rules.bzl", "java_tests")

package(default_visibility = ["//visibility:public"])

load("//tools:gen_test_rules.bzl", "java_tests")

java_library(
name = "tests",
srcs = glob(["*.java"]),
Expand Down

0 comments on commit a0e5b55

Please sign in to comment.