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

Add swiftlint & fixes #371

Merged
merged 2 commits into from
May 23, 2017
Merged

Add swiftlint & fixes #371

merged 2 commits into from
May 23, 2017

Conversation

santiagofm
Copy link
Contributor

Added swiftlint to the project & fixed every error/warning

@santiagofm santiagofm force-pushed the feature/swiftlint branch 2 times, most recently from 5f6235c to 8890f7f Compare May 10, 2017 15:11
@santiagofm santiagofm force-pushed the feature/swiftlint branch 2 times, most recently from 74ee851 to 1d8f081 Compare May 22, 2017 19:53
navigationItem.titleView = bigLabel
bigLabel.sizeToFit()
}

if let pagerViewController = childViewControllers.filter( { $0 is PagerTabStripViewController } ).first as? PagerTabStripViewController {
let pagerViewController = childViewControllers.filter { $0 is PagerTabStripViewController }.first as? PagerTabStripViewController
Copy link
Member

Choose a reason for hiding this comment

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

please consider changing .filter { ... }.first to just .first { ... }

.swiftlint.yml Outdated
@@ -0,0 +1,51 @@
disabled_rules: # rule identifiers to exclude from running
- colon
Copy link
Member

Choose a reason for hiding this comment

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

These are a lot of disables rules, would be nice if you enable them and fix or disabling locally depending on each case.

@santiagofm santiagofm force-pushed the feature/swiftlint branch 2 times, most recently from ba383fb to 46869c0 Compare May 23, 2017 15:44
@santiagofm santiagofm merged commit 6aede68 into master May 23, 2017
@santiagofm santiagofm deleted the feature/swiftlint branch May 23, 2017 17:10
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