Skip to content

Commit

Permalink
Rubocop bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
the-teacher committed Jan 29, 2023
1 parent f6ea274 commit 8315730
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/helpers/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require_relative './whenever'
require_relative './rails'
require_relative './puma'
require_relative './rubocop'

DELAY = 3
ENV_NAME = ENV.fetch('RAILS_ENV') { 'development' }
Expand Down
7 changes: 7 additions & 0 deletions bin/helpers/rubocop.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def rubocop
container_bash_exec('rails', 'rubocop --require rubocop-rails')
end

def rubocop_fix
container_bash_exec('rails', 'rubocop --require rubocop-rails -A')
end

0 comments on commit 8315730

Please sign in to comment.