lib/scss_lint/rake_task.rb in scss-lint-0.31.0 vs lib/scss_lint/rake_task.rb in scss-lint-0.32.0
- old
+ new
@@ -27,13 +27,10 @@
def run_task
# Lazy load so task doesn't impact load time of Rakefile
require 'scss_lint'
require 'scss_lint/cli'
- CLI.new([]).tap do |cli|
- cli.parse_arguments
- cli.run
- end
+ CLI.new.run([])
rescue SystemExit => ex
if ex.status == CLI::EXIT_CODES[:data]
abort('scss-lint found lints')
elsif ex.status != 0
abort('scss-lint failed with an error')