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
I encountered the following while linting a much larger file. But I boiled it down to a single line. SwiftLint transposes the space and ',' characters after fixing a Redundant Optional Initialization:
% cat > foo.swift <<< "var a: Int? = nil, b: Int"
% cat foo.swift
var a: Int? = nil, b: Int
% swiftlint --fix foo.swift
Correcting Swift files at paths foo.swift
Correcting 'foo.swift' (1/1)
/tmp/foo.swift:1:12 Corrected Redundant Optional Initialization
Done correcting 1 file!
% cat foo.swift
var a: Int? ,b: Int
% swiftlint --fix foo.swift
Correcting Swift files at paths foo.swift
Correcting 'foo.swift' (1/1)
/tmp/foo.swift:1:12 Corrected Comma Spacing
Done correcting 1 file!
% cat foo.swift
var a: Int?, b: Int
The text was updated successfully, but these errors were encountered:
I encountered the following while linting a much larger file. But I boiled it down to a single line. SwiftLint transposes the space and ',' characters after fixing a Redundant Optional Initialization:
The text was updated successfully, but these errors were encountered: