Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Disable SwiftLint conditional_returns_on_newline in font template #33

Merged
merged 3 commits into from
Apr 10, 2017
Merged

Disable SwiftLint conditional_returns_on_newline in font template #33

merged 3 commits into from
Apr 10, 2017

Conversation

tbaranes
Copy link

@tbaranes tbaranes commented Apr 9, 2017

Otherwise, it generates a warning that will be pop again each time swiftgen's templates are updated.

@djbe
Copy link
Member

djbe commented Apr 10, 2017

What's triggering the warning? The url guard statement?

I'm not getting any warnings/errors with swiftlint 0.18.1.

@tbaranes
Copy link
Author

tbaranes commented Apr 10, 2017

Yes, the guard, the rule trigger that warning when the guard is on only one line.
It's an opt-in rule, you have to enable it in your .swiftlint.yml

@djbe
Copy link
Member

djbe commented Apr 10, 2017

Aha, that'd explain it. Unless @AliSoftware has some input, this LGTM to me.

@AliSoftware
Copy link
Collaborator

👌

@AliSoftware AliSoftware merged commit 8d449f4 into SwiftGen:master Apr 10, 2017
@tbaranes tbaranes deleted the feature/disable_swiftlint branch April 11, 2017 06:12
@djbe djbe added this to the SwiftGen 4.2.1 milestone May 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants