rootstrap/rails_api_base

View on GitHub
lib/tasks/code_analysis.rake

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

namespace :code do
  desc 'Run code quality tools'
  task analysis: :environment do
    sh 'bundle exec brakeman . -z -q'
    sh 'bundle exec rubocop .'
    sh 'bundle exec reek .'
    sh 'bundle exec rails_best_practices .'
    sh 'bundle exec i18n-tasks health'
  end
end