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 inadvertently introduced mixed spaces/tabs, and suddenly SwiftLint started linting Carthage/Checkouts. I wasn't sure what happened, until I saw this in the output:
expected colon, near "included:\n- Chess\n- ChessAPI\n- ChessAPITests\n- Che..."
My file looked something like this:
Once I changed everything to spaces, it started reading the configuration correctly. It took me a big to figure out what was going on, since at first I thought it was due to upgrading SwiftLint to 0.5.4.
I can think of 2 solutions:
Short term: fail to lint altogether, with a warning to fix .swiftlint.yml.
Longer term: improve parsing of file with mixed indentations.
Let me know if I can help at all 🚶
Thanks!
The text was updated successfully, but these errors were encountered:
I inadvertently introduced mixed spaces/tabs, and suddenly
SwiftLint
started lintingCarthage/Checkouts
. I wasn't sure what happened, until I saw this in the output:My file looked something like this:
Once I changed everything to spaces, it started reading the configuration correctly. It took me a big to figure out what was going on, since at first I thought it was due to upgrading
SwiftLint
to0.5.4
.I can think of 2 solutions:
.swiftlint.yml
.Let me know if I can help at all 🚶
Thanks!
The text was updated successfully, but these errors were encountered: