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:
parent
b52c8e2c5e
commit
f2891c2d6a
|
@ -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/**/*'
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue