Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs-236:project-standards [2018/10/04 17:22]
pdiddy [Valgrind (Linux and Mac OSX)] consistency with the passoff script
cs-236:project-standards [2019/06/05 17:53] (current)
pdiddy [Program Complexity] Mentioned piping to sort and multiple files
Line 76: Line 76:
 Using '''​pmccabe'''​ is equally easy: Using '''​pmccabe'''​ is equally easy:
  
- $ pmccabe -v  Lexer.cpp ​+ $ pmccabe -v  Lexer.cpp ​Lexer.h
  ​Modified McCabe Cyclomatic Complexity  ​Modified McCabe Cyclomatic Complexity
  ​| ​  ​Traditional McCabe Cyclomatic Complexity  ​| ​  ​Traditional McCabe Cyclomatic Complexity
Line 86: Line 86:
  ​4 4 10 7 21 Lexer.cpp(8):​ Lexer::​getToken  ​4 4 10 7 21 Lexer.cpp(8):​ Lexer::​getToken
  ​2 2 28 29 35 Lexer.cpp(29):​ Lexer::​Lexer  ​2 2 28 29 35 Lexer.cpp(29):​ Lexer::​Lexer
- ​3 3 13 65 20 Lexer.cpp(66):​ Lexer::gethe first is the cyclometric complexity. ​+ ​3 3 13 65 20 Lexer.cpp(66):​ Lexer::getLineNumber
  
-The '''​-v''' ​flag may be left out since it only prints ​the header ​information. More options are found with +The first column is the cyclometric complexity. Note that pmccabe can process any number of files simultaneously. 
 + 
 +Output may be sorted by piping to '''​sort''' ​(omitting ​the header ​by leaving out '''​-v'''​ is usually best in this case): 
 + 
 + $ pmccabe *.cpp *.h | sort -n 
 + 
 +More options are found with 
  
  $ pmccabe -h  $ pmccabe -h
cs-236/project-standards.txt · Last modified: 2019/06/05 17:53 by pdiddy
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0