Skip to content

Commit

Permalink
[Build] Run buildifier over the project & clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Jul 20, 2020
1 parent 5347266 commit c14a537
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion common/devtools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports_files(
],
visibility = [
"//java/client/src/org/openqa/selenium/devtools:__pkg__",
"//javascript/node/selenium-webdriver:__pkg__",
"//py:__pkg__",
"//javascript/node/selenium-webdriver:__pkg__"
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ java_library(
"//java/client/src/org/openqa/selenium/remote/http",
artifact("io.opentelemetry:opentelemetry-api"),
artifact("io.opentelemetry:opentelemetry-context-prop"),
artifact("io.netty:netty-codec-http")
artifact("io.netty:netty-codec-http"),
],
)
4 changes: 2 additions & 2 deletions java/server/src/org/openqa/selenium/redis/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ java_library(
"//java/server/test/org/openqa/selenium:__subpackages__",
],
deps = [
artifact("io.lettuce:lettuce-core"),
],
artifact("io.lettuce:lettuce-core"),
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ java_test_suite(
java_test_suite(
name = "medium-tests",
size = "medium",
srcs = glob(["*.java"], exclude = SMALL_TEST_SRCS),
srcs = glob(
["*.java"],
exclude = SMALL_TEST_SRCS,
),
deps = [
"//java/client/src/org/openqa/selenium:core",
"//java/client/src/org/openqa/selenium/remote/http",
Expand Down
26 changes: 13 additions & 13 deletions javascript/node/selenium-webdriver/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SRC_FILES = [
"net/*.js",
"remote/*.js",
"testing/*.js",
"devtools/*.js"
"devtools/*.js",
])

pkg_npm(
Expand Down Expand Up @@ -94,11 +94,11 @@ genrule(

nodejs_binary(
name = "cdp-srcs-generator",
entry_point = "devtools/generator/protocol-dts-generator.js",
data = [
":browser_protocol",
":js_protocol"
":browser_protocol",
":js_protocol",
],
entry_point = "devtools/generator/protocol-dts-generator.js",
)

copy_file(
Expand All @@ -114,18 +114,18 @@ copy_file(
)

genrule(
name="create-cdp-srcs",
name = "create-cdp-srcs",
srcs = [
":browser_protocol",
":js_protocol",
":browser_protocol",
":js_protocol",
],
outs=[
"devtools/generator/protocol.d.js",
"devtools/generator/protocol-mapping.d.js",
"devtools/generator/protocol-proxy-api.d.js",
outs = [
"devtools/generator/protocol.d.js",
"devtools/generator/protocol-mapping.d.js",
"devtools/generator/protocol-proxy-api.d.js",
],
cmd = "$(location :cdp-srcs-generator) $(location :browser_protocol) $(location :js_protocol) $(OUTS)",
tools=[
":cdp-srcs-generator"
tools = [
":cdp-srcs-generator",
],
)

0 comments on commit c14a537

Please sign in to comment.