-
Notifications
You must be signed in to change notification settings - Fork 508
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
False positive for standard:discouraged-comment-location #2364
Comments
Some more mentions that I have: val options = listOf(
data?.encodedSchemeSpecificPart?.takeWhile { it != '?' }, // Such as "49.631974,8.376489?q=49.631974,8.376489".
data?.encodedQuery?.removePrefix("q="), // Such as "q=49.631974,8.376489".
) val COLORS = listOf(
0xFFFF0000.color, // Red.
0xFFFFFF00.color, // Yellow.
0xFF00FF00.color, // Green.
0xFF00FFFF.color, // Cyan.
0xFF0000FF.color, // Blue.
0xFF800080.color, // Purple.
0xFFFF00FF.color, // Magenta.
0xFFFFFFFF.color, // White.
0xFF808080.color, // Gray.
0xFF000000.color, // Black.
) I tried to disable that rule |
Side note: Why does |
See faq https://pinterest.github.io/ktlint/latest/faq/#why-does-ktlint-discourage-certain-comment-locations and https://pinterest.github.io/ktlint/latest/faq/#why-is-a-rule-skipped-when-i-disable-some-other-rule and #2338
See https://pinterest.github.io/ktlint/latest/rules/experimental/ |
I still don't understand why putting |
Up until ktlint |
Thanks for the explanation! |
The following gets flagged:
The error is placed at the start of
//
: A comment in a 'value_argument_list' is only allowed when placed on a separate line (standard:discouraged-comment-location)Either I don't understand the exception message or I believe this is a false positive. The function signature looks like this:
The text was updated successfully, but these errors were encountered: