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

False positive in empty_enum_arguments rule #1597

Closed
ZevEisenberg opened this issue Jun 1, 2017 · 0 comments
Closed

False positive in empty_enum_arguments rule #1597

ZevEisenberg opened this issue Jun 1, 2017 · 0 comments
Labels
bug Unexpected and reproducible misbehavior.

Comments

@ZevEisenberg
Copy link
Contributor

Unrelated to #1549.

file:

import Foundation

let myString = "FOO"

switch myString {
case "foo".uppercased(): // ← this triggers
    print("shouty")
default:
    break
}
bash-3.2$ swiftlint version
0.19.0
bash-3.2$ swiftlint lint --path empty_enum_arguments.swift 
Linting Swift files at path empty_enum_arguments.swift
Linting 'empty_enum_arguments.swift' (1/1)
/Users/zev/Desktop/empty_enum_arguments.swift:6:22: warning: Empty Enum Arguments Violation: Arguments can be omitted when matching enums with associated types if they are not used. (empty_enum_arguments)
Done linting! Found 1 violation, 0 serious in 1 file.
@jpsim jpsim added the bug Unexpected and reproducible misbehavior. label Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

No branches or pull requests

2 participants