Improper Indentation can reduce readability

CostSoftware AgilityCode Readability

Improper Indentation can reduce readability

This code insight shows that improper indentation can reduce readability
5362

Why you should care

Per the PEP 8 Style Guide, all Python code should be consistently indented with 4 spaces for each level of indentation, not tabs.

Business Impacts

It is recommended to avoid bad indentation to save costs.

Cost

CAST recommendations

References

http://docs.quantifiedcode.com/python-code-patterns/correctness/indentation_contains_tabs.html

5362

About CAST and Highlight’s Code Insights

Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.

See featuresHow it works