You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/dev_docs/linter_development.rst
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,8 @@ Use the appropriate base class when developing a new linter:
13
13
- `QueryStringLinter`: for single query strings
14
14
- `QueryListLinter`: for list-based query formats
15
15
16
-
Each linter must override the `validate_tokens()` method and optionally `validate_query_tree()` for deeper semantic checks.
16
+
Each linter must override the `validate_tokens()` method and the `validate_query_tree()`.
17
+
`validate_tokens()` is called when the query is parsed, and `validate_query_tree()` is called when the query tree is built (i.e., at the end of the parsing process **and** when the query is constructed programmatically).
0 commit comments