Sha256: 3d4c1de8980441628c73d269e42bb80d091c5e7187dbfabc7cf14d2a1774f3bf
Contents?: true
Size: 572 Bytes
Versions: 8
Compression:
Stored size: 572 Bytes
Contents
require 'codeqa/checkers/rubocop_full' module Codeqa module Checkers class RubocopFormatter < Rubocop def name 'rubocop formatter' end def hint <<-EOF Rubocop reformatted your code. Check what it has done and add the changes to git's index EOF end def after_check # add changes to the git index # `git add #{sourcefile.filename}` end private def config_args %w(--auto-correct --only ) << Codeqa.configuration.rubocop_formatter_cops.to_a.join(',') end end end end
Version data entries
8 entries across 8 versions & 1 rubygems