MCPcopy Create free account

hub / github.com/sqlfluff/sqlfluff / functions

Functions2,340 in github.com/sqlfluff/sqlfluff

↓ 1 callersMethodformat_rules
Format the a set of rules given a `Linter`.
src/sqlfluff/cli/formatters.py:570
↓ 1 callersMethodfrom_child_markers
Create a parent marker from it's children.
src/sqlfluff/core/parser/markers.py:128
↓ 1 callersMethodfrom_combination
Create IndentStats from two consecutive IndentStats. This is mostly used for combining the effects of indent and dedent tokens either
src/sqlfluff/utils/reflow/elements.py:280
↓ 1 callersMethodfrom_element
Make a TemplateElement from a LexedElement.
src/sqlfluff/core/parser/lexer.py:100
↓ 1 callersMethodfrom_fluff_config
Constructs a ReflowConfig from a FluffConfig.
src/sqlfluff/utils/reflow/config.py:112
↓ 1 callersMethodfrom_path_step
Interpret a PathStep to construct a StackPosition. The reason we don't just use the same object is partly to interpret it a little mo
src/sqlfluff/utils/reflow/depthmap.py:42
↓ 1 callersMethodfrom_points
Construct a position marker from the section between two points.
src/sqlfluff/core/parser/markers.py:102
↓ 1 callersMethodfrom_raw_and_stack
Construct from a raw and its stack.
src/sqlfluff/utils/reflow/depthmap.py:65
↓ 1 callersMethodfrom_result_segments
Create a RawSegment from result segments.
src/sqlfluff/core/parser/segments/raw.py:290
↓ 1 callersMethodfrom_root
Loads a config object based on the root directory. Args: extra_config_path (str, optional): An optional additional path
src/sqlfluff/core/config/fluffconfig.py:241
↓ 1 callersMethodfrom_rs_error
Create a SQLLexError from a RsSQLLexerError.
src/sqlfluff/core/errors.py:191
↓ 1 callersMethodfrom_rs_parse_error
Convert a Rust RsParseError to SQLParseError. Args: rs_error: The RsParseError exception from Rust parser segments: T
src/sqlfluff/core/errors.py:240
↓ 1 callersMethodfrom_rstoken
Create a RawSegment from an RSQL token. Args: token: The Rust token to create the segment from tf: The TemplatedFile
src/sqlfluff/core/parser/segments/raw.py:307
↓ 1 callersMethodfrom_source
Look for inline ignore comments and return NoQaDirectives. Very similar to .from_tree(), but can be run on raw source (i.e. does not
src/sqlfluff/core/rules/noqa.py:190
↓ 1 callersMethodfrom_string
Replaces (via monkeypatch) the jinja2.Environment function.
plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/templater.py:650
↓ 1 callersFunctiongather_file_list
Gather the list of files to generate fixtures for. Apply filters as required.
test/generate_parse_fixture_yml.py:150
↓ 1 callersFunctiongenerate_command_markdown
Generate markdown content for a single command. Args: cmd_info: Command information dictionary Returns: Markdown content
docsv/scripts/generate-cli-docs.py:186
↓ 1 callersFunctiongenerate_dialect_enum
Generate the dialect enum and associated functions.
utils/build_dialects.py:24
↓ 1 callersFunctiongenerate_dialects_documentation
Generate dialect documentation markdown files. Returns: Dictionary with sidebar configuration for VitePress
docsv/scripts/generate-dialects-docs.py:138
↓ 1 callersFunctiongenerate_extract_nested_block_comments
This function handles nested block comments. Since this function is now shared across all dialects, we just need to generate a wrapper that p
utils/build_lexers.py:240
↓ 1 callersFunctiongenerate_index_markdown
Generate the index markdown with API overview. Args: modules: List of module information dicts Returns: Markdown content for
docsv/scripts/generate-api-docs.py:605
↓ 1 callersFunctiongenerate_index_markdown
Generate the index markdown with command summary. Args: commands: List of command information dictionaries Returns: Markdown
docsv/scripts/generate-cli-docs.py:255
↓ 1 callersFunctiongenerate_lexer
Generate the lexers for all dialects.
utils/build_lexers.py:29
↓ 1 callersFunctiongenerate_module_markdown
Generate markdown content for a module. Args: name: Display name of the module module_name: Name of the module functions:
docsv/scripts/generate-api-docs.py:379
↓ 1 callersFunctiongenerate_parse_fixtures
Generate fixture or a subset based on dialect or filename glob match.
test/generate_parse_fixture_yml.py:195
↓ 1 callersFunctiongenerate_parser_table_driven
Generate the table-driven parser for a dialect.
utils/build_parsers.py:1630
↓ 1 callersFunctiongenerate_reserved_keyword_list
Generate the keywords for a dialects.
utils/build_lexers.py:42
↓ 1 callersFunctiongenerate_rules_documentation
Generate rule documentation markdown files. Returns: Dictionary with sidebar configuration for VitePress
docsv/scripts/generate-rules-docs.py:536
↓ 1 callersMethodgenerate_rust_tables
Generate Rust static table initialization code.
utils/build_parsers.py:1379
↓ 1 callersFunctiongenerate_sidebar_config
Generate VitePress sidebar configuration. Args: modules: List of module information dicts Returns: Sidebar configuration dic
docsv/scripts/generate-api-docs.py:633
↓ 1 callersFunctiongenerate_sidebar_config
Generate VitePress sidebar configuration. Args: commands: List of command information dictionaries Returns: Sidebar configur
docsv/scripts/generate-cli-docs.py:294
↓ 1 callersFunctiongenerate_use
Generates the `use` statements.
utils/build_lexers.py:13
↓ 1 callersFunctiongenerate_use
Generates the `use` statements.
utils/build_dialect.py:6
↓ 1 callersFunctiongenerate_use
Generates the `use` statements.
utils/build_dialects.py:8
↓ 1 callersMethodgenerate_warnings_for_unused
Generates warnings for any unused NoQaDirectives.
src/sqlfluff/core/rules/noqa.py:346
↓ 1 callersFunctiongeneric_roundtrip_test
Run a roundtrip test given a sql file and a rule. We take a file buffer, lint, fix and lint, finally checking that the file fails initially b
test/rules/std_roundtrip_test.py:15
↓ 1 callersMethodget_alias
Get info on alias within SELECT clause element.
src/sqlfluff/dialects/dialect_ansi.py:1892
↓ 1 callersFunctionget_aliases_from_select
Gets the aliases referred to in the FROM clause. Returns a tuple of two lists: - Table aliases - Value table function aliases
src/sqlfluff/utils/analysis/select.py:182
↓ 1 callersMethodget_configs_info
Get rule config validations and descriptions.
src/sqlfluff/core/plugin/hookspecs.py:36
↓ 1 callersMethodget_context
Get the templating context from the config.
src/sqlfluff/core/templaters/placeholder.py:85
↓ 1 callersMethodget_context
Get the templating context from the config. This function retrieves the templating context from the config by loading the config and
src/sqlfluff/core/templaters/python.py:184
↓ 1 callersMethodget_cte_segments
Return a valid list of CTES with required padding segments.
src/sqlfluff/rules/structure/ST05.py:424
↓ 1 callersMethodget_end_point_marker
Get a point marker at the end of this segment.
src/sqlfluff/core/parser/segments/base.py:818
↓ 1 callersFunctionget_last_segment
Returns rightmost & lowest descendant and its "parent stack".
src/sqlfluff/rules/layout/LT12.py:24
↓ 1 callersFunctionget_lexer_class
Get the appropriate lexer class based on availability. Returns PyRsLexer if the Rust extension is available, otherwise returns PyLexer.
src/sqlfluff/core/parser/lexer.py:960
↓ 1 callersMethodget_objects
Hook to get all the rules.
docs/source/_ext/sqlfluff_domain.py:108
↓ 1 callersFunctionget_option_names
Get formatted option names (e.g., '-v, --verbose'). Args: param: Click parameter object Returns: Comma-separated option name
docsv/scripts/generate-cli-docs.py:136
↓ 1 callersFunctionget_python_implementation
Get the current python implementation as a string. This is useful if testing in pypy or similar.
src/sqlfluff/cli/helpers.py:17
↓ 1 callersFunctionget_python_version
Get the current python version as a string.
src/sqlfluff/cli/helpers.py:12
↓ 1 callersMethodget_rule_timing_dict
Generate a summary to total time in each rule. This is primarily for csv export.
src/sqlfluff/core/linter/linted_file.py:52
↓ 1 callersFunctionget_segment_type_map
Dynamically create a map of segment types to their subclasses.
src/sqlfluff/core/parser/lexer.py:900
↓ 1 callersMethodget_table_references
Use parsed tree to extract table references.
src/sqlfluff/dialects/dialect_ansi.py:826
↓ 1 callersFunctionget_trailing_newlines
Returns list of trailing newlines in the tree.
src/sqlfluff/rules/layout/LT12.py:13
↓ 1 callersFunctionget_trailing_whitespace_from_string
r"""Returns the trailing whitespace from a string. Designed to work with source strings of placeholders. >>> get_trailing_whitespace_from_st
src/sqlfluff/core/helpers/string.py:89
↓ 1 callersMethodhandle_left_whitespace_stripping
If block open uses whitespace stripping, record it. When a "begin" tag (whether block, comment, or data) uses whitespace stripping
src/sqlfluff/core/templaters/slicers/tracer.py:851
↓ 1 callersFunctionhandle_respace__inline_with_space
Check inline spacing is the right size. This forms one of the cases handled by .respace_point(). This code assumes: - a ReflowPoint with
src/sqlfluff/utils/reflow/respace.py:607
↓ 1 callersFunctionhandle_respace__inline_without_space
Ensure spacing is the right size. This forms one of the cases handled by .respace_point(). This code assumes: - a ReflowPoint with no ne
src/sqlfluff/utils/reflow/respace.py:748
↓ 1 callersMethodhas_template_conflicts
Based on the fix slices, should we discard the fix?
src/sqlfluff/core/rules/fix.py:364
↓ 1 callersFunctionidentify_keyword_rebreak_spans
Identify keyword areas in file to rebreak. A span here is a block, or group of blocks which have explicit configs for their keyword's line po
src/sqlfluff/utils/reflow/rebreak.py:278
↓ 1 callersMethodimap
(self, func, iterable)
test/core/linter/linter_test.py:645
↓ 1 callersMethodinfer_type
Infer a python type from a string and convert. Given a string value, convert it to a more specific built-in Python type (e.g. int, fl
src/sqlfluff/core/templaters/python.py:172
↓ 1 callersMethodinstalled
Check if SQLFluff is installed.
src/sqlfluff/diff_quality_plugin.py:40
↓ 1 callersFunctioninstrument_python_parser
Instrument Python parser to collect metrics.
utils/compare_parser_metrics.py:104
↓ 1 callersMethodinvalidate_caches
Overwrite superclass functionality.
src/sqlfluff/core/parser/segments/raw.py:143
↓ 1 callersMethodis_all_comments
Is this line made up of just comments?
src/sqlfluff/utils/reflow/reindent.py:144
↓ 1 callersMethodis_all_templates
Is this line made up of just template elements?
src/sqlfluff/utils/reflow/reindent.py:151
↓ 1 callersMethodis_better_than
A match is better compared on length.
src/sqlfluff/core/parser/match_result.py:115
↓ 1 callersFunctionis_capitalizable
Does the character have differing lower and upper-case versions?
src/sqlfluff/rules/capitalisation/CP01.py:13
↓ 1 callersMethodis_clean
Return True if there are no ignorable violations.
src/sqlfluff/core/linter/linted_file.py:191
↓ 1 callersMethodis_enabled
Evaluate conditionals and return whether enabled.
src/sqlfluff/core/parser/grammar/conditional.py:77
↓ 1 callersMethodis_optional
Return whether this element is optional.
src/sqlfluff/core/parser/parsers.py:55
↓ 1 callersMethodis_point
A marker is a point if it has zero length in templated and source file.
src/sqlfluff/core/parser/markers.py:236
↓ 1 callersMethodis_self_match
Does this segment match the relevant criteria.
src/sqlfluff/core/rules/crawlers.py:73
↓ 1 callersFunctionis_whitespace
Returns a function that checks if segment is whitespace.
src/sqlfluff/utils/functional/segment_predicates.py:90
↓ 1 callersMethoditer_elements
( self, elements: ReflowSequenceType )
src/sqlfluff/utils/reflow/reindent.py:125
↓ 1 callersMethoditer_partials
Iterate through partials or deferred tasks for parallel linting. When the active templater supports worker-side rendering (``template
src/sqlfluff/core/linter/runner.py:150
↓ 1 callersMethoditer_rendered
Iterate through rendered files ready for linting.
src/sqlfluff/core/linter/runner.py:49
↓ 1 callersMethoditer_unparsables
Iterate through any unparsables this segment may contain.
src/sqlfluff/core/parser/segments/base.py:1013
↓ 1 callersMethoditerate_segments
Loop over each element as a fresh Segments.
src/sqlfluff/utils/functional/segments.py:214
↓ 1 callersFunctionjinja_roundtrip_test
Run a roundtrip test path and rule. We take a file buffer, lint, fix and lint, finally checking that the file fails initially but not after f
test/rules/std_roundtrip_test.py:49
↓ 1 callersFunctionlint
Lint SQL files via passing a list of files or using stdin. PATH is the path to a sql file or directory to lint. This can be either a file ('p
src/sqlfluff/cli/commands.py:688
↓ 1 callersFunctionlint
Lint a SQL string. Args: sql (:obj:`str`): The SQL to be linted. dialect (:obj:`Optional[str]`, optional): A reference to the dia
src/sqlfluff/api/simple.py:74
↓ 1 callersFunctionlint_line_length
Lint the sequence to lines over the configured length. NOTE: This assumes that `lint_indent_points` has already been run. The method won't ne
src/sqlfluff/utils/reflow/reindent.py:2431
↓ 1 callersFunctionlist_dialects
Return a list of available dialect info.
src/sqlfluff/api/info.py:14
↓ 1 callersMethodload_default_config
Loads the default configuration for the plugin.
src/sqlfluff/core/plugin/hookspecs.py:28
↓ 1 callersFunctionload_manifest
Load the existing manifest if present, otherwise return defaults.
docsv/scripts/assemble-site.py:79
↓ 1 callersFunctionload_toml_file_config
Read the SQLFluff config section of a pyproject.toml file. We don't need to change any key names here, because the root section of the toml f
src/sqlfluff/core/config/toml.py:84
↓ 1 callersFunctionmain
Main benchmark runner.
utils/benchmark_parsing.py:466
↓ 1 callersFunctionmain
Run benchmarks.
utils/benchmark_parser.py:173
↓ 1 callersFunctionmain
Run the parser comparison.
utils/compare_parser_metrics.py:682
↓ 1 callersFunctionmain
Main entry point. Parses arguments, reads the Rust grammar file, extracts tables, and writes the output JSON file with grammar instructions,
utils/rust_to_python_grammar.py:102
↓ 1 callersFunctionmain
Generate API documentation.
docsv/scripts/generate-api-docs.py:660
↓ 1 callersFunctionmain
Main entry point.
docsv/scripts/generate-all-docs.py:44
↓ 1 callersFunctionmain
Main entry point.
docsv/scripts/generate-dialects-docs.py:219
↓ 1 callersFunctionmain
Main entry point.
docsv/scripts/assemble-site.py:239
↓ 1 callersFunctionmain
Generate CLI documentation.
docsv/scripts/generate-cli-docs.py:319
↓ 1 callersFunctionmain
Main entry point.
docsv/scripts/generate-rules-docs.py:695
↓ 1 callersFunctionmain
Find all example SQL files, parse and create YAML files.
test/generate_parse_fixture_yml.py:216
↓ 1 callersFunctionmake_dialect_path
Work out how to find paths given a dialect and a file name.
test/conftest.py:100
↓ 1 callersFunctionmake_dialect_path
Work out how to find paths given a dialect and a file name.
test/rules/std_fix_auto_test.py:42
← previousnext →901–1,000 of 2,340, ranked by callers