class Codeqa::Checkers::RubocopFormatter
Public Instance Methods
after_check()
click to toggle source
# File lib/codeqa/checkers/rubocop_formatter.rb, line 17 def after_check # add changes to the git index # `git add #{sourcefile.filename}` end
hint()
click to toggle source
# File lib/codeqa/checkers/rubocop_formatter.rb, line 10 def hint <<-EOF Rubocop reformatted your code. Check what it has done and add the changes to git's index EOF end
name()
click to toggle source
# File lib/codeqa/checkers/rubocop_formatter.rb, line 6 def name 'rubocop formatter' end
Private Instance Methods
config_args()
click to toggle source
# File lib/codeqa/checkers/rubocop_formatter.rb, line 24 def config_args %w(--auto-correct --only ) << Codeqa.configuration.rubocop_formatter_cops.to_a.join(',') end