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

Duplication Conditions Violation inside a switch in FoundationTransport.swift #1035

Open
jpovedap opened this issue Jul 4, 2024 · 1 comment
Labels

Comments

@jpovedap
Copy link

jpovedap commented Jul 4, 2024

Describe the bug

When trying to build a project with SwiftLint we get a warning (or error if duplicate_conditions is configured):
Duplication Conditions Violation...
image

Steps to Reproduce

.

Expected behavior

.

Environment:

  • OS/Version: 13.0
  • Starscream Version - it exists since 5 years ago
  • Xcode version 15.4
  • SwiftLint v0.51.0 (they added duplicate_conditions rule)

Additional context

If we go to the FoundationTransport.swift, we can see that the switch has the same case twice:


@jpovedap jpovedap added the bug label Jul 4, 2024
@jpovedap
Copy link
Author

jpovedap commented Jul 4, 2024

Tried to open a PR but got no permissions:
image

FYI: @daltoniam

@jpovedap jpovedap changed the title Compilation error: Duplication Conditions Violation inside a switch in FoundationTransport.swift Duplication Conditions Violation inside a switch in FoundationTransport.swift Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant