Click here to Skip to main content
15,891,372 members

Survey Results

Which (pre-runtime) Code Analysis tools do you use?   [Edit]

Survey period: 10 Oct 2005 to 16 Oct 2005

Pre-runtime Source Code analysers have been around for years. But do you use them?

OptionVotes% 
Lint (any version for C / C++)9610.82
FxCop20322.89
CLRxLint50.56
Any of the Eclipse plugs-ins424.74
Scientific Toolworks Understand364.06
GrammarTech CodeSurfer10.11
Red Hat Source-Navigator303.38
Aivosto CodeSmart333.72
None58265.61
Respondents were allowed to choose more than one answer; totals may not add up to 100%

View optional text answers (91 answers)


 
GeneralRe: C++ Tools Pin
Super Lloyd10-Oct-05 14:40
Super Lloyd10-Oct-05 14:40 
GeneralRe: C++ Tools Pin
feline_dracoform11-Oct-05 0:47
feline_dracoform11-Oct-05 0:47 
GeneralRe: C++ Tools Pin
Ed K11-Oct-05 7:43
Ed K11-Oct-05 7:43 
AnswerRe: C++ Tools Pin
toxcct11-Oct-05 6:18
toxcct11-Oct-05 6:18 
GeneralRe: C++ Tools Pin
Anna-Jayne Metcalfe12-Oct-05 1:29
Anna-Jayne Metcalfe12-Oct-05 1:29 
GeneralCode Police! Pin
Bob Stanneveld10-Oct-05 3:39
Bob Stanneveld10-Oct-05 3:39 
GeneralRe: Code Police! Pin
Super Lloyd10-Oct-05 5:50
Super Lloyd10-Oct-05 5:50 
GeneralRe: Code Police! Pin
Daniel Grunwald10-Oct-05 10:05
Daniel Grunwald10-Oct-05 10:05 
Many of the rules in FxCop are silly (naming etc.), but the globalization rules are pretty important.
string text = "This is a test.";
Thread.CurrentThread.CurrentCulture = new CultureInfo("tr-TR"); // simulate Turkish system
Debug.WriteLine(text.ToUpper());
Debug.WriteLine(text.ToUpper(CultureInfo.InvariantCulture));
This does print:
THİS İS A TEST. (note the dot above the İ)
THIS IS A TEST.
If you are using something like 'Path.GetExtension(fileName).ToUpper() == ".GIF"', it won't work on Turkish systems!
FxCop really helps to check for cases like this. In the GetExtension example, it would yield two errors: no CultureInfo specified and you can save the string allocation by using .Equals(".GIF", StringComparison.InvariantCultureIgnoreCase).
GeneralRe: Code Police! Pin
Super Lloyd10-Oct-05 14:40
Super Lloyd10-Oct-05 14:40 
GeneralRe: Code Police! Pin
Bob Stanneveld11-Oct-05 1:49
Bob Stanneveld11-Oct-05 1:49 
GeneralRe: Code Police! Pin
Daniel Turini12-Oct-05 12:05
Daniel Turini12-Oct-05 12:05 
GeneralRe: Code Police! Pin
Bob Stanneveld13-Oct-05 2:41
Bob Stanneveld13-Oct-05 2:41 
GeneralPair Programming Pin
Marc Clifton10-Oct-05 2:34
mvaMarc Clifton10-Oct-05 2:34 
GeneralRe: Pair Programming Pin
Xiangyang Liu 刘向阳10-Oct-05 6:22
Xiangyang Liu 刘向阳10-Oct-05 6:22 
GeneralRe: Pair Programming Pin
Paul Brower10-Oct-05 10:41
Paul Brower10-Oct-05 10:41 
GeneralGood old-fashiond code review Pin
Navin10-Oct-05 2:00
Navin10-Oct-05 2:00 
GeneralPC-Lint 8.00q Pin
Anna-Jayne Metcalfe10-Oct-05 0:22
Anna-Jayne Metcalfe10-Oct-05 0:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.