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

$ python3 -m selective_linter --install

To deactivate the script run

$ git config hooks.skipswitflint true

Project details

Download files

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

Source Distribution

selective_linter-0.0.2.tar.gz (4.6 kB view hashes)

Uploaded source

Built Distribution

selective_linter-0.0.2-py3-none-any.whl (7.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page