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

Fix linting #335

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ ocunit.xml
*.xcbkptlist
*.xcsettings

Examples/vendor/bundle/
vendor/bundle/
.bundle/
Pods/
File renamed without changes.
File renamed without changes.
20 changes: 17 additions & 3 deletions scripts/lint
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
#!/usr/bin/env sh

set -eu
set -o pipefail

printf 'linting CocoaPods\n'

if ! command -v bundle > /dev/null; then
printf 'bundler is not installed.\n'
printf 'install with $ gem install bundler\n'
exit 1
fi

bundle config set path 'vendor/bundle'
bundle install
ZevEisenberg marked this conversation as resolved.
Show resolved Hide resolved
bundle exec pod lib lint

printf 'linting Carthage\n'

if ! command -v carthage > /dev/null; then
printf 'Carthage is not installed.\n'
printf 'See https://github.com/Carthage/Carthage for install instructions.\n'
exit 1
fi


carthage build --platform iOS --no-use-binaries --no-skip-current
ZevEisenberg marked this conversation as resolved.
Show resolved Hide resolved

pod lib lint