blob: bf758b18dc7471337d225b95344ca0e56f2db343 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
A test that verifies basic user function documentation.
<a id="check_sources"></a>
## check_sources
<pre>
check_sources(<a href="#check_sources-name">name</a>, <a href="#check_sources-required_param">required_param</a>, <a href="#check_sources-bool_param">bool_param</a>, <a href="#check_sources-srcs">srcs</a>, <a href="#check_sources-string_param">string_param</a>, <a href="#check_sources-int_param">int_param</a>, <a href="#check_sources-dict_param">dict_param</a>,
<a href="#check_sources-struct_param">struct_param</a>)
</pre>
Runs some checks on the given source files.
This rule runs checks on a given set of source files.
Use `bazel build` to run the check.
**PARAMETERS**
| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="check_sources-name"></a>name | A unique name for this rule. | none |
| <a id="check_sources-required_param"></a>required_param | Use your imagination. | none |
| <a id="check_sources-bool_param"></a>bool_param | <p align="center"> - </p> | `True` |
| <a id="check_sources-srcs"></a>srcs | Source files to run the checks against. | `[]` |
| <a id="check_sources-string_param"></a>string_param | <p align="center"> - </p> | `""` |
| <a id="check_sources-int_param"></a>int_param | Your favorite number. | `2` |
| <a id="check_sources-dict_param"></a>dict_param | <p align="center"> - </p> | `{}` |
| <a id="check_sources-struct_param"></a>struct_param | <p align="center"> - </p> | `struct(foo = "bar")` |
<a id="deprecated_do_not_use"></a>
## deprecated_do_not_use
<pre>
deprecated_do_not_use()
</pre>
This function is deprecated.
**DEPRECATED**
Use literally anything but this function.
<a id="param_doc_multiline"></a>
## param_doc_multiline
<pre>
param_doc_multiline(<a href="#param_doc_multiline-complex">complex</a>)
</pre>
Has a complex parameter.
**PARAMETERS**
| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="param_doc_multiline-complex"></a>complex | A parameter with some non-obvious behavior.<br><br> For example, it does things that require **multiple paragraphs** to explain.<br><br>Note: we should preserve the nested indent in the following code:<br><br><pre><code class="language-json">{ "key": "value" }</code></pre> | none |
<a id="returns_a_thing"></a>
## returns_a_thing
<pre>
returns_a_thing(<a href="#returns_a_thing-name">name</a>)
</pre>
Returns a suffixed name.
**PARAMETERS**
| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="returns_a_thing-name"></a>name | A unique name for this rule. | none |
**RETURNS**
A suffixed version of the name.
<a id="undocumented_function"></a>
## undocumented_function
<pre>
undocumented_function(<a href="#undocumented_function-a">a</a>, <a href="#undocumented_function-b">b</a>, <a href="#undocumented_function-c">c</a>)
</pre>
**PARAMETERS**
| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="undocumented_function-a"></a>a | <p align="center"> - </p> | none |
| <a id="undocumented_function-b"></a>b | <p align="center"> - </p> | none |
| <a id="undocumented_function-c"></a>c | <p align="center"> - </p> | none |
|