CleanCode
CleanCode copied to clipboard
Method too long because of using Contract.Requires / Contract.Ensures
I'm getting the warning, that the method is too long, after adding contract specifications.
Contract.Requires(taskProject != null);
Contract.Requires(assignmentTime != null);
Contract.Ensures(Contract.Result<Assignment>() != null);
Is it possible to ignore lines like this?
Not at the moment, it's Code so it should be counted. I don't see the point in implementing something like this. Maybe you could elaborate further.