This repository has been archived by the owner on Sep 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08137d9
commit 28be61a
Showing
46 changed files
with
282 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
disabled_rules: | ||
- type_name | ||
|
||
opt_in_rules: | ||
- force_unwrapping | ||
|
||
# Rules customization | ||
line_length: | ||
warning: 120 | ||
error: 200 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Installs the SwiftLint package. | ||
# Tries to get the precompiled .pkg file from Github, but if that | ||
# fails just recompiles from source. | ||
# | ||
# Original script: https://alexplescan.com/posts/2016/03/03/setting-up-swiftlint-on-travis-ci/ | ||
|
||
set -e | ||
|
||
SWIFTLINT_PKG_PATH="/tmp/SwiftLint.pkg" | ||
SWIFTLINT_PKG_URL="https://github.com/realm/SwiftLint/releases/download/0.16.1/SwiftLint.pkg" | ||
|
||
wget --output-document=$SWIFTLINT_PKG_PATH $SWIFTLINT_PKG_URL | ||
|
||
if [ -f $SWIFTLINT_PKG_PATH ]; then | ||
echo "SwiftLint package exists! Installing it..." | ||
sudo installer -pkg $SWIFTLINT_PKG_PATH -target / | ||
else | ||
echo "SwiftLint package doesn't exist. Compiling from source..." && | ||
git clone https://github.com/realm/SwiftLint.git /tmp/SwiftLint && | ||
cd /tmp/SwiftLint && | ||
git submodule update --init --recursive && | ||
sudo make install | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if which swiftlint >/dev/null; then | ||
# Lint SwiftGen's source itself | ||
swiftlint lint --path "${PROJECT_DIR}/TestSuites" | ||
else | ||
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if which swiftlint >/dev/null; then | ||
# Lint generated code in Tests/Expected | ||
swiftlint lint --path "Tests/Expected" | ||
else | ||
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,3 @@ extension UIViewController { | |
} | ||
|
||
// No storyboard found | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,3 @@ extension UIViewController { | |
} | ||
|
||
// No storyboard found | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,3 @@ extension UIViewController { | |
} | ||
|
||
// No storyboard found | ||
|
Oops, something went wrong.