Open jacobsorme opened 5 years ago
NLOC CCN token PARAM length location
------------------------------------------------
87 39 434 3 93 score_grief@99-191@./piqueserver/scripts/badmin.py
71 38 550 3 71 grief_check@36-106@./piqueserver/scripts/blockinfo.py
116 29 719 3 185 apply_script@78-262@./piqueserver/scripts/rollback.py
73 25 524 2 73 on_block_action_recieved@480-552@./build/lib.macosx-10.9-x86_64-3.7/pyspades/player.py
40 23 356 5 48 apply_script.on_block_destroy@262-309@./piqueserver/game_modes/push.py
123 23 1034 4 147 __init__@296-442@./piqueserver/server.py
47 20 278 3 63 apply_script.join_squad@161-223@./piqueserver/scripts/squad.py
36 20 274 2 36 apply_script.on_spawn@251-286@./piqueserver/scripts/squad.py
48 20 293 2 49 on_position_update_recieved@241-289@./build/lib.macosx-10.9-x86_64-3.7/pyspades/player.py
44 20 374 2 45 grenade_exploded@1066-1110@./build/lib.macosx-10.9-x86_64-3.7/pyspades/player.py
36 19 308 2 51 on_input_data_recieved@312-362@./build/lib.macosx-10.9-x86_64-3.7/pyspades/player.py
39 17 353 3 49 do_move@47-95@./piqueserver/core_commands/movement.py
65 17 378 4 71 apply_script.on_votekick_start@245-315@./piqueserver/scripts/badmin.py
41 17 315 5 41 apply_script.on_hit@63-103@./piqueserver/scripts/analyze.py
26 17 207 5 26 on_block_destroy@202-227@./piqueserver/player.py
28 16 187 3 28 apply_script.on_chat@689-716@./piqueserver/scripts/markers.py
Running
python3 -m lizard -l python -s cyclomatic_complexity
on top of repo produce some complex functions. Remember to be outsidevenv
, and havevenv
removed when running.CCN
is the cyclomatic complexity.Edit
python3 -m lizard -l python -s cyclomatic_complexity -C 11 -x "./venv/*"
for including those with CCN larger than 11, and ignoring everything in venv-folderEdit2
python3 -m lizard -l python -s cyclomatic_complexity -C 11 -x "./venv/*" -x "./build/*"