From f2263432338f9494f0336fe6b99d2ffb0a76baf9 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 22 Sep 2016 19:16:00 +0200 Subject: [PATCH] Rubocop rule: Disable too-modern ones --- .rubocop.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 399d269..aca7f42 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,8 @@ inherit_from: .rubocop_todo.yml AllCops: + DisplayCopNames: true + DisplayStyleGuide: true Exclude: - 'vendor/**/*' - 'gemfiles/**/*' @@ -58,4 +60,10 @@ Style/RegexpLiteral: Style/MutableConstant: Enabled: false - + +# "Use idx.positive? instead of idx > 0." +Style/NumericPredicate: + Enabled: false + +Style/SafeNavigation: + Enabled: false \ No newline at end of file