fabric8-analytics / fabric8-analytics-license-analysis

License Analysis
GNU General Public License v3.0
6 stars 25 forks source link

Reduce cyclomatic complexity in StackLicenseAnalyzer.compute_stack_license #155

Open tisnik opened 5 years ago

tisnik commented 5 years ago

Measured cyclomatic complexity is way too high in StackLicenseAnalyzer.compute_stack_license function:

src/stack_license.py
    M 180:4 StackLicenseAnalyzer.compute_stack_license - D (25)

1 blocks (classes, functions, methods) analyzed.
Average complexity: D (25.0)

To be able to use and test this code, it needs to be refactored.