Movatterモバイル変換


[0]ホーム

URL:


CodeQL documentation
CodeQL resources

Block with too many statements

ID: cs/complex-blockKind: problemSecurity severity: Severity: recommendationPrecision: highTags:   - maintainability   - complexity   - testabilityQuery suites:   - csharp-security-and-quality.qls

Click to see the query in the CodeQL repository

Some blocks of code have too many complex statements (branching statements and loops). These blocks are prime candidates for refactoring.

Recommendation

Consider whether it would be better to extract some of the complex statements to their own methods.

References

  • William C. Wake,Refactoring Workbook, Addison-Wesley Professional, 2004.

  • Martin Fowler,Refactoring: Improving the Design of Existing Code, Addison-Wesley Professional, 1999.


[8]ページ先頭

©2009-2025 Movatter.jp