Skip to content

Method too long because of using Contract.Requires / Contract.Ensures #43

Open

Description

@kostgr

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?

Activity

  1. MO2k4 commented on Sep 15, 2021

    @MO2k4
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions