From 9e077d43ed8d29a7e6a10f233c0c1a94fd0582f1 Mon Sep 17 00:00:00 2001 From: Jolyon Pawlyn Date: Tue, 30 May 2017 18:11:17 +0200 Subject: [PATCH 1/2] Set minimum config for rubocop to show no offenses --- .rubocop.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 3684aa5..70aa6d7 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,29 @@ inherit_from: .rubocop_todo.yml +AllCops: + DisplayCopNames: true + Exclude: + - 'Rakefile' + - 'vendor/**/*' + FileName: Enabled: false DoubleNegation: Enabled: false + +Metrics/BlockLength: + Exclude: + - 'spec/**/*.rb' + +Security/MarshalLoad: + Enabled: false + +Style/FrozenStringLiteralComment: + Enabled: false + +Style/PercentLiteralDelimiters: + Enabled: false + +Style/SafeNavigation: + Enabled: false From 1435dc349ba2f6509673924ebe98ddc140bb40d6 Mon Sep 17 00:00:00 2001 From: Jolyon Pawlyn Date: Tue, 30 May 2017 18:36:10 +0200 Subject: [PATCH 2/2] Add work around for rubocop bug --- .rubocop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 70aa6d7..7da823e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -27,3 +27,8 @@ Style/PercentLiteralDelimiters: Style/SafeNavigation: Enabled: false + +Style/YodaCondition: + # temporary work around for rubocop bug 'An error occurred while Style/YodaCondition...' (v0.49.1) + Exclude: + - 'spec/redis_session_store_spec.rb'