Skip to content

Kotling context parameters not supported #1955

@bddckr

Description

@bddckr

Describe the bug

When using Kotlin 2.2.0 with context parameters, diktat is unable to parse the code, failing to apply via Spotless.

Expected behavior

diktat should not fail when context parameters are used.

Observed behavior

When invoking the Spotless Gradle plugin, I get an error: diktat(diktat) Expecting comma or ')'

Steps to Reproduce

Use context parameters in a Kotlin file, then run diktat through Spotless.

It probably reproduces by just using diktat directly as well, but I haven't checked.

Environment information

  • diktat version: 2.0.0
  • build tool (maven/gradle): Gradle
  • how is diktat run (CLI, plugin, etc.): Via Spotless' Gradle plugin
  • kotlin version: 2.2.0
  • operating system: macOS
  • link to a project (if your project is public): N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions