Fix linter warnings with new buildifier version. (#349)
This commit is contained in:
parent
ecc11f9a4c
commit
1e1c324391
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
###################################################
|
||||
|
|
|
@ -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"),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue