Search before asking
What Happened
Running sqlfluff lint with the --format github-annotation option removes warnings from the output.
Expected Behaviour
I would expect the results to be annotated variously as warnings and/or errors, in line with the standard human-readable output.
Observed Behaviour
Interestingly, the --annotation-level option seems to change the output level for all errors (e.g. --annotation-level warning sets actual errors to warnings) and still silently drops all actual warnings.
How to reproduce
sqlfluff lint --format github-annotation file-with-errors-and-warnings.sql
.sqlfluff with some rules downgraded to warnings e.g.
[sqlfluff]
dialect = postgres
exclude_rules = L009, L030, L031, L032, L051, L055
warnings = L001, L005, L006, L008, L010, L016, L023, L050
Dialect
postres
Version
sqlfluff 1.4.5
python 3.8
Configuration
[sqlfluff]
dialect = postgres
exclude_rules = L009, L030, L031, L032, L051, L055
warnings = L001, L005, L006, L008, L010, L016, L023, L050
[sqlfluff:rules]
tab_space_size = 4
indent_unit = space
max_line_length = 100
aliasing = explicit
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
Search before asking
What Happened
Running
sqlfluff lintwith the--format github-annotationoption removes warnings from the output.Expected Behaviour
I would expect the results to be annotated variously as warnings and/or errors, in line with the standard human-readable output.
Observed Behaviour
Interestingly, the
--annotation-leveloption seems to change the output level for all errors (e.g.--annotation-level warningsets actual errors to warnings) and still silently drops all actual warnings.How to reproduce
sqlfluff lint --format github-annotation file-with-errors-and-warnings.sql.sqlfluffwith some rules downgraded to warnings e.g.Dialect
postres
Version
sqlfluff 1.4.5
python 3.8
Configuration
Are you willing to work on and submit a PR to address the issue?
Code of Conduct