We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The switch_case_on_newline rule incorrectly detects a violation when ones of the cases is a #selector that includes a colon, e.g. in this function:
switch_case_on_newline
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool { let selector = menuItem.action! switch selector { case #selector(aFunction(_:)): return false default: return true } }
The text was updated successfully, but these errors were encountered:
I had no idea you could switch a selector 😳
switch
Sorry, something went wrong.
@mminer Can you try #1023 to see if it solves the issue for you?
@marcelofabri Works well for me; all the false positives in my project are gone. Thanks for the (incredibly fast) fix.
No branches or pull requests
The
switch_case_on_newline
rule incorrectly detects a violation when ones of the cases is a #selector that includes a colon, e.g. in this function:The text was updated successfully, but these errors were encountered: