Skip to content
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

A line only containing a string and a trailing comma should not be reported to exceed max line length #2597

Closed
paul-dingemans opened this issue Mar 7, 2024 · 0 comments · Fixed by #2598
Milestone

Comments

@paul-dingemans
Copy link
Collaborator

A line containing a string and a trailing comma should not be reported to exceed max line length as. See example below:

throw SomeException(
    "A long exception message which exceeds the maximum line length and is followed by a (trailing) comma",
    e,
)
// or
throw SomeException(
    "A long exception message which exceeds the maximum line length and is followed by a (trailing) comma",
)

#2480 does not report string template when it is the only element on the line. But is that string template is followed by a comma, it is still reported.

Originally posted by @paul-dingemans in #2480 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant