We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c04a06 commit d3c47aeCopy full SHA for d3c47ae
.swiftlint-version
@@ -0,0 +1 @@
1
+0.16.1
scripts/swiftlint.sh
@@ -1,11 +1,10 @@
#!/bin/sh
2
3
-SWIFTLINT_VERSION="0.13.2"
4
-
5
if ! command -v swiftlint >/dev/null; then
6
brew install swiftlint
7
-elif [ $(swiftlint version) != "$SWIFTLINT_VERSION" ]; then
+elif [ ! -e .swiftlint-version ] || [ $(swiftlint version) != $(head -n 1 .swiftlint-version) ]; then
8
brew upgrade swiftlint
+ swiftlint version >> .swiftlint-version
9
fi
10
11
swiftlint
0 commit comments