Software defect indicator

From Wikipedia, the free encyclopedia

A Software Defect Indicator is a pattern that can be found in source code that is strongly correlated with a software defect, an error or omission in the source code of a computer program that may cause it to malfunction. When inspecting the source code of computer programs, it is not always possible to identify defects directly, but there are often patterns, sometimes called anti-patterns, indicating that defects are present.

Some examples of Software Defect Indicators:

  • Disabled Code: Code has been written and the programmer has disabled it, or switched it off, without making it clear why it has been disabled, or when or whether it will be re-enabled.
  • Routine Too Complex: A program (method, module, routine, subroutine, procedure, or any named block of code) contains more than 10 binary terms in conditional statements.[1]
  • Unused Variables: Unreferenced variables are a strong indicator for other errors.[2]
  • Number of Distinct Committers: The amount of unique developers that have made contributions to a project's commit history. This is a process metric that is useful in indicating software defects. [3]

See also

References

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.