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.
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 replacingCGFloat(M_PI)withCGFloat.pi. In the logs I see the output ofCorrected Legacy Constantwhere it made the change to my code and the project won't compile due to this error.