1"""A test that verifies basic user function documentation.""" 2 3def check_sources( 4 name, 5 required_param, 6 bool_param = True, 7 srcs = [], 8 string_param = "", 9 int_param = 2, 10 dict_param = {}, 11 struct_param = struct(foo = "bar")): 12 # buildifier: disable=function-docstring-args 13 """Runs some checks on the given source files. 14 15 This rule runs checks on a given set of source files. 16 Use `bazel build` to run the check. 17 18 Args: 19 name: A unique name for this rule. 20 required_param: Use your imagination. 21 srcs: Source files to run the checks against. 22 doesnt_exist: A param that doesn't exist (lets hope we still get *some* documentation) 23 int_param: Your favorite number. 24 """ 25 _ignore = [ 26 name, 27 required_param, 28 bool_param, 29 srcs, 30 string_param, 31 int_param, 32 dict_param, 33 struct_param, 34 ] 35 x = ("Hah. All that documentation but nothing really to see here") 36 37def undocumented_function(a, b, c): 38 pass 39