Sha256: 48b9b2b61d748d9da631180a195568d0ed2fe0818489da79e0701b5a04fb11f4

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

#!/bin/bash
# cp pre-commit.sh .git/hooks/pre-commit
files=$(git status -s | grep -E 'A|M' | awk '{print $2}')
files="$files $(git status -s | grep -E 'R' | awk '{print $4}')"
echo $files | xargs bundle exec rubocop -A --display-cop-names --extra-details --parallel --force-exclusion

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
termii_ruby-0.1.1 pre-commit.sh
termii_ruby-0.1.0 pre-commit.sh