Skip to content

Commit 67bcf71

Browse files
committed
Add default RuboCop in Rails 7.2 (But not being used for now in this app)
1 parent 90606b5 commit 67bcf71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)