yu-iskw/Run sqlfluff with reviewdog

🐶 Run sqlfluff with reviewdog on pull requests to improve code review experience.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github_tokenGITHUB_TOKENyes${{ github.token }}
github_base_refPull request target branch nameno${{ github.base_ref }}
working-directoryworking directoryno${{ github.workspace }}
levelReport level for reviewdog [info,warning,error]noerror
reporterReporter of reviewdog command [github-check,github-pr-review].nogithub-check
filter_modeFiltering mode for the reviewdog command [added,diff_context,file,nofilter]. Default is file. nofile
fail_on_errorExit code for reviewdog when errors are found [true,false] Default is `false`. nofalse
reviewdog_versionreviewdog versionnov0.21.0
sqlfluff_versionsqlfluff version (pinned default). Set this input to override, for example to stay on SQLFluff 3.x. no4.1.0
sqlfluff_commandThe sub command of sqlfluff. One of lint and fixnolint
pathsPATH is the path to a sql file or directory to lint. This can be either a file ('path/to/file.sql'), a path ('directory/of/sql/files'), a single ('-') character to indicate reading from *stdin* or a dot/blank ('.'/' ') which will be interpreted like passing the current working directory as a path argument. yes
file_patternThe regular expression to filter checked filesno\.sql$
encodingSpecifiy encoding to use when reading and writing files. Defaults to autodetect.no""
configInclude additional config file. By default the config is generated from the standard configuration files described in the documentation. This argument allows you to specify an additional configuration file that overrides the standard configuration files. N.B. cfg format is required. no""
exclude-rulesExclude specific rules. For example specifying –exclude-rules L001 will remove rule L001 (Unnecessary trailing whitespace) from the set of considered rules. This could either be the allowlist, or the general set if there is no specific allowlist. Multiple rules can be specified with commas e.g. –exclude-rules L001,L002 will exclude violations of rule L001 and rule L002. no""
rulesNarrow the search to only specific rules. For example specifying –rules L001 will only search for rule L001 (Unnecessary trailing whitespace). Multiple rules can be specified with commas e.g. –rules L001,L002 will specify only looking for violations of rule L001 and rule L002. no""
templaterThe templater to useno""
disable-noqaSet this flag to ignore inline noqa comments.no""
dialectThe dialect of SQL to lintno""
processesThe number of parallel processes to run.no2
extra_requirements_txtA path to your custom `requirements.txt` to install extra modules for your dbt adapters. Please make sure not to contain `sqlfluff` and its dependent packages, because the action can be broken by the conflicts. no""
namedescription
sqlfluff-resultsThe JSON object string of sqlfluff results
sqlfluff-exit-codeThe exit code of sqlfluff
sqlfluff-results-rdjsonThe JSON object string of sqlfluff results
reviewdog-exit-codeThe exit code of reviewdog