21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-09 20:18:39 +02:00

Better rubocop configuration

This commit is contained in:
Colin Darie 2018-05-23 15:56:43 +02:00
parent b52c8e2c5e
commit f2891c2d6a
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
6 changed files with 11 additions and 11 deletions

View file

@ -1,9 +1,9 @@
AllCops: AllCops:
TargetRubyVersion: 2.5 TargetRubyVersion: 2.5
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude: Exclude:
- 'node_modules/**/*'
- 'vendor/**/*'
- '.git/**/*'
- 'lib/tasks/auto_annotate_models.rake' - 'lib/tasks/auto_annotate_models.rake'
- 'db/**/*' - 'db/**/*'
- 'config/**/*' - 'config/**/*'

View file

@ -47,7 +47,7 @@ group :development do
gem 'spring-watcher-listen', '~> 2.0.0' gem 'spring-watcher-listen', '~> 2.0.0'
gem 'capistrano-rails' gem 'capistrano-rails'
gem 'rubocop', '~> 0.56' gem 'rubocop', '~> 0.56.0', require: false
end end
group :test do group :test do

View file

@ -241,7 +241,7 @@ DEPENDENCIES
puma (~> 3.11) puma (~> 3.11)
rails (~> 5.2.0) rails (~> 5.2.0)
rails-i18n (~> 5.1) rails-i18n (~> 5.1)
rubocop (~> 0.56) rubocop (~> 0.56.0)
sass-rails (~> 5.0) sass-rails (~> 5.0)
selenium-webdriver selenium-webdriver
spring spring

View file

@ -1,4 +1,4 @@
class ApplicationMailer < ActionMailer::Base class ApplicationMailer < ActionMailer::Base
default from: 'from@example.com' default from: "from@example.com"
layout 'mailer' layout "mailer"
end end

View file

@ -1,4 +1,4 @@
require 'test_helper' require "test_helper"
class PagesControllerTest < ActionDispatch::IntegrationTest class PagesControllerTest < ActionDispatch::IntegrationTest
test "home loads without error" do test "home loads without error" do

View file

@ -1,6 +1,6 @@
ENV['RAILS_ENV'] ||= 'test' ENV["RAILS_ENV"] ||= "test"
require_relative '../config/environment' require_relative "../config/environment"
require 'rails/test_help' require "rails/test_help"
class ActiveSupport::TestCase class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.