require 'reek/rake/task' require 'syspect/rspec/reek_checkstyle_formatter' Reek::Rake::Task.new do |t| t.fail_on_error = false t.reek_opts = '-y -n' end namespace :reek do desc 'Generate checkstyle report for code smells analyzed by reek.' task :checkstyle do # see https://github.com/troessner/reek/wiki/Basic-Smell-Options ReekCheckstyleFormatter.new.run end end