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

maxLineLength in config not picked up by plugin #506

Open
adrianlandborn opened this issue Jan 16, 2024 · 0 comments
Open

maxLineLength in config not picked up by plugin #506

adrianlandborn opened this issue Jan 16, 2024 · 0 comments

Comments

@adrianlandborn
Copy link

There seems to be some inconsistency with the config (and potentially Ktlint and default IntelliJ/Android studio rules).

Running:

  • detekt plugin 2.3.0
  • io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.4
  • org.jlleitschuh.gradle:ktlint-gradle:12.1.0
  • Android Studio Hedgehog | 2023.1.1 Patch 1

In detekt plugin, check "enable formatting (ktlint) rules"
Now I get this warning everywhere where the line exceeds 120 characters.
image

The problem is the it is not set to 120 but 150 in all places.

  • Code style inside Android studio setting
  • .editorconfig
  • detekt config

image
image

Also note
maxLineLength vs maximumLineLength. Depending what I set in detekt.yml I get the opposite shown by the plugin? 🤔

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

No branches or pull requests

1 participant