code-analysis

How to get the FxCop custom dictionary to work?

How is it possible to get the FxCop custom dictionary to work correctly? I have tried adding words to be recognised to the file 'CustomDictionary.xml', which is kept in the same folder as the FxCop project file. This does not seem to work, as I still get the 'Identifiers should be spelled correctly' FxCop message, even after reloading ...

Creating a custom rule in FXCop

I want to create extra rules in FXCop. Custom Rules to help ensure specific best practices like checking against inline sql. I'm really looking for good resources and examples. Thanks! ...

How to determine maximum stack usage?

What methods are available for determining the optimum stack size for embedded/memory constrained system? If it's too big then memory is wasted that could be used elsewhere. However, if it is too small then we get this website's namesake... To try to jump start things: Jack Ganssle states in The Art of Designing Embedded Systems that, "...

Are there some projects that rate RPG source? like software metrics?

I just wanted to know if you know of some projects that can help to decide whether the analyzed Source it is good code or bad RPG code. I'm thinking on the terms of [Software metric], [McCabe Cyclomatic Number] and all those things. I know that those numbers are mere a hunch or two, but if you can present your management a point s...

comparing code size vs source size

There are plenty of script/tools for counting line of code, and some to count functions size in terms of line of code. But here I'm looking to a way to measure function size in terms of bytes of generated code. Does anyone know a way/tools to extract this information from a .lib or a .dll? For example, I know how to list function name...

Lint tool for actionscript?

Are there any lint tools available for actionscript? One source would be ideal, but anything is welcome. My team is starting to adopt more a more rigorous style guide (where "more rigorous" means "existant"), and I think a linter would help us all adhere more easily to the style rules we've agreed on. I'm not above writing my own, but...

Viewing include dependencies

Does anyone know of a tool that will analyse a C++ codebase and display a graphical representation of which files include which header files and highlight redundant includes? I've used Understand C++ but it's expensive and became very unwieldy very quickly on a large (and poorly encapsulated) codebase. ...

i want to find all if statements in C# code which are not followed by brackets. Through regex

I want to find all if statements and for statements which are not followed by curly brackets '{'. When you write a single line in an if statement you do not mostly enclose it in curly brackets, so I want to find all those if and for statements. Please help! Like I want to capture this statement if (childNode.Name == "B") return To...

Tool to visualize Function Hierarchy trees?

Any code-analysis or "reverse-engineering" tool that can do either of these?: Calculate which classes are sub-classes of which classes Calculate which classes instantiate which classes -- (like VS Class Designer) Calculate which functions call which functions -- (much like a Call Stack) ...

Merging C Callergraphs with Doxygen or determining union of all calls

I have a collection of legacy C code which I'm refactoring to split the C computational code from the GUI. This is complicated by the heavily recursive mathematical core code being K&R style declarations. I've already abandoned an attempt to convert these to ANSI declarations due to nested use of function parameters (just couldn't get th...

Has anyone created any cool rules for FxCop/StyleCop?

I'm just looking for some inspiration. Especially in the area of performance and security, naming conventions are important but not as 'cool' ;) Even if your rule was only applicable to your domain/project but demonstrates how powerful a rule can be, please let me know. I work with C#, but I'm interested in rules for any language. ...

How can I run FxCop on an entire solution in Visual Studio 2008

There must be simple way, I do not want to run Code Analysis separately on each project. ...

What is statistical debugging?

What is statistical debugging? I haven't found a clear, concise explanation yet, but the term certainly sounds impressive. Is it just a research topic, or is it being used somewhere, for actual development? In other words: Will it help me find bugs in my program? ...

Graphical code analysis

I'm using SubVersion in conjunction with Hudson, and I like the feature that shows the how the unit tests, build time, disk usage grow over time. I'm a believer in code metrics to get a first cut appraisal of a code base - especially useful when starting with a new client. Are there any tools that can do the following 1) Starting from D...

C++ code analysis tools

I'm currently in the process of learning C++, and because I'm still learning, I keep making mistakes. With a language as permissive as C++, it often takes a long time to figure out exactly what's wrong -- because the compiler lets me get away with a lot. I realize that this flexibility is one of C++'s major strengths, but it makes it dif...

Static Actionscript code analysis?

I want to see class, function and variable/property, dependencies visually, like NDepend, but for ActionScript 2 or AS3 code. Any programs or ideas? Use Doxygen in some way? FlexUnit? ...

FxCop - Use properties where appropriate

I have interface in service layer with several methods starting with Get and FxCop's Use properties where appropriate rule complains that I should consider using properties instead. I tried to use SuppressMessageAttribute but when it's defined on interface it has no effect on member methods. Do I need to put SuppressMessageAttribute to ...

Visual Studio Code Analysis vs StyleCop + FxCop

I used previously StyleCop + FxCop on my Visual Studio's projects. But now I am testing Visual Studio Code Analysis tool, which is easier to integrate into MSBuild, and I have found that this tools analyses some of the rules of both FxCop and StyleCop. Is this tool a full replacement for both FxCop and StyleCop or it just implements som...

Papers or tools for parallelism discovering.

Hi, I am looking for papers or tools about parallelism discovering. More explicitly, if you have a sequential source code, how to find sections which could be efficiently parallelized (taking account of data dependencies...). The speculation could be static or dynamic. The source code to observe should be in C or C++. I have already s...

An analyzer for spdh frame!

I must produce a reconnaissor automat of SPDH protocol . SPDH defines the structure of request and response messages exchanged between an electronic payment terminal and the server of the bank The specifications of this protocol are described in this document : http://www.trauco.com/docs/SPDH-specification_070212.pdf I specified the f...