Fix linter warnings with new buildifier version. (#349)

This commit is contained in:
Alexandre Rostovtsev 2022-02-10 14:50:56 -05:00 committed by GitHub
parent ecc11f9a4c
commit 1e1c324391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -16,7 +16,7 @@
def _analysis_test_impl(ctx):
"""Implementation function for analysis_test. """
_ignore = [ctx]
_ignore = [ctx] # @unused
return [AnalysisTestResultInfo(
success = True,
message = "All targets succeeded analysis",

View File

@ -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
###################################################

View File

@ -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"),
]