1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ """
16+ Macros wrapping executable, library, and test targets that generate linter
17+ invocation targets.
18+ """
19+
1520load ("@aspect_rules_lint//format:defs.bzl" , "format_test" )
1621load ("@cc_compatibility_proxy//:proxy.bzl" , "cc_binary" , "cc_library" , "cc_test" )
1722load ("@rules_shell//shell:sh_binary.bzl" , "sh_binary" )
@@ -33,7 +38,7 @@ def _cf_build_test_implementation(name, srcs, **kwargs):
3338 buildifier_test (
3439 name = name + "_LINT_TEST" ,
3540 srcs = [":" + name + "_LINT_TEST_starlark_files" ],
36- ** kwargs ,
41+ ** kwargs
3742 )
3843
3944cf_build_test = macro (
@@ -42,7 +47,7 @@ cf_build_test = macro(
4247 "srcs" : attr .label_list (
4348 configurable = False ,
4449 default = [],
45- )
50+ ),
4651 },
4752 implementation = _cf_build_test_implementation ,
4853)
@@ -54,7 +59,7 @@ def _cf_cc_binary_implementation(name, clang_format_enabled, clang_tidy_enabled,
5459 name = name ,
5560 copts = (copts or []) + COPTS ,
5661 linkopts = (linkopts or []) + LINKOPTS ,
57- ** kwargs ,
62+ ** kwargs
5863 )
5964 if clang_format_enabled :
6065 format_test (
@@ -89,7 +94,7 @@ def _cf_cc_library_implementation(name, clang_format_enabled, clang_tidy_enabled
8994 cc_library (
9095 name = name ,
9196 copts = (copts or []) + COPTS ,
92- ** kwargs ,
97+ ** kwargs
9398 )
9499 if clang_format_enabled :
95100 format_test (
@@ -127,7 +132,7 @@ def _cf_cc_test_implementation(name, clang_format_enabled, clang_tidy_enabled, c
127132 "@googletest//:gtest" ,
128133 "@googletest//:gtest_main" ,
129134 ],
130- ** kwargs ,
135+ ** kwargs
131136 )
132137 if clang_format_enabled :
133138 format_test (
@@ -159,7 +164,7 @@ cf_cc_test = macro(
159164def _cf_sh_binary_implementation (name , shellcheck_enabled , ** kwargs ):
160165 sh_binary (
161166 name = name ,
162- ** kwargs ,
167+ ** kwargs
163168 )
164169 if shellcheck_enabled :
165170 shellcheck_test (
@@ -180,7 +185,7 @@ cf_sh_binary = macro(
180185def _cf_sh_library_implementation (name , shellcheck_enabled , ** kwargs ):
181186 sh_library (
182187 name = name ,
183- ** kwargs ,
188+ ** kwargs
184189 )
185190 if shellcheck_enabled :
186191 shellcheck_test (
0 commit comments