You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
dafi
changed the title
MaxLineLength and MaximumLineLength are ignored at function or line level
MaximumLineLength is ignored at function or line level
Dec 15, 2019
Sorry, unfortunately we can't support suppression on expression or statement level for rules not actually operating on the AST. This applies to rules from detekt-formatting and rules like MaximumLineLength.
I've added an extra sentence for the rule set documentation page for this.
Expected Behavior
Declaring
@Suppress("MaximumLineLength", "MaxLineLength")
at function definition level should apply to the function/single line of codeObserved Behavior
The
@Suppress
is simply ignored but if declared at file level@file:Suppress("MaximumLineLength", "MaxLineLength")
then the rules are appliedSteps to Reproduce
The example here reproduces the bug
Your Environment
The text was updated successfully, but these errors were encountered: