Files
iris-context/commands/python/sqlfluff.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

49 lines
2.8 KiB
Go

package python
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "sqlfluff",
Description: "A dialect-flexible and configurable SQL linter",
Subcommands: []core.Subcommand{
{Name: "lint", Description: "Lint SQL files via passing a list of files or using stdin"},
{Name: "templater", Description: "Name of templater to use, eg. raw"},
{Name: "dialect", Description: "Name of dialect, eg. ANSI"},
{Name: "logger", Description: "Name of logger to limit to, eg. templater"},
{Name: "annotation-level", Description: "Level of annotation, eg. notice"},
{Name: "fix", Description: "Fix SQL files"},
{Name: "parse", Description: "Parse SQL files and just spit out the result"},
{Name: "dialects", Description: "Show the current dialects available"},
{Name: "version", Description: "Show the version of sqlfluff"},
{Name: "rules", Description: "Show the current rules in use"},
},
Options: []core.Option{
{Name: "--version", Description: "Show the version and exit"},
{Name: "--help", Description: "Show help for sqlfluff"},
{Name: "--nocolor", Description: "No color - output will be without ANSI color codes"},
{Name: "--ignore", Description: "Narrow the search to only specific rules"},
{Name: "--templater", Description: "The templater to use (default=jinja)"},
{Name: "--dialect", Description: "The dialect of SQL to lint"},
{Name: "--format", Description: "What format to return the lint result in (default=human)"},
{Name: "--processes", Description: "Set this flag to ignore inline noqa comments"},
{Name: "--bench", Description: "Set this flag to engage the benchmarking tool output"},
{Name: "--logger", Description: "Choose to limit the logging to one of the loggers"},
{Name: "--encoding", Description: "Specify encoding to use when reading and writing files. Defaults to autodetect"},
{Name: "--ignore-local-config", Description: "Level of annotation, eg. notice"},
{Name: "--disregard-sqlfluffignores", Description: "Perform the operation regardless of .sqlfluffignore configurations"},
{Name: "--disable-progress-bar", Description: "Disables progress bars"},
{Name: "--nofail", Description: "Show help for sqlfluff"},
{Name: "--disable-noqa", Description: "Set this flag to ignore inline noqa comments"},
{Name: "--FIX-EVEN-UNPARSABLE", Description: "Enables fixing of files that have templating or parse errors"},
{Name: "--show-lint-violations", Description: "Show lint violations"},
{Name: "--code-only", Description: "Output only the code elements of the parse tree"},
{Name: "--include-meta", Description: "What format to return the lint result in (default=human)"},
{Name: "--recurse", Description: "The depth to recursively parse to (0 for unlimited)"},
{Name: "--verbose", Description: "Show the version of sqlfluff"},
},
})
}