-
Notifications
You must be signed in to change notification settings - Fork 250
Open
Description
Before:
switch x {
case let term
where
term.hasPrefix("screen") ||
term.hasPrefix("xterm") ||
term.hasPrefix("vt100") ||
term.hasPrefix("rxvt") ||
term.hasSuffix("color"):
return false
}
if term.hasPrefix("screen") ||
term.hasPrefix("xterm") ||
term.hasPrefix("vt100") ||
term.hasPrefix("rxvt") ||
term.hasSuffix("color")
{
return false
}
After:
switch x {
case let term
where
term.hasPrefix("screen") || term.hasPrefix("xterm") || term.hasPrefix("vt100") || term.hasPrefix("rxvt")
|| term.hasSuffix("color"):
return false
}
if term.hasPrefix("screen") || term.hasPrefix("xterm") || term.hasPrefix("vt100") || term.hasPrefix("rxvt")
|| term.hasSuffix("color")
{
return false
}
Interestingly, the formatter doesn’t mind
if term.hasPrefix("screen")
|| term.hasPrefix("xterm")
|| term.hasPrefix("vt100")
|| term.hasPrefix("rxvt")
|| term.hasSuffix("color")
{
return false
}
I could not file a rule for specifying breaking behavior around operators, so presumably it should not matter to the formatter.
Metadata
Metadata
Assignees
Labels
No labels