prefer_key_path
in 0.58.0 warns if {$0}
instead of (\.self)
for SwiftPM using Swift 5
#5965
Open
2 tasks done
Labels
help
Questions or user problems that require more explanation rather than code changes.
integration
Issues related to integration of SwiftLint into toolchains.
New Issue Checklist
Bug Description
prefer_key_path
in 0.58.0 warns if{$0}
is used instead of()\.self
for a Swift file in a SwiftPM project whosePackage.swift
contains// swift-tools-version:5.7.1
&swiftLanguageVersions: [.v5]
.I assume that
SwiftVersion.current
used inSwiftVersion.current >= .six
doesn't properly determine the correct version of Swift that is being used.Mention the command or other SwiftLint integration method that caused the issue. Include stack traces or command output.
Environment
swiftlint version
to be sure) 0.58.0xcodebuild -version
to be sure) 16.0 (16A242d)The text was updated successfully, but these errors were encountered: