kytos / topology

Kytos Main Topology Network Application (NApp)
https://napps.kytos.io/kytos/topology
MIT License
0 stars 19 forks source link

Increase code quality and reduce McCabe complexity by improving maintenance #151

Open cmagnobarbosa opened 3 years ago

cmagnobarbosa commented 3 years ago

Today the topology NApp has a code quality below 7 (Scrutinizer 6.8) and some methods have McCabe complexity above 10, to improve maintenance it is necessary to change this.

McCabe's complexity above 8 (obtained using https://github.com/PyCQA/mccabe):

144:4: 'Main._restore_switch' 13
339:4: 'Main.enable_interface' 9
369:4: 'Main.disable_interface' 9
834:4: 'Main.update_instance_metadata' 8

Suggested changes:

References: