Lines Matching full:docs
28 docs: 'stdlib.AnyDocs',
46 f"'{docs.name}' in {docs.path}:\n'{line}'\n")]
53 docs: Union['stdlib.TableViewDocs', 'stdlib.ViewFunctionDocs'],
55 errors = validate_typed_comment(docs.columns, "column", docs)
61 cols_from_sql = docs.data_from_sql["columns"]
63 for line in docs.columns:
72 f"'{docs.name}' in {docs.path}:\n'{line}'\n")
77 f"'{docs.name}' in {docs.path}:\n'{line}'\n")
86 f"'{docs.name}' in {docs.path}:\n'{line}'\n")
92 errors.append(f"Missing columns for {docs.name}\n{docs.path}\n")
100 f"'{docs.name}' in {docs.path}:\n")
106 def validate_args(docs: Union['stdlib.FunctionDocs', 'stdlib.ViewFunctionDocs']
108 if not docs.args:
111 errors = validate_typed_comment(docs.args, "arg", docs)
116 args_from_sql = docs.data_from_sql["args"]
117 for line in docs.args:
124 errors.append("The arg docs formatting is wrong. It should be:\n"
126 f"'{docs.name}' in {docs.path}:\n'{line}'\n")
132 f"'{docs.name}' in {docs.path}:\n'{line}'\n")
138 f"'{arg_type_from_sql}', but according to the docs "
140 f"'{docs.name}' in {docs.path}:\n'{line}'\n")
147 f"'{docs.name}' in {docs.path}\n")
153 def validate_ret(docs: "stdlib.FunctionDocs") -> Errors:
154 errors = validate_typed_comment(docs.ret, "ret", docs)
158 ret_type_from_sql = docs.data_from_sql["ret"]
160 for line in docs.ret:
167 return [("The return docs formatting is wrong. It should be:\n"
169 f"'{docs.name}' in {docs.path}:\n'{line}'\n")]
172 return [(f"The return type in docs is '{docs_ret_type}', "
174 f"'{docs.name}' in {docs.path}:\n'{line}'\n")]