Skip to content

Commit

Permalink
Update sqlfluff descriptor to enable error count (#1462)
Browse files Browse the repository at this point in the history
* Adding regex to sqlfluff descriptor to enable proper error count

* Fixing broken escape character

* Update sql.megalinter-descriptor.yml

* Add a second bad test case to verify count regex

Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com>
  • Loading branch information
tdstark and nvuillam committed May 7, 2022
1 parent 275d69a commit b79741a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .automation/test/sql/sql_bad_2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETE from person;
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l
- [graphql-schema-linter](https://github.com/cjoudrey/graphql-schema-linter) from 2.0.2 to **3.0.0** on 2022-05-07
<!-- linter-versions-end -->

- Flavors
- Update sqlfluff descriptor properties to enable error count([#1460](https://github.com/megalinter/megalinter/issues/1460))

## [v5.12.0] - 2022-04-23

- Core
Expand Down
2 changes: 2 additions & 0 deletions megalinter/descriptors/sql.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ linters:
active_only_if_file_found:
- .sqlfluff
cli_lint_mode: list_of_files
cli_lint_errors_count: regex_count
cli_lint_errors_regex: "L:(.*)P:(.*)"
cli_lint_extra_args:
- lint
cli_config_arg_name: "--config"
Expand Down

0 comments on commit b79741a

Please sign in to comment.