Skip to content

Commit

Permalink
feat: enabled rubocop in pre-commit git hook
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrNikolas committed Jun 16, 2020
1 parent d423d98 commit 16f852f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/pre-commit.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

echo "Running pre-commit hook"
#./scripts/run-rubocop.bash
./scripts/run-rubocop.bash

# $? stores exit value of the last command
if [ $? -ne 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-rubocop.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
cd "${0%/*}/.."

echo "Running rubocop"
bundle exec rubocop
bundle exec rubocop -a

0 comments on commit 16f852f

Please sign in to comment.