Skip to content

Commit

Permalink
add rubocop binstub, update quickhook
Browse files Browse the repository at this point in the history
  • Loading branch information
matthutchinson committed Dec 28, 2024
1 parent 1d59687 commit a236334
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .quickhook/pre-commit/ruby-lint
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
grep '\.rb$\|Gemfile|Rakefile' | xargs bundle exec rubocop --config .rubocop.yml --force-exclusion
set -e
grep '\.rb$\|Gemfile\|Rakefile' | xargs bin/rubocop --config .rubocop.yml --force-exclusion
5 changes: 5 additions & 0 deletions bin/rubocop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require "bundler/setup"
load Gem.bin_path("rubocop", "rubocop")

0 comments on commit a236334

Please sign in to comment.