Skip to content

Commit 69135cd

Browse files
authored
Update ktlint descriptor (#3575)
1 parent 02b92c5 commit 69135cd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
1919
- `API_SPECTRAL` was added as replacement for `OPENAPI_SPECTRAL` (deprecated), supporting AsyncAPI and OpenAPI by default. Uses Spectral's standard config file name `.spectral.yaml` instead of `.openapirc.yml` with a default config with rulesets for AsyncAPI and OpenAPI enabled. Fixes [#3387](https://github.com/oxsecurity/megalinter/issues/3387)
2020
- Disable SQL_TSQLLINT until security issues are solved. Related to <https://github.com/tsqllint/tsqllint/issues/333>
2121
- PHP linters (PHP_PHPCS, PHP_PHPLINT, PHP_PHPSTAN) add support to SARIF report output format with help of <https://github.com/llaville/sarif-php-sdk>
22+
- `KOTLIN_KTLINT` now supports `list_of_files` mode, and has better error counting
2223

2324
- Reporters
2425

megalinter/descriptors/kotlin.megalinter-descriptor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ linters:
2222
linter_banner_image_url: https://miro.medium.com/max/655/1*sLboL6JnC9yUodFsdSMB-w.png
2323
linter_megalinter_ref_url: https://github.com/pinterest/ktlint#-with-continuous-integration
2424
cli_lint_fix_arg_name: "--format"
25+
cli_lint_mode: list_of_files
26+
cli_lint_errors_count: regex_sum
27+
cli_lint_errors_regex: '\s+[\w\-_]+:[\w\-_]+: ([0-9]+)'
2528
cli_sarif_args:
2629
- --reporter=sarif,output={{SARIF_OUTPUT_FILE}}
2730
examples:

0 commit comments

Comments
 (0)