Class: CodeCheck::Rubocop

Inherits:
AbstractCommand
  • Object
show all
Defined in:
lib/command/code_check/ruby/rubocop.rb

Overview

Template for Rubocop check

Instance Method Summary collapse

Instance Method Details

#templateObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/command/code_check/ruby/rubocop.rb', line 7

def template
  'docker run ' \
    '--rm ' \
    '--volume %<pwd>s:/code ' \
    '%<image_name>s ' \
    'rubocop ' \
    '--display-style-guide ' \
    '--extra-details ' \
    '--color ' \
    '--config /code/%<config_file>s ' \
    '%<source_files>s'
end