Skip to content
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

Return an error status code if serious violations found #31

Merged
merged 2 commits into from
May 24, 2015

Conversation

pawrsccouk
Copy link
Contributor

To fix issue #30

This mingles errors due to swiftlint issues with errors in the files swiftlint is auditing. We lose information doing that, but otherwise we'd need to re-architect the Command structure and I don't think that's possible right now.

This is my first go at creating GitHub pull requests, so please let me know if I'm doing anything wrong.

public var xcodeSeverityDescription: String {
return self <= Medium ? "warning" : "error"
return self.isError ? "error" : "warning"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please omit the self keyword here. (it'd be nice to add a rule for this at some point 😄)

@jpsim
Copy link
Collaborator

jpsim commented May 23, 2015

Thanks for doing this! The PR looks good, other than my one point about self.

Could you also add an entry to the CHANGELOG under "Enhancements" so we can properly attribute the change to you?

@pawrsccouk
Copy link
Contributor Author

Thanks for the feedback. I've removed the 'self' reference and updated the change log.
Hopefully the changes should appear in this request now.

@jpsim
Copy link
Collaborator

jpsim commented May 24, 2015

Thanks!

jpsim added a commit that referenced this pull request May 24, 2015
Return an error status code if serious violations found
@jpsim jpsim merged commit acc869f into realm:master May 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants