You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint --path file.swift
Loading configuration from '.swiftlint.yml'
Linting Swift files at path file.swift
Linting 'file.swift' (1/1)
file.swift:1:1: warning: Legacy CGGeometry Functions Violation: Struct extension properties and methods are preferred over legacy functions (legacy_cggeometry_functions)
Done linting! Found 1 violation, 0 serious in 1 file.
$ swiftlint autocorrect --path file.swift
Loading configuration from '.swiftlint.yml'
Correcting Swift files at path file.swift
Correcting 'file.swift' (1/1)
Done correcting 1 files!
Environment
SwiftLint version (run swiftlint version to be sure)? 0.25.0
Installation method used (Homebrew, CocoaPods, building from source, etc)? CP
Paste your configuration file:
No configuration file needed
Are you using nested configurations?
If so, paste their relative paths and respective contents.
No
Which Xcode version are you using (check xcode-select -p)? 9.2
Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
// this triggers a violation but doesn't autocorrect
CGRectIsNull(foo())
The text was updated successfully, but these errors were encountered:
This may be more systemic... I'm seeing autocorrect failing on many but not all rules (e.g., redundant_void_return works). Each of these examples triggers a linter warning but doesn't autocorrect:
joined_default_parameter
["1","2"].joined(separator:"")
empty_enum_arguments:
enum Foo {
case bar(String)
}
func f(foo: Foo) {
switch foo {
case .bar(_):
break
}
}
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!
stalebot
added
the
wontfix
Issues that became stale and were auto-closed by a bot.
label
Nov 8, 2020
New Issue Checklist
Bug Report
#2098, but for
legacy_cggeometry_functions
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? 0.25.0No configuration file needed
If so, paste their relative paths and respective contents.
No
xcode-select -p
)? 9.2echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: