Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Fail on unnecessary exclusions?

#27

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?

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

State: resolved
Milestone: none
Assigned to: Kevin Rutherford Kevin Rutherford

Activity

  1. Kevin Rutherford
    Kevin Rutherford
    • Assigned user set to Kevin Rutherford

    So this would raise a smell warning if it is checking code that has no smells, but which would have been excluded even if it did have smells?

    Yes, I can see the thinking here. Probably not high on my list though.

    April 10th, 2009 @ 07:54 PM

  2. Kevin Rutherford
    Kevin Rutherford
    • Tag set to feature_request

    April 10th, 2009 @ 07:54 PM

  3. Kevin Rutherford
    Kevin Rutherford
    • State changed from new to resolved

    April 23rd, 2009 @ 07:29 PM

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.