*Is it possible to ignore `max_line_length` for sp...
# ktlint
b
Is it possible to ignore
max_line_length
for specific methods that are Annotated with
@Test
?
We are using back ticks for naming and we like having our names descriptive. But because of that the line length always exceed our defined limit for
max_line_length
. Is there a way to ignore it in some other global way without a need of adding suppress annotation directly where it happens?
e
I don't have an answer but be careful with method name lengths - you may run into system-specific filename limitations https://youtrack.jetbrains.com/issue/KT-17433
🙌 1
😱 1
h
I have an answer: No 😄
More seriously: I'd just name the methods shorter and put the long text into a
@DisplayName
annotation.
p
See documentation and you will find
ktlint_ignore_back_ticked_identifier
property for this.
🙌 2
b
Perfect @Paul Dingemans How did I miss that. 😅