Skip to content

False positive from array_constructor custom rule  #353

Description

@moayes

https://github.com/raywenderlich/swift-style-guide/blob/88701838883776b8dafcbefff5120161dcd8c0c3/com.raywenderlich.swiftlint.yml#L56

The intent of the regex pattern in custom rule, array_constructor is to catch something like let foo = [String](), however, it's causing a false positive on a properly initialized array like let foo = [Bar()].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions