Sha256: 50311467489473e45187df2e1f49e0b15f0b5ce3ded9499228c8caa2a23f8ef0
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
module Rubocop module Stylecheck module Cli class << self def run(options) system "bundle exec rubocop #{options.join(' ')}" do |ok, _res| abort "Fix code style errors" unless ok end end def options options = ["--fail-level", "refactor"] options += ["--rails"] if defined?(Rails) options end def options_with_auto_correct options + ["--auto-correct"] end def options_with_cop options + ["--display-cop-names"] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-stylecheck-0.1.3 | lib/rubocop/stylecheck/cli.rb |