Class: Codeqa::Checkers::RubocopFormatter

Inherits:
Rubocop show all
Defined in:
lib/codeqa/checkers/rubocop_formatter.rb

Instance Attribute Summary

Attributes inherited from Codeqa::Checker

#errors, #sourcefile

Instance Method Summary collapse

Methods inherited from Rubocop

available?, #check, check?

Methods inherited from Codeqa::Checker

available?, #initialize

Constructor Details

This class inherits a constructor from Codeqa::Checker

Instance Method Details

#after_checkObject



17
18
19
20
# File 'lib/codeqa/checkers/rubocop_formatter.rb', line 17

def after_check
  # add changes to the git index
  # `git add #{sourcefile.filename}`
end

#hintObject



10
11
12
13
14
15
# 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

#nameObject



6
7
8
# File 'lib/codeqa/checkers/rubocop_formatter.rb', line 6

def name
  'rubocop formatter'
end