C # Check the complexity of code circles and warning rules

Source: Internet
Author: User

Circle complexity:

1. Select the project you want to check (in solution );

2. Select analysis-calculate for the selected projectCodeMeasurement value (in the menu );

3. Export the computing result to excel (there is an export method above the calculation result );

4. Filter members and remove the null option (the empty option is the class name );

5. The complexity of the filtering ring (usually greater than 10, if strict, more than 7 ).

Warning rules:

1. If you have custom rules, select code analysis in project properties;

2. uncheck "do not display the result of generated code ";

3. Select "run this rule set" and select a custom rule;

4. Compile the selected project, which is usually compiled under release.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.