From e1a70823fb0cef3e7a33a015b0349ace7d5b9e92 Mon Sep 17 00:00:00 2001 From: James Mason Date: Wed, 4 Apr 2018 10:08:23 -0700 Subject: [PATCH] Update basic rubocop config * Set a target ruby version of 2.4 * ignore database migrations (we don't want to mess with existing migrations) --- .rubocop.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 9ab6f6b3..b41c85fb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,11 +3,13 @@ inherit_from: .rubocop_todo.yml # Apply rule to all cops AllCops: + TargetRubyVersion: 2.4 Include: - '**/Rakefile' - '**/config.ru' Exclude: - 'db/schema.rb' + - 'db/migrations/*' - 'vendor/bundle/**/*' - 'bundle/**/*' - 'config/**/*' @@ -25,10 +27,3 @@ Metrics/ClassLength: Max: 300 Exclude: - 'app/models/conference.rb' - -Metrics/BlockLength: - Exclude: - - 'spec/models/conference_spec.rb' - - 'spec/features/ability_spec.rb' - - 'spec/models/ability_spec.rb' - - 'spec/models/admin_ability_spec.rb'