aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <arostovtsev@google.com>2022-02-10 14:50:56 -0500
committerGitHub <noreply@github.com>2022-02-10 14:50:56 -0500
commit1e1c324391d81b3c768e4a11e50106929953f348 (patch)
tree62c72e30cb104768560dcc7e3ed4a6a8a104a1b8 /tests
parentecc11f9a4c06400d4797e7132e71fe8702490cf0 (diff)
downloadbazel-skylib-1e1c324391d81b3c768e4a11e50106929953f348.tar.gz
Fix linter warnings with new buildifier version. (#349)
Diffstat (limited to 'tests')
-rw-r--r--tests/selects_tests.bzl3
-rw-r--r--tests/unittest_tests.bzl5
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/selects_tests.bzl b/tests/selects_tests.bzl
index 7a980e6..a7697f2 100644
--- a/tests/selects_tests.bzl
+++ b/tests/selects_tests.bzl
@@ -156,9 +156,6 @@ def _expect_doesnt_match(ctx):
asserts.equals(env, False, attrval)
return analysistest.end(env)
-def _config_setting_group_test(name, config_settings):
- return analysistest.make()
-
###################################################
# and_config_setting_group_matches_test
###################################################
diff --git a/tests/unittest_tests.bzl b/tests/unittest_tests.bzl
index 5541d74..47dcee0 100644
--- a/tests/unittest_tests.bzl
+++ b/tests/unittest_tests.bzl
@@ -122,7 +122,7 @@ def _failure_testing_test(ctx):
return analysistest.end(env)
def _failure_testing_fake_rule(ctx):
- _ignore = [ctx]
+ _ignore = [ctx] # @unused
fail("This rule should never work")
failure_testing_fake_rule = rule(
@@ -146,7 +146,7 @@ def _fail_unexpected_passing_test(ctx):
return analysistest.end(env)
def _fail_unexpected_passing_fake_rule(ctx):
- _ignore = [ctx]
+ _ignore = [ctx] # @unused
return []
fail_unexpected_passing_fake_rule = rule(
@@ -227,6 +227,7 @@ _AddedByAspectInfo = provider(
)
def _example_aspect_impl(target, ctx):
+ _ignore = [target, ctx] # @unused
return [
_AddedByAspectInfo(value = "attached by aspect"),
]