Sha256: f65c8f0147b05b5d79237e545c2e3907494b7f72b718574d0b1ee8ca92bfd529
Contents?: true
Size: 526 Bytes
Versions: 4
Compression:
Stored size: 526 Bytes
Contents
# frozen_string_literal: true class Rubocop < Aid::Script def self.description 'Runs rubocop against the codebase' end def self.help <<~HELP Usage: #{colorize(:green, '$ aid rubocop')} - runs all the cops #{colorize(:green, '$ aid rubocop fix')} - auto-fixes any issues HELP end def run step 'Running Rubocop' do cmd = 'bundle exec rubocop' cmd << ' -a' if auto_fix? system! cmd end end private def auto_fix? argv.first == 'fix' end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
aid-0.2.2 | examples/rubocop.rb |
abtion-aid-0.3.2 | examples/rubocop.rb |
abtion-aid-0.3.1 | examples/rubocop.rb |
abtion-aid-0.2.0 | examples/rubocop.rb |