Skip to main content

A script to be used as a pre-commit git hook for projects written in Swift

Project description

Selective (Swift) Linter

This is a package to be used as a pre-commit git hook to lint changes in .swift files using Swiftlint Installed via Homebrew.

Installation and Dependencies

To install swiftlint from the terminal use Homebrew:

$ brew install swiftlint

To install this Python3 package

$ pip3 install selective_linter

To install the git hook to a repository, navigate to the root of that repository and run

$ selective_linter -i

This also adds the .lint_cache file to your .gitignore.

To deactivate the script run

$ git config hooks.skipswiftlint true

You can also run the script manually to see an optional more verbose output

$ selective_linter -u

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for selective-linter, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size selective_linter-0.2.1-py3-none-any.whl (8.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size selective_linter-0.2.1.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page