Skip to content

SwiftLint 0.16.1 incorrectly converting legacy constant for Swift 2.3 #1238

@raid5

Description

@raid5

I have a project using Swift 2.3 and have installed version 0.16.1 of SwiftLint. When I run swiftlint autocorrect, it's incorrectly replacing CGFloat(M_PI) with CGFloat.pi. In the logs I see the output of Corrected Legacy Constant where it made the change to my code and the project won't compile due to this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected and reproducible misbehavior.repro-neededIssues that cannot be reproduced or miss proper descriptive examples.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions