#27 ✓resolved
Ashley Moran

Fail on unnecessary exclusions?

Reported by Ashley Moran | March 8th, 2009 @ 04:18 PM

Say you have the following config file:

---
FeatureEnvy:
  exclude:
  - view

but the view method that gets analysed does not have Feature Envy. Should this be considered an error? It seems that exclusions could persist after the code smells have been removed, silently ignoring the smell being introduced.

Similar idea to code coverage failing if your coverage percentage increases on the basis that you want to maintain any improvements you make.

Possibly the sanest behaviour would be to fail if the config is in the same directory as the file affected, so that global excludes don't raise loads of errors.

WDYT?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Defects and feature requests for <a href="http://wiki.github.com/kevinrutherford/reek">Reek</a>, the Ruby code smell detector

People watching this ticket

Pages