Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

False positive "File annotations should be separated from file contents with a blank line" #914

Closed
ileasile opened this issue Sep 17, 2020 · 1 comment · Fixed by #915
Closed

Comments

@ileasile
Copy link

For a code

@file:Suppress("UnstableApiUsage")

pluginManagement {

}

in settings.gradle.kts I receive "File annotations should be separated from file contents with a blank line" (experimental rules are turned on). Also, formatting adds two additional blank lines.

Expected Behavior

There should be no exception

Observed Behavior

Exception happens

Steps to Reproduce

Example was given above

Your Environment

  • Version of ktlint used: Default for my Gradle plugin (seems to be 0.38.1)
  • Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): Gradle plugin, org.jlleitschuh.gradle:ktlint-gradle:9.4.0
  • Version of Gradle used (if applicable): 6.6.1
  • Operating System and version: Windows 10
  • Link to your project (if it's a public repository): -
@shashachu
Copy link
Contributor

Introduced #714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants