Skip to content

Commit 2581454

Browse files
committed
[build] allow ruby lint command to lint the root Rakefile
1 parent da2589d commit 2581454

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

BUILD.bazel

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ filegroup(
2121
visibility = ["//visibility:public"],
2222
)
2323

24+
filegroup(
25+
name = "rakefile",
26+
srcs = [
27+
"Rakefile",
28+
],
29+
visibility = ["//rb:__subpackages__",],
30+
)
31+
2432
alias(
2533
name = "grid",
2634
actual = "//java/src/org/openqa/selenium/grid:executable-grid",

rb/BUILD.bazel

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,12 @@ rb_test(
178178
"--autocorrect",
179179
"--config=rb/.rubocop.yml",
180180
"rb/",
181+
"Rakefile",
182+
],
183+
data = [
184+
".rubocop.yml",
185+
"//:rakefile",
181186
],
182-
data = [".rubocop.yml"],
183187
main = "@bundle//bin:rubocop",
184188
tags = ["no-sandbox"],
185189
deps = [

0 commit comments

Comments
 (0)