Address lint errors (#254)
This commit is contained in:
parent
560d7b2359
commit
3b666f525d
|
@ -23,6 +23,7 @@ load(":new_sets.bzl", new_sets = "sets")
|
|||
load(":types.bzl", "types")
|
||||
|
||||
# The following function should only be called from WORKSPACE files and workspace macros.
|
||||
# buildifier: disable=unnamed-macro
|
||||
def register_unittest_toolchains():
|
||||
"""Registers the toolchains for unittest users."""
|
||||
native.register_toolchains(
|
||||
|
@ -282,7 +283,7 @@ def _begin(ctx):
|
|||
test.
|
||||
|
||||
Args:
|
||||
ctx: The Skylark context. Pass the implementation function's `ctx` argument
|
||||
ctx: The Starlark context. Pass the implementation function's `ctx` argument
|
||||
in verbatim.
|
||||
|
||||
Returns:
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
load("//rules:build_test.bzl", "build_test")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
|
||||
# buildifier: disable=unnamed-macro
|
||||
def build_test_test_suite():
|
||||
# Since the rules doesn't do anything really, it just makes some targets
|
||||
# to get Bazel to build other targets via a `bazel test`, just make some
|
||||
|
|
|
@ -607,6 +607,7 @@ def _always_true_match_any_test():
|
|||
|
||||
###################################################
|
||||
|
||||
# buildifier: disable=unnamed-macro
|
||||
def selects_test_suite():
|
||||
"""Creates the test targets and test suite for selects.bzl tests."""
|
||||
unittest.suite(
|
||||
|
|
|
@ -223,6 +223,7 @@ inspect_output_dirs_test = analysistest.make(
|
|||
|
||||
#########################################
|
||||
|
||||
# buildifier: disable=unnamed-macro
|
||||
def unittest_passing_tests_suite():
|
||||
"""Creates the test targets and test suite for passing unittest.bzl tests.
|
||||
|
||||
|
|
Loading…
Reference in New Issue