This is a package to be used to lint changes in .swift files using Swiftlint Installed via Homebrew. It's meant to be used as a run script in Xcode.
To install swiftlint from the terminal use Homebrew:
$ brew install swiftlintTo install this Python3 package
$ pip3 install selective_linterTo update existing installation do
$ pip3 install --upgrade selective_linterTo install this into an Xcode project, add the following run script build phase in project settings:
Shell: /usr/bin/env bash
if [ "${CONFIGURATION}" == "Debug" ]; then
if which selective_linter >/dev/null; then
selective_linter
fi
fi