You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Regardless of the number of linting issues uncovered by SQLFluff, Megalinter only ever identifies that there is a maximum of one issue when run as part of Github Actions. This is a problem because SQL_SQLFLUFF_DISABLE_ERRORS_IF_LESS_THAN becomes redundant.
To Reproduce
Steps to reproduce the behavior:
Add the Github Actions config provided below to a .build file
Add problematic Redshift sql to project
Allow Megalinter to run SQLFluff
Expected behavior
Megalinter should flag one issue per issue identified by SQLFluff.
This can be done configuring descriptors properties cli_lint_errors_count and cli_lint_errors_regex ( example ) that are used to count the errors from output text file
Maybe you would like to make a PR ?
If not, myself or another contributor can do it someday :)
Describe the bug
Regardless of the number of linting issues uncovered by SQLFluff, Megalinter only ever identifies that there is a maximum of one issue when run as part of Github Actions. This is a problem because
SQL_SQLFLUFF_DISABLE_ERRORS_IF_LESS_THAN
becomes redundant.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Megalinter should flag one issue per issue identified by SQLFluff.
Screenshots
+----SUMMARY-+----------+---------------+-------+-------+--------+--------------+
| Descriptor | Linter | Mode | Files | Fixed | Errors | Elapsed time |
+------------+----------+---------------+-------+-------+--------+--------------+
| ❌ SQL | sqlfluff | list_of_files | 247 | | 1 | 1.34s |
+------------+----------+---------------+-------+-------+--------+--------------+
Additional context
Here is my Github Actions config snippet:
The text was updated successfully, but these errors were encountered: