Rakefile in mmfont-1.0.0 vs Rakefile in mmfont-1.0.1

- old
+ new

@@ -1,9 +1,22 @@ -require "bundler/gem_tasks" +require 'bundler/gem_tasks' -require "rake/testtask" +require 'rake/testtask' +require 'rubocop/rake_task' Rake::TestTask.new do |t| + t.libs << 'lib' + t.libs << 'spec' t.test_files = FileList['test/*_test.rb'] +end + +# Run robocop +desc 'Run RuboCop on the lib directory' +RuboCop::RakeTask.new(:rubocop) do |task| + task.patterns = ['lib/**/*.rb'] + # only show the files with failures + task.formatters = ['files'] + # don't abort rake on failure + task.fail_on_error = false end task default: :test