File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,17 +57,14 @@ def _rewrite_needs_json_to_docs_sources(labels):
5757 return out
5858
5959def _rewrite_needs_json_to_sourcelinks (labels ):
60- """Replace '@repo//:needs_json' -> '@repo//:sourcelinks_json' for every item.
61- Note: Else path has been commented out as this prevented inclusion of CPP files
62- for case when fragment of code shall be displayed as literal include.
63- """
60+ """Replace '@repo//:needs_json' -> '@repo//:sourcelinks_json' for every item."""
6461 out = []
6562 for x in labels :
6663 s = str (x )
6764 if s .endswith ("//:needs_json" ):
6865 out .append (s .replace ("//:needs_json" , "//:sourcelinks_json" ))
69- #else:
70- #out.append(s)
66+ #Items which do not end up with '//:needs_json' shall not be appended to 'out'.
67+ #They are treated separately and are not related to source code linking.
7168 return out
7269
7370def _merge_sourcelinks (name , sourcelinks , known_good = None ):
You can’t perform that action at this time.
0 commit comments