Git Product home page Git Product logo

Comments (4)

paul-dingemans avatar paul-dingemans commented on August 16, 2024

.editorconfig setting ktlint_standard_max-line-length = disabled only results in disabling the max-line-length rule.

In the output of Ktlint CLI you can see that the error is caused by property-wrapping rule:

Missing newline before "SaveFeedbackInteractionLoanApplicationIdUseCase" (standard:property-wrapping)
Missing newline before "GetFeedbackInteractionLoanApplicationIdUseCase" (standard:property-wrapping)

By using ktlint_code_style set to android the max_line_length property is set by default to 100. Disabling ktlint_standard_max-line-length does not change that value. This value is used by multiple rules. To fully disable all length line checks, you can set max_line_length to value unset.

from ktlint.

lonewolf2208 avatar lonewolf2208 commented on August 16, 2024

Thanks @paul-dingemans for the input . Can we disbale the standard:property-wrapping rule ?
I tried to disable it using ktlint_standard_property-wrapping = disabled.

from ktlint.

paul-dingemans avatar paul-dingemans commented on August 16, 2024

Thanks @paul-dingemans for the input . Can we disbale the standard:property-wrapping rule ? I tried to disable it using ktlint_standard_property-wrapping = disabled.

Sure, but the better solution would be to configure it in .editorconfig:

root = true

[*.{kt,kts}]
max_line_length = unset

Reason for this is that more rules look at the max_line_length property.

from ktlint.

paul-dingemans avatar paul-dingemans commented on August 16, 2024

OP has not responded. Issue is considered resolved with solution given above.

from ktlint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.