mmb/meme_captain_web

View on GitHub
lib/tasks/rails_best_practices.rake

Summary

Maintainability
Test Coverage
desc 'Run rails best practices check'
task :rails_best_practices do
  analyzer = RailsBestPractices::Analyzer.new(nil, {})
  analyzer.analyze
  analyzer.output

  # error_count = analyzer.runner.errors.size
  # fail("#{error_count} rails best practices errors") if error_count > 0
end