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):
|
def _analysis_test_impl(ctx):
|
||||||
"""Implementation function for analysis_test. """
|
"""Implementation function for analysis_test. """
|
||||||
_ignore = [ctx]
|
_ignore = [ctx] # @unused
|
||||||
return [AnalysisTestResultInfo(
|
return [AnalysisTestResultInfo(
|
||||||
success = True,
|
success = True,
|
||||||
message = "All targets succeeded analysis",
|
message = "All targets succeeded analysis",
|
||||||
|
|
|
@ -156,9 +156,6 @@ def _expect_doesnt_match(ctx):
|
||||||
asserts.equals(env, False, attrval)
|
asserts.equals(env, False, attrval)
|
||||||
return analysistest.end(env)
|
return analysistest.end(env)
|
||||||
|
|
||||||
def _config_setting_group_test(name, config_settings):
|
|
||||||
return analysistest.make()
|
|
||||||
|
|
||||||
###################################################
|
###################################################
|
||||||
# and_config_setting_group_matches_test
|
# and_config_setting_group_matches_test
|
||||||
###################################################
|
###################################################
|
||||||
|
|
|
@ -122,7 +122,7 @@ def _failure_testing_test(ctx):
|
||||||
return analysistest.end(env)
|
return analysistest.end(env)
|
||||||
|
|
||||||
def _failure_testing_fake_rule(ctx):
|
def _failure_testing_fake_rule(ctx):
|
||||||
_ignore = [ctx]
|
_ignore = [ctx] # @unused
|
||||||
fail("This rule should never work")
|
fail("This rule should never work")
|
||||||
|
|
||||||
failure_testing_fake_rule = rule(
|
failure_testing_fake_rule = rule(
|
||||||
|
@ -146,7 +146,7 @@ def _fail_unexpected_passing_test(ctx):
|
||||||
return analysistest.end(env)
|
return analysistest.end(env)
|
||||||
|
|
||||||
def _fail_unexpected_passing_fake_rule(ctx):
|
def _fail_unexpected_passing_fake_rule(ctx):
|
||||||
_ignore = [ctx]
|
_ignore = [ctx] # @unused
|
||||||
return []
|
return []
|
||||||
|
|
||||||
fail_unexpected_passing_fake_rule = rule(
|
fail_unexpected_passing_fake_rule = rule(
|
||||||
|
@ -227,6 +227,7 @@ _AddedByAspectInfo = provider(
|
||||||
)
|
)
|
||||||
|
|
||||||
def _example_aspect_impl(target, ctx):
|
def _example_aspect_impl(target, ctx):
|
||||||
|
_ignore = [target, ctx] # @unused
|
||||||
return [
|
return [
|
||||||
_AddedByAspectInfo(value = "attached by aspect"),
|
_AddedByAspectInfo(value = "attached by aspect"),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue