Skip to content

Warnings are not output in GitHub annotations #4238

@Nate-Wessel

Description

@Nate-Wessel

Search before asking

  • I searched the issues and found no similar issues.

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?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions