From a707f0f8c12ebc2c75fbe799866b1389a8537141 Mon Sep 17 00:00:00 2001 From: tknzk Date: Thu, 2 Jan 2020 00:46:54 +0900 Subject: [PATCH] add rubocop-rails --- .rubocop.yml | 2 ++ Gemfile | 1 + Gemfile.lock | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index c260368c..917e982d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,6 @@ inherit_from: .rubocop_todo.yml +require: + - rubocop-rails Rails: Enabled: true AllCops: diff --git a/Gemfile b/Gemfile index b2c5afb0..8c14e2f5 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ group :development do gem 'terminal-notifier-guard', require: false unless ENV['CIRCLECI'] gem 'coveralls', require: false gem 'rubocop', require: false + gem 'rubocop-rails', require: false gem 'yard', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index c7b0839b..3c67de71 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -117,6 +117,9 @@ GEM rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 1.7) + rubocop-rails (2.4.1) + rack (>= 1.1) + rubocop (>= 0.72.0) ruby-progressbar (1.10.1) ruby_dep (1.5.0) safe_yaml (1.0.5) @@ -163,6 +166,7 @@ DEPENDENCIES rake (~> 10.4) rspec (~> 3.1, >= 3.1.0) rubocop + rubocop-rails simplecov terminal-notifier-guard vcr