MCPcopy Create free account

hub / github.com/sqlfluff/sqlfluff / functions

Functions2,340 in github.com/sqlfluff/sqlfluff

Method__len__
(self)
src/sqlfluff/cli/helpers.py:97
Method__lt__
(self, other: "PositionMarker")
src/sqlfluff/core/parser/markers.py:58
Method__missing__
(self, key: str)
src/sqlfluff/core/templaters/python.py:302
Method__missing__
(self, key: str)
src/sqlfluff/core/templaters/python.py:306
Method__ne__
Two grammars are not equal if their elements or types are not equal. NOTE: This is to handle some conflicts with dunder methods in mypyc.
src/sqlfluff/core/parser/grammar/base.py:215
Method__new__
Override new operator.
src/sqlfluff/utils/functional/templated_file_slices.py:15
Method__new__
Override new operator.
src/sqlfluff/utils/functional/raw_file_slices.py:15
Method__new__
Override new operator.
src/sqlfluff/utils/functional/segments.py:27
Method__new__
Construct a string-like placeholder for mocked dbt `var()` output.
src/sqlfluff/core/templaters/builtins/dbt.py:43
Method__next__
(self)
test/core/linter/linter_test.py:583
Method__post_init__
(self)
src/sqlfluff/utils/analysis/query.py:176
Method__post_init__
Do some lightweight validation post instantiation.
src/sqlfluff/core/parser/match_result.py:70
Method__post_init__
(self)
src/sqlfluff/core/parser/markers.py:41
Method__post_init__
Handle setup for RegexLexer.
src/sqlfluff/core/parser/lexer.py:314
Method__radd__
(self, segments_)
src/sqlfluff/utils/functional/segments.py:43
Method__reduce__
Prepare the SQLBaseError for pickling.
src/sqlfluff/core/errors.py:77
Method__reduce__
Prepare the SQLParseError for pickling.
src/sqlfluff/core/errors.py:264
Method__reduce__
Prepare the SQLLintError for pickling.
src/sqlfluff/core/errors.py:329
Method__repr__
Compressed repr method to ease logging.
src/sqlfluff/utils/reflow/reindent.py:102
Method__repr__
(self)
src/sqlfluff/core/errors.py:420
Method__repr__
(self)
src/sqlfluff/core/dialects/base.py:50
Method__repr__
(self)
src/sqlfluff/core/linter/linted_file.py:49
Method__repr__
(self)
src/sqlfluff/core/parser/lexer.py:157
Method__repr__
Return a string representation of the TypedParser object.
src/sqlfluff/core/parser/parsers.py:137
Method__repr__
(self)
src/sqlfluff/core/parser/parsers.py:195
Method__repr__
(self)
src/sqlfluff/core/parser/parsers.py:247
Method__repr__
(self)
src/sqlfluff/core/parser/parsers.py:307
Method__repr__
Return a string representation suitable for debugging.
src/sqlfluff/core/parser/grammar/base.py:193
Method__repr__
Return a string representation of the 'Ref' object.
src/sqlfluff/core/parser/grammar/base.py:380
Method__repr__
(self)
src/sqlfluff/core/parser/segments/raw.py:86
Method__repr__
(self)
src/sqlfluff/core/parser/segments/base.py:275
Method__repr__
Return a string representation of the 'TemplatedFile' object.
src/sqlfluff/core/templaters/base.py:243
Method__repr__
(self)
src/sqlfluff/core/rules/fix.py:107
Method__repr__
(self)
src/sqlfluff/core/rules/noqa.py:59
Method__repr__
(self)
src/sqlfluff/core/rules/base.py:120
Method__setattr__
(self, key: str, value: Any)
src/sqlfluff/core/parser/segments/base.py:226
Method__setstate__
Set state during process of unpickling.
src/sqlfluff/core/parser/segments/base.py:293
Method__setstate__
(self, state: dict[str, Any])
src/sqlfluff/core/config/fluffconfig.py:208
Method__str__
(self)
test/core/config/loader_test.py:379
Method__str__
(self)
src/sqlfluff/core/parser/match_result.py:93
Method__str__
(self)
src/sqlfluff/core/parser/markers.py:52
Method__str__
Return a string representation of the object.
src/sqlfluff/core/parser/grammar/base.py:189
Method__str__
Return the templated file if coerced to string.
src/sqlfluff/core/templaters/base.py:247
Method__str__
(self)
src/sqlfluff/core/templaters/python.py:277
Method__str__
Treat undefined vars as empty, but remember for later.
src/sqlfluff/core/templaters/jinja.py:66
Method__str__
(self)
src/sqlfluff/core/templaters/jinja.py:1165
Method__str__
If we try and render the wrapper directly, throw an error.
src/sqlfluff/core/templaters/builtins/common.py:24
Method__str__
(self)
src/sqlfluff/core/templaters/builtins/dbt.py:36
Method_bool_impl
Return a boolean value. Args: *args: Variable length argument list. **kwargs: Arbitrary keyword arguments. R
src/sqlfluff/core/templaters/jinja.py:1210
Function_builtin_return
(value: Any)
src/sqlfluff/core/templaters/builtins/dbt.py:65
Method_code_indices
The indices of code elements. This is used in the path_to algorithm for tree traversal.
src/sqlfluff/core/parser/segments/base.py:319
Method_comments
Returns only the comment elements of this segment.
src/sqlfluff/core/parser/segments/base.py:303
Function_create_pool
(*args, **kwargs)
test/core/linter/linter_test.py:334
Method_dbt_version
Fetches the installed dbt version. This is cached in the raw dbt format. NOTE: We do this only on demand to reduce the amount of loa
plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/templater.py:195
Function_dialect_specific_segment_not_match
Test that specific segments do not match. NB: We're testing the MATCH function not the PARSE function. This is the opposite to the above.
test/dialects/conftest.py:78
Function_dialect_specific_segment_parses
Test that specific segments parse as expected. NB: We're testing the PARSE function not the MATCH function although this will be a recursive
test/dialects/conftest.py:42
Method_eval
(self, context)
test/core/rules/rules_test.py:33
Method_eval
Stars make newlines.
test/core/rules/rules_test.py:49
Method_eval
Stars make newlines.
test/core/rules/rules_test.py:72
Method_eval
Triple any numeric literals.
test/core/rules/rules_test.py:93
Method_eval
(self, **kwargs)
test/core/rules/rules_test.py:165
Method_eval
(self, segment, parent_stack, **kwargs)
test/core/rules/rules_test.py:385
Method_eval
Files must not begin with newlines or whitespace.
src/sqlfluff/rules/layout/LT13.py:76
Method_eval
There should be a maximum number of empty lines.
src/sqlfluff/rules/layout/LT15.py:52
Method_eval
Function name not immediately followed by bracket. Look for Function Segment with anything other than the function name before bracke
src/sqlfluff/rules/layout/LT06.py:39
Method_eval
Set operators should be surrounded by newlines. For any set operator we check if there is any NewLineSegment in the non-code segments
src/sqlfluff/rules/layout/LT11.py:36
Method_eval
(self, context: RuleContext)
src/sqlfluff/rules/layout/LT09.py:101
Method_eval
Unnecessary whitespace.
src/sqlfluff/rules/layout/LT01.py:68
Method_eval
Keyword clauses should begin on a newline.
src/sqlfluff/rules/layout/LT14.py:50
Method_eval
Select clause modifiers must appear on same line as SELECT.
src/sqlfluff/rules/layout/LT10.py:41
Method_eval
Blank line expected but not found after CTE definition.
src/sqlfluff/rules/layout/LT08.py:45
Method_eval
Files must end with a single trailing newline. We only care about the segment and the siblings which come after it for this rule, we
src/sqlfluff/rules/layout/LT12.py:120
Method_eval
WITH clause closing bracket should be aligned with WITH keyword. Look for a with clause and evaluate the position of closing brackets.
src/sqlfluff/rules/layout/LT07.py:49
Method_eval
Operators should follow a standard for being before/after newlines. For the fixing routines we delegate to the reflow utils. However
src/sqlfluff/rules/layout/LT03.py:130
Method_eval
Enforce comma placement. For the fixing routines we delegate to the reflow utils. However for performance reasons we have some initia
src/sqlfluff/rules/layout/LT04.py:63
Method_eval
Line is too long.
src/sqlfluff/rules/layout/LT05.py:30
Method_eval
Indentation not consistent with previous lines. To set the default tab size, set the `tab_space_size` value in the appropriate config
src/sqlfluff/rules/layout/LT02.py:52
Method_eval
Check that derived tables have an alias.
src/sqlfluff/rules/aliasing/AL10.py:45
Method_eval
Identify aliases in from clause and join conditions. Find base table, table expressions in join, and other expressions in select clau
src/sqlfluff/rules/aliasing/AL07.py:92
Method_eval
(self, context: RuleContext)
src/sqlfluff/rules/aliasing/AL05.py:77
Method_eval
Identify aliases in from clause and join conditions. Find base table, table expressions in join, and other expressions in select clau
src/sqlfluff/rules/aliasing/AL06.py:52
Method_eval
Find self-aliased columns and fix them. Checks the alias in the `SELECT` clause and see if the alias identifier is same as the column
src/sqlfluff/rules/aliasing/AL09.py:94
Method_eval
Get References and Aliases and allow linting. This rule covers a lot of potential cases of odd usages of references, see the code for
src/sqlfluff/rules/aliasing/AL04.py:117
Method_eval
(self, context: RuleContext)
src/sqlfluff/rules/aliasing/AL02.py:45
Method_eval
Walk through select clauses, looking for matching identifiers.
src/sqlfluff/rules/aliasing/AL08.py:70
Method_eval
Column expression without alias. Use explicit `AS` clause. We look for the select_clause_element segment, and then evaluate whether i
src/sqlfluff/rules/aliasing/AL03.py:43
Method_eval
Implicit aliasing of table/column not allowed. Use explicit `AS` clause. We look for the alias segment, and then evaluate its parent and whet
src/sqlfluff/rules/aliasing/AL01.py:51
Method_eval
(self, context: RuleContext)
src/sqlfluff/rules/postgres/PG01.py:80
Method_eval
Remove empty batches.
src/sqlfluff/rules/oracle/OR01.py:43
Method_eval
Look for non-literal segments. NOTE: The existing crawlers don't filter very well for only templated code, and so we process the whol
src/sqlfluff/rules/jinja/JJ01.py:109
Method_eval
Find rule violations and provide fixes. 0. Look for a case expression 1. Look for "ELSE" 2. Mark "ELSE" for deletion (populat
src/sqlfluff/rules/structure/ST01.py:45
Method_eval
Looking for DISTINCT before a bracket. Look for DISTINCT keyword immediately followed by open parenthesis.
src/sqlfluff/rules/structure/ST08.py:42
Method_eval
(self, context: RuleContext)
src/sqlfluff/rules/structure/ST06.py:131
Method_eval
Detect consecutive semicolons and provide fixes. Operates at the file root, builds a cached bounded prefix of non-whitespace characte
src/sqlfluff/rules/structure/ST12.py:47
Method_eval
Nested CASE statement in ELSE clause could be flattened.
src/sqlfluff/rules/structure/ST04.py:50
Method_eval
(self, context: RuleContext)
src/sqlfluff/rules/structure/ST07.py:76
Method_eval
Implement the logic to detect unused tables in joins. First we fetch all the tables brought *into* the query via either FROM or JOIN
src/sqlfluff/rules/structure/ST11.py:227
Method_eval
(self, context: RuleContext)
src/sqlfluff/rules/structure/ST10.py:51
Method_eval
Unnecessary CASE statement.
src/sqlfluff/rules/structure/ST02.py:157
Method_eval
Find rule violations and provide fixes. 0. Grab all table aliases into a table_aliases list. 1. Grab all conditions from the differen
src/sqlfluff/rules/structure/ST09.py:83
← previousnext →1,201–1,300 of 2,340, ranked by callers