Skip to content

Static code analysis

Examining code, or a representation of it, without running the application’s workflows to do so.

Software quality

What is static code analysis?

Static code analysis examines program code or a representation derived from it without exercising the business workflow as a runtime test would. Depending on the tool, it can find suspicious data paths, possible errors or rule violations. The analysis tool itself does run. Included files, languages and rules determine the scope of its findings.

In a fictional portal, analysis might flag a variable used before assignment. The team checks the finding in context and records which code was examined. A report without warnings proves neither correct user journeys nor complete security. Excluded files and missing models can leave gaps. Static analysis therefore complements business tests and code review rather than automatically replacing them.

Sources