Inspection severity?

Topics: Features
Nov 13, 2014 at 9:05 AM
I like the insight the Exceptional plugin gives me into our code, but it would be very useful - at least for existing (legacy) code - to be able to change inspection severity of individual inspections.

Would that be possible?

Regards,
Brian
Nov 13, 2014 at 9:37 AM
Edited Nov 13, 2014 at 9:37 AM
This feature is on our todo list (see https://exceptional.codeplex.com/workitem/2338) and in theory should be simple to do. When using this configurable highlighting attribute, you will be able to customize the inspections like the other inspections in resharper...

I tried to implement this some weeks ago but it didnt work as expected, this is why i reverted my changes and began working on more important stuff...
see https://exceptional.codeplex.com/SourceControl/latest#Exceptional.Playground/Issues/
and https://exceptional.codeplex.com/SourceControl/latest#Exceptional.Playground/Fixed/
Nov 13, 2014 at 6:48 PM
In release v0.5.11.0 its possible to configure this...
Nov 13, 2014 at 9:59 PM
Btw: In resharper options you can customize the handling of exceptions in the Exceptional options..
Nov 14, 2014 at 11:13 AM
Cool! I have now set all Exceptional messages to "Hint", which is needed in legacy code.
Nov 14, 2014 at 11:25 AM
Or you fix the issues ;-)
Nov 14, 2014 at 11:52 AM
Well, it is not always an option to fix all issues if you have a huge legacy code base.

The hints are good when working with legacy code as they tell you that "Exceptional found a potential issue that you might need to address".

But even when you agree with the hint, you may have bigger fish to fry and you might not do the fix immediately.

And (chock) sometimes I do not agree with Exceptional's hint. As with all other coding rules and guidelines there is no single truth and I tend to judge on a case-by-case basis.
Nov 14, 2014 at 12:39 PM
Of course, some false-positives cannot be avoided (eg argument exceptions). But if you find a bug like a invocation which is not analyzed, please report them here...