Duplicate Key in Dictionary Literal with Computed Var #5077
Labels
acceptable-false-positive
False positives caused by rules that are unavoidable due to missing type information.
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
The
duplicated_key_in_dictionary_literal
warning is triggered when one static computed var is used repeatedly in a dictionary literal, despite the var being computed and therefore not necessarily the same on every read.Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint warning: Duplicated Key in Dictionary Literal Violation: Dictionary literals with duplicated keys will crash at runtime (duplicated_key_in_dictionary_literal)
Environment
The text was updated successfully, but these errors were encountered: