Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

0.47 ignores file level Suppress annotation #1623

Closed
yshrsmz opened this issue Aug 31, 2022 · 0 comments · Fixed by #1634
Closed

0.47 ignores file level Suppress annotation #1623

yshrsmz opened this issue Aug 31, 2022 · 0 comments · Fixed by #1634
Labels
Milestone

Comments

@yshrsmz
Copy link

yshrsmz commented Aug 31, 2022

ktlint warns about filename violation even though it is annotated with @file:Suppress("ktlint:filename")

// deviceType.kt
@file:Suppress("ktlint:filename")

package com.codingfeline.example.domain

internal actual val DEVICE_TYPE = "IOS"

warning is this

/Users/yshrsmz/repos/github.com/yshrsmz/sample-app/domain/src/iosMain/kotlin/com/codingfeline/example/domain/deviceType.kt:1:1: File name 'deviceType.kt' should conform PascalCase (cannot be auto-corrected) (filename)

Expected Behavior

should be ignored.

Observed Behavior

Steps to Reproduce

just run ktlint command installed via homebrew.

Your Environment

  • Version of ktlint used: 0.47
  • Relevant parts of the .editorconfig settings
  • Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): command line
  • Version of Gradle used (if applicable):
  • Operating System and version: M1 Mac 12.5.1
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants