aboutsummaryrefslogtreecommitdiff
path: root/test/testdata/angle_bracket_test/input.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/angle_bracket_test/input.bzl')
-rw-r--r--test/testdata/angle_bracket_test/input.bzl38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/testdata/angle_bracket_test/input.bzl b/test/testdata/angle_bracket_test/input.bzl
new file mode 100644
index 0000000..0f3a45c
--- /dev/null
+++ b/test/testdata/angle_bracket_test/input.bzl
@@ -0,0 +1,38 @@
+"""Input file to test angle bracket bug (https://github.com/bazelbuild/skydoc/issues/186)"""
+
+def bracket_function(name):
+ """Dummy docstring with <brackets>.
+
+ This rule runs checks on <angle brackets>.
+
+ Args:
+ name: an arg with **formatted** docstring.
+
+ Returns:
+ some <angled> brackets
+
+ """
+ pass
+
+bracketuse = provider(
+ doc = "Information with <brackets>",
+ fields = {
+ "foo": "A string representing <foo>",
+ "bar": "A string representing bar",
+ "baz": "A string representing baz",
+ },
+)
+
+def _rule_impl(ctx):
+ return []
+
+my_anglebrac = rule(
+ implementation = _rule_impl,
+ doc = "Rule with <brackets>",
+ attrs = {
+ "useless": attr.string(
+ doc = "Args with some tags: <tag1>, <tag2>",
+ default = "Find <brackets>",
+ ),
+ },
+)