Comments (2)
The max_line_length
setting is invalid. Use either off
or unset
as value to disable the max line length.
from ktlint.
The
max_line_length
setting is invalid. Use eitheroff
orunset
as value to disable the max line length.
In hindsight the "solution" above is really crude. What I meant to say was that if you really want to disable the max-line-length checking, that you need to set below:
max_line_length = unset
Disabling the max-line-length
rule with ktlint_standard_max-line-length = disabled
only disables that specific rule. But any other rule that uses the property max_line_length
will not be affected by that. In this case the function-literal
rule is using the max_line_length
to decide whether it should report a violation regarding the positioning of the variables of the lambda.
The "mistake" you made is very understandable and you can not be blamed for it. Even in case it would have been documented properly (which it isn't), this misleads others as well. Ktlint should be more fault tolerant.
from ktlint.
Related Issues (20)
- Cannot apply default formatting Kotest\StringSpec when migrate from 1.0.1 -> 1.3.0 HOT 5
- Documentation unclear/inconsistent about rule names HOT 4
- Enable installing a specific version of ktlint via brew HOT 1
- Format was not able to resolve all violations which (theoretically) can be autocorrected
- Some rules in https://pinterest.github.io/ktlint/latest/rules/standard/ missing "Suppress or disable rule" HOT 1
- Allow single-line `try`/`catch` statements HOT 2
- Inconsistent starting position of chain method continuation HOT 1
- multiline class arguments HOT 1
- Ktlint 1.3.* converts crlf to lf on Windows HOT 10
- `backing-property-naming` rule shouldn't be applied to fields that have the `override` modifier
- class-signature rule incorrectly forces removal of primary no-argument constructor HOT 2
- ktlint --stdin takes too long and only supports a single file HOT 9
- Abstract classes after a long previous line are multilined regardless of the ktlint_class_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than setting HOT 1
- I get an "Enable default patterns" message when I try to format a Kotlin file in Vim with ALE and Ktlint HOT 2
- blank-line-between-when-conditions has incorrect id in docs
- Conflict between `binary-expression-wrapping` and `ktlint_standard_range-spacing` HOT 5
- False positive Unnecessary semicolon (standard:no-semi) HOT 2
- Reconsider allowing standard:no-consecutive-comments if there are empty lines, and allow automatic fix HOT 2
- Require named arguments if 2 or more arguments are of the same type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktlint.