From ee0b7a670926f7f01aa0c6e689599db0ba575d15 Mon Sep 17 00:00:00 2001 From: Jared Beck Date: Sun, 21 Feb 2016 23:06:16 -0500 Subject: [PATCH] Lint: Permit double negation [ci skip] --- .rubocop.yml | 5 +++++ .rubocop_todo.yml | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 687a3d08..8bc96432 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -34,6 +34,11 @@ Style/BlockDelimiters: Style/DotPosition: EnforcedStyle: trailing +# Use double negation wherever it would otherwise be impractical to convert +# a value to an actual boolean. +Style/DoubleNegation: + Enabled: false + # The Ruby Style Guide says: # # > Use \ instead of + or << to concatenate two string literals at line end. diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 13ef5fbd..339d8637 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -62,11 +62,6 @@ Style/ClassAndModuleChildren: Style/Documentation: Enabled: false -# Offense count: 4 -Style/DoubleNegation: - Exclude: - - 'lib/paper_trail.rb' - # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.