Sha256: e4bd2177c101099e5c79f4aee9c4b09d5d8c23a771f92567d622af19b003618c
Contents?: true
Size: 852 Bytes
Versions: 8
Compression:
Stored size: 852 Bytes
Contents
# frozen_string_literal: true # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require_relative 'config/application' Rails.application.load_tasks task(:default).clear desc 'Run linters, quality, security and tests' task :default do sh 'bundle exec rubocop' sh 'npx stylelint app/assets/stylesheets' sh 'bundle exec slim-lint app/views/' sh 'bundle exec rubycritic app/ config/ lib/ --no-browser --minimum-score 94 --format console' sh 'bundle exec bundle-audit check --update' sh 'bundle exec brakeman -z' sh 'bundle exec rails db:setup RAILS_ENV=test' sh 'bundle exec rails db:migrate RAILS_ENV=test' # runs any pending migrations sh 'bundle exec rake factory_bot:lint RAILS_ENV=test' sh 'bundle exec rspec spec/' end
Version data entries
8 entries across 8 versions & 1 rubygems