GNU Complexity

145

GNU Complexity is a tool designed for analyzing the complexity of “C” program functions. It is very similar to the McCabe scoring, but addresses several issues not considered in that scoring scheme.

Language: C
Checks: 1
Categories: Complexity
Version: 1.2

Enable the Plugin

To enable, add the following to your .codeclimate.yml configuration file:

plugins:
  gnu-complexity:
    enabled: true

Configure the Plugin

The adjust the threshold at which issues will be reported, add the following to your .codeclimate.yml configuration file:

plugins:
  gnu-complexity:
    enabled: true
    config:
      threshold: 100

The default threshold is 30.

Understand the Plugin

The complete philosophy behind how GNU Complexity measures complexity is described on its project page