Address lint errors (#254)

This commit is contained in:
Andrew Z Allen 2020-06-19 11:49:52 -06:00 committed by GitHub
parent 560d7b2359
commit 3b666f525d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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