VladKorzun / cocoapods-githooks-demo

Demo project for cocoapods-githooks plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cocoapods-githooks-demo

Demo project that shows how to integrate cocoapods-githooks plugin in your project and some practical usage of SwiftLint pre-commit git hook.

How to use

  1. If you don't have 'cocoapods-githooks' plugin installed, run
$ gem install cocoapods-githooks
  1. Checkout the project and run
$ pod install 
  1. Now you should see that git hooks from .git-hooks directory synchronized with git hooks in git repository (.git/hooks)

  2. Try to make some changes in ViewController.swift and commit it. You should see SwiftLint validation warning. It happens because pre-commit git hook runs SwiftLint validation before commiting.

  3. After fixing SwiftLint validation warnings you will be able to commit.

About

Demo project for cocoapods-githooks plugin


Languages

Language:Shell 61.8%Language:Swift 34.5%Language:Ruby 3.8%