mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-15 21:38:18 +00:00
Summary: project: - fix file target membership issues in framework targets and test targets - fix private/internal header imports, which shouldn't be `<IGListKit/` apparently - fix static analyzer errors travis: - always install latest swiftlint - ~~don't cache bundler, attempts to fix #1060~~ - remove markdown link check swiftlint: - make script non-failing if *any* version of swiftlint is installed - warning if incorrect version is installed - fail if not installed - remove `scripts/generate_ci_yaml.rb`, we can just set the config file path directly Closes https://github.com/Instagram/IGListKit/pull/1068 Differential Revision: D6885575 Pulled By: rnystrom fbshipit-source-id: 51b7baa73feefcea71d870c1220d0382df484199
27 lines
540 B
Bash
Executable file
27 lines
540 B
Bash
Executable file
#!/bin/bash
|
|
|
|
VERSION="0.24.2"
|
|
FOUND=$(swiftlint version)
|
|
|
|
if which swiftlint >/dev/null; then
|
|
swiftlint lint --config ../.swiftlint.yml
|
|
else
|
|
echo "
|
|
Error: SwiftLint not installed!
|
|
Download from https://github.com/realm/SwiftLint,
|
|
or brew install swiftlint.
|
|
"
|
|
exit 1
|
|
fi
|
|
|
|
if [ $(swiftlint version) != $VERSION ]; then
|
|
echo "
|
|
Warning: incorrect SwiftLint installed!
|
|
Expected: $VERSION
|
|
Found: $FOUND
|
|
Download from https://github.com/realm/SwiftLint,
|
|
or brew upgrade swiftlint.
|
|
"
|
|
fi
|
|
|
|
exit
|