Skip to content

Commit bd952d3

Browse files
committed
Add rubocop binstub
This was suggested by the rails upgrade tool
1 parent 3b4d473 commit bd952d3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

bin/rubocop

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
require "rubygems"
3+
require "bundler/setup"
4+
5+
# explicit rubocop config increases performance slightly while avoiding config confusion.
6+
ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__))
7+
8+
load Gem.bin_path("rubocop", "rubocop")

0 commit comments

Comments
 (0)