Sha256: 32d3af2b69270c0012465bacdb472463056d3f22855e28b39fedd8025b010cf7

Contents?: true

Size: 478 Bytes

Versions: 18

Compression:

Stored size: 478 Bytes

Contents

#! /usr/bin/env bash
#
# This hook runs on `git commit` and will prevent you from committing without
# approval from the linter and tests.
#
# To run, this file must be symlinked to:
# .git/hooks/pre-commit
#
# To bypass this hook, run:
# $ git commit --no-verify
# $ git commit -n

echo "Running linter..."
bundle exec rake standard
linter_status=$?

if [ $linter_status -ne 0 ]; then
    echo "Fix above before committing. Run 'git commit -n' to bypass linter."
    exit 1
fi

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rails_template_18f-1.2.0 templates/githooks/pre-commit
rails_template_18f-1.1.0 templates/githooks/pre-commit
rails_template_18f-1.0.0 templates/githooks/pre-commit
rails_template_18f-0.8.2 templates/githooks/pre-commit
rails_template_18f-0.8.1 templates/githooks/pre-commit
rails_template_18f-0.8.0 templates/githooks/pre-commit
rails_template_18f-0.7.2 templates/githooks/pre-commit
rails_template_18f-0.7.1 templates/githooks/pre-commit
rails_template_18f-0.7.0 templates/githooks/pre-commit
rails_template_18f-0.6.0 templates/githooks/pre-commit
rails_template_18f-0.5.3 templates/githooks/pre-commit
rails_template_18f-0.5.2 templates/githooks/pre-commit
rails_template_18f-0.5.1 templates/githooks/pre-commit
rails_template_18f-0.5.0 templates/githooks/pre-commit
rails_template_18f-0.4.1 templates/githooks/pre-commit
rails_template_18f-0.4.0 templates/githooks/pre-commit
rails_template_18f-0.3.0 templates/githooks/pre-commit
rails_template_18f-0.2.0 templates/githooks/pre-commit