[C++]使用nsiqcppstyle輔助檢查C/C++的Coding Style
[Example] nsiqcppstyle . nsiqcppstyle targetdir nsiqcppstyle -f filefilterpath targetfilepath
[Options] -h Show this help -v Show detail ouput(verbose mode) -r Show rule list -o path Set the output path. It’s only applied when the output is csv or xml. -f path Set the filefilter path. If not provided, it uses the default fi lterpath (target/filefilter.txt) If you provide the file path(not folder path) for the target, -f option should be provided. –var=key:value,key:value provide the variables to customize the rule behavior. –list-rules / -r Show all rules available. Add file extensions to be counted as assigned languages. -s Assign Filter scope name to be applied in this analysis –output= output format ’emacs’, ‘vs7’, ‘csv’, ‘xml’ and ’eclipse’. Defaul t value is vs7 emacs, vs7, eclipse output the result on the stdout in the form
that each tool recognizes.
csv and xml outputs the result on the file "nsiqcppstyle_result.
csv" “nsiqcppstyle_result.xml” respectively, if you don’t provide -o option. –ci Continuous Integration mode. If this mode is on, this tool only report summary.