Inappropriate Whitespace Style

Incomplete Base
Structure: Simple
Description

This weakness occurs when source code uses inconsistent or non-standard whitespace formatting, such as irregular indentation, spacing, or line breaks.

Extended Description

Inconsistent whitespace makes code harder to read, understand, and maintain. When developers struggle to follow the logic or structure, it slows down reviews and increases the chance of missing subtle bugs during maintenance or feature development. While not a direct vulnerability, this style inconsistency indirectly harms security. It creates a more error-prone environment where security flaws can be overlooked or introduced more easily, as team members spend extra mental effort deciphering formatting instead of focusing on logic and security controls.

References 1
Providing a Framework for Effective Software Quality Assessment
Robert A. Martin and Lawrence H. Shafer
07-1996
ID: REF-963