This module will give developer an ability to find cyclomatic complexity for all functions within a module. A developer can choose module out of list of all enabled module can can get list of all functions along with complexity present in different files within module directory.

Also, admin can set up a threshold value for complexity to highlight functions with high cyclomatic complexity.

Direct link to git repository

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/pgautam/2054327.git  sn_coder_plus

Project Page Link

https://drupal.org/sandbox/pgautam/2054327

Comments

madhusudanmca’s picture

Hi,

I had a quick review of this module and found following:
1) After installing this module and trying to check Cyclomatic Complexity
of one of module, I got following error:
"Notice: Undefined variable: table in sn_coder_plus_prepare_table_of_complexity() (line 242 of D:\xampp\htdocs\dev7\sites\all\modules\sn_coder_plus\sn_coder_plus.module)."

2) $table variable at line 166 in sn_coder_plus\sn_coder_plus.module should be checked before return.

Thanks

madhusudanmca’s picture

Status: Needs review » Needs work

Changing status

pgautam’s picture

Version: » 7.x-1.1
Assigned: Unassigned » madhusudanmca
Issue summary: View changes
Status: Needs work » Fixed

Resolved in branch 7.x-1.1

madhusudanmca’s picture

Title: [D7] SN Coder Plus » [D7]Coder Plus
Status: Fixed » Closed (fixed)

Resolved - Thanks!!