Permalink
Browse files

Change NilCheck to be turned on and add exceptions for existing methods

* It is better to have exclusions than to turn something off,
  because it will warn you when you write *new* code that does not
  meet the minimum thresholds.
  • Loading branch information...
1 parent 7d08ac1 commit 7fc1949ee0314dbfa71be500c9c3a6554c3e87cc @dkubb committed Mar 18, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 config/reek.yml
View
@@ -121,5 +121,8 @@ LongYieldList:
exclude: []
enabled: true
NilCheck:
- enabled: false
- exclude: []
+ enabled: true
+ exclude:
+ - Veritas::Optimizer::Function::Util#self.constant?
+ - Veritas::Optimizer::Function::Predicate::Comparable::NeverEquivalent#nil_operand?
+ - Veritas::Optimizer::Function::Predicate::Enumerable::EmptyRight#right_nil?

0 comments on commit 7fc1949

Please sign in to comment.