Skip to content

Print the name of the rule to ignore #1121

@androidfred

Description

@androidfred

Expected Behavior

violations print the name of the rule ie

[ktlint] /foo/bar/FooBar.kt:40:21: Line must not begin with "&&" (rule: nameoftherule)

Observed Behavior

violations don't print the name of the rule

[ktlint] /foo/bar/FooBar.kt:40:21: Line must not begin with "&&"

Steps to Reproduce

add to any file && at beginning of line (or any rule violation to any file)

Your Environment

  • Version of ktlint used: All versions
  • Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): All versions
  • Version of Gradle used (if applicable): All versions
  • Operating System and version: All versions
  • Link to your project (if it's a public repository): Private enterprise repo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions