search_query.linter

Query linter hook.

Functions

lint_file(search_file)

Lint a search file and return the messages.

lint_query_string(search_string, *, platform)

Lint a query string and return the messages.

pre_commit_hook(file_path)

Entrypoint for the query linter hook

search_query.linter.lint_file(search_file: SearchFile) dict

Lint a search file and return the messages.

search_query.linter.lint_query_string(search_string: str, *, platform: str, field_general: str = '') dict

Lint a query string and return the messages.

search_query.linter.pre_commit_hook(file_path: str) int

Entrypoint for the query linter hook