Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a264bb

Browse files
Skitioneknvuillam
andauthoredApr 15, 2024
1 parent 206d852 commit 2a264bb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
1616

1717
- New linters
1818

19+
- Reporters
20+
- Add ruff sarif support
21+
1922
- Fixes
2023
- Fix clang-format documentation links to point to the correct version. Fixes [#3452](https://github.com/oxsecurity/megalinter/issues/3452)
2124
- Fix conflict between prettier and yamllint about spaces

‎megalinter/descriptors/python.megalinter-descriptor.yml

+6
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ linters:
341341
# ruff
342342
- linter_name: ruff
343343
name: PYTHON_RUFF
344+
can_output_sarif: true
344345
linter_text: |
345346
An extremely fast Python linter, written in Rust.
346347
linter_url: https://github.com/astral-sh/ruff
@@ -360,6 +361,11 @@ linters:
360361
cli_lint_errors_count: regex_number
361362
cli_lint_errors_regex: "Found ([0-9]+) error"
362363
config_file_name: ".ruff.toml"
364+
cli_sarif_args:
365+
- --output-format
366+
- sarif
367+
- --output-file
368+
- "{{SARIF_OUTPUT_FILE}}"
363369
test_folder: python_ruff
364370
examples:
365371
- "ruff check myfile.py"

0 commit comments

Comments
 (0)
Please sign in to comment.