mirror of
https://github.com/Evolix/chexpire.git
synced 2024-04-27 22:40:49 +02:00
Better rubocop configuration
This commit is contained in:
parent
b52c8e2c5e
commit
f2891c2d6a
|
@ -1,9 +1,9 @@
|
|||
AllCops:
|
||||
TargetRubyVersion: 2.5
|
||||
Include:
|
||||
- '**/Rakefile'
|
||||
- '**/config.ru'
|
||||
Exclude:
|
||||
- 'node_modules/**/*'
|
||||
- 'vendor/**/*'
|
||||
- '.git/**/*'
|
||||
- 'lib/tasks/auto_annotate_models.rake'
|
||||
- 'db/**/*'
|
||||
- 'config/**/*'
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -47,7 +47,7 @@ group :development do
|
|||
gem 'spring-watcher-listen', '~> 2.0.0'
|
||||
|
||||
gem 'capistrano-rails'
|
||||
gem 'rubocop', '~> 0.56'
|
||||
gem 'rubocop', '~> 0.56.0', require: false
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
|
|
@ -241,7 +241,7 @@ DEPENDENCIES
|
|||
puma (~> 3.11)
|
||||
rails (~> 5.2.0)
|
||||
rails-i18n (~> 5.1)
|
||||
rubocop (~> 0.56)
|
||||
rubocop (~> 0.56.0)
|
||||
sass-rails (~> 5.0)
|
||||
selenium-webdriver
|
||||
spring
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class ApplicationMailer < ActionMailer::Base
|
||||
default from: 'from@example.com'
|
||||
layout 'mailer'
|
||||
default from: "from@example.com"
|
||||
layout "mailer"
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'test_helper'
|
||||
require "test_helper"
|
||||
|
||||
class PagesControllerTest < ActionDispatch::IntegrationTest
|
||||
test "home loads without error" do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
ENV['RAILS_ENV'] ||= 'test'
|
||||
require_relative '../config/environment'
|
||||
require 'rails/test_help'
|
||||
ENV["RAILS_ENV"] ||= "test"
|
||||
require_relative "../config/environment"
|
||||
require "rails/test_help"
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
||||
|
|
Loading…
Reference in a new issue