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 for ParameterListWrapping #861

Closed
adamu opened this issue Aug 27, 2020 · 0 comments · Fixed by #928
Closed

False Positive for ParameterListWrapping #861

adamu opened this issue Aug 27, 2020 · 0 comments · Fixed by #928

Comments

@adamu
Copy link

adamu commented Aug 27, 2020

Follow up from #786 (comment)

Expected Behavior

ParameterListWrapping is not raised.

Observed Behavior

ParameterListWrapping is raised after upgrading to Detekt 1.12.0, but not before.

Fails with Argument should be on a separate line (unless all arguments can fit a single line) and Missing newline before ")" .

Steps to Reproduce

foo(bar.apply {
    // stuff
})

Your Environment

  • Version of ktlint used: 0.38.1 (according to detekt changelog)
  • Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): ./gradlew detekt
  • Version of Gradle used (if applicable): 6.6.1
  • Operating System and version: OSX 10.15.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants