Encyclopedia > Static code analysis

  Article Content

Static code analysis

Static code analysis refers to a set of methods for analysing software source code in an effort to gain understanding and to target areas for review and/or rewrite. The number of metrics (measures) that can be applied are numerous. One of the crudest measurments, for example, is the size of code, usually expressed in kLOC's (1000 lines of code). Defining a consistent definition of a Line of Code has long been an item for debate.

One common metric in static analysis is McCabes Cyclomatic Complexity Metric which basically measures the number of choices a function makes. Functions with a high number of conditional statements (if's, while etc.) will have a high complexity. Such functions therefore can be considered more likely to contain bugs and be harder to maintain.

Links

  • Page on Software Measurment [1] (http://yunus.hun.edu.tr/~sencer/research)



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Canadian Music Hall of Fame

... Forrester[?] 1991 Leonard Cohen 1992 Ian and Sylvia[?] 1993 Anne Murray 1994 Rush 1995 Buffy Sainte-Marie[?] 1996 David Clayton-Thomas[?] 1996 Denny ...

 
 
 
This page was created in 50.5 ms