Skip to content
This repository has been archived by the owner on Apr 1, 2018. It is now read-only.

Latest commit

 

History

History
48 lines (36 loc) · 1.79 KB

ClangComplexityBear.rst

File metadata and controls

48 lines (36 loc) · 1.79 KB

Check for all functions if they are too complicated using the cyclomatic complexity metric. You can read more about this metric at <https://www.wikiwand.com/en/Cyclomatic_complexity>.

  • C
  • C++
  • CUDA
  • Objective-C
  • Objective-C++
  • OpenCL
  • OpenMP

Settings

Setting Meaning
cyclomatic_complexity Maximum cyclomatic complexity that is considered to be normal. The value of 10 had received substantial corroborating evidence. But the general recommendation: "For each module, either limit cyclomatic complexity to [the agreed-upon limit] or provide a written explanation of why the limit was exceeded." (Optional, defaults to '8'.)

Can Detect

  • Complexity

License

AGPL-3.0

Authors