14 lines
481 B
Bash
Executable File
14 lines
481 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$BUILD_DIR" == *"IBDesignables"* ]] || [[ "$BUILD_DIR" == *"Previews"* ]] ; then
|
|
echo "do nothing when building for IBDesignables/SwiftUI Previews builds";
|
|
exit 0
|
|
fi
|
|
|
|
set -e
|
|
|
|
export PATH=$PATH:/usr/local/bin/
|
|
command -v lizard >/dev/null 2>&1 || { echo >&2 "warning: You have to install lizard (see https://github.com/terryyin/lizard). Aborting."; exit 0; }
|
|
|
|
lizard -w -x "./Carthage/*" -x "./vendor/*" --CCN 12 --ignore_warnings 20 --working_threads 4
|