-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emitted warnings/errors should include a column number #2267
Comments
The Xcode formatter prints the column if it's available: https://github.com/realm/SwiftLint/blob/master/Source/SwiftLintFramework/Reporters/XcodeReporter.swift#L14 Maybe some rules are not setting it (only line). Is this happening to a particular rule? |
Right now I'm reproducing it with the |
Looks like the |
Filed as #2268 (though the lack of a column is also important here). |
I wonder if there would be any negative ramifications of using a fallback column of |
Probably very minimal. You could also use a column of |
Went with a fallback column value of |
Addressed in #2488. |
New Issue Checklist
Bug Report
The output of SwiftLint is of the form
Unfortunately, this doesn't play well with
xcpretty
, asxcpretty
appears to require a column number for warnings (filed as xcpretty/xcpretty#321). It would be great if SwiftLint could start including column numbers so the output would beEnvironment
The text was updated successfully, but these errors were encountered: