Skip to content

Kotlin Detekt cli_lint_mode= list_of_files support #3754

@enciyo

Description

@enciyo

Hi,
I want to run detekt for git diff. Is this possible with the latest changes?

For now I have overcome this by overriding the following value on the CI/CD side. But that doesn't seem like good behavior for us:

KOTLIN_DETEKT_ARGUMENTS: "--config config.yml --report sarif:megalinter-reports/detekt-result.sarif --report html:megalinter-reports/detekt-result.html --report md:megalinter-reports/detekt-result.md -i ${{ steps.diff.outputs.diff }}"

Originally posted by @enciyo in #3579 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions