I installed swiftlint through brew
brew install swiftlint
verified successfull installation through
swiftlint --version
0.50.1
Added script to project
export PATH="$PATH:/opt/homebrew/bin"
if which swiftlint >/dev/null; then
echo "SwiftLint started"
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
Also i have:
root project:
-> .swiftlint.yml
When i'm trying to build project I'm getting
Tried also
swiftlint lint --config project/.swiftlint.yml
Update: After several mac restarts somehow after time it is fixed
Update: After several mac restarts somehow after time it is fixed