Skip to content

Commit

Permalink
Change NilCheck to be turned on and add exceptions for existing methods
Browse files Browse the repository at this point in the history
* 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
dkubb committed Mar 18, 2013
1 parent 7d08ac1 commit 7fc1949
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/reek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.