I am looking to create a continuous code quality monitoring environment for our large code (Java) base. The static code check will be done on every developer branch and integration branch.
Here is my partial list.
FindBug (Find bugs!)
PMD/CPD (copy paste detection)
Hudson (continous build)
Sonar (integrated view of other st...
Source code analysis and exploration tools for C and C++ seem to be sorely lacking.
Are there any tools which I can use to gather information about C and/or C++ source files? cscope does part of what I would need, Doxygen looks closer.
At a minimum list of all function, callers, callees, variable references etc.
Perhaps Doxygen's xml ...
Are there any static analysis tools that can help detect shared_ptr<> circular references?
Even if such a tool couldn't detect complicated cases, it would still be useful for eliminating the simple cases.
...
We have a Java code base that has grown to be too big for a single monolithic JAR (more than 5000 classes). One of the tasks that we are investigating is how much effort would it be to break this single JAR into smaller components with controlled dependencies between them. However, it's somewhat hard to look at a big bag of code and be...
A static check tool shows a violation on the below code:
class CSplitFrame : public CFrameWnd
...
class CVsApp : public CWinApp
CWnd* CVsApp::GetSheetView(LPCSTR WindowText)
{
CWnd* pWnd = reinterpret_cast<CSplitFrame*>(m_pMainWnd)->m_OutputBar.GetChildWnd(WindowText);
return pWnd;
}
ERROR MSG:
Clas...
Using VS 2010/.Net 4.0, Code Analysis warning CA1811 (see below) is fired on all properties in a ViewModel even through they are used via XAML binding:
Warning CA1811 : Microsoft.Performance : 'BackupWindowViewModel.BackupCommand.get()' appears to have no upstream public or protected callers.
public ICommand BackupCommand { get { ...
I want to do a static code analysis on a bunch of scripts written in a not very common programming language (C like syntax). Frequent problems are:
the use of not defined/declared symbols
wrong number or type of arguments when calling a function
The language interpreter/compiler itself does not provide aid for these problems.
Is the...
We have a big body of code that was refactored so that stuff which was plain-old C++ is now COM.
I've been spending the last couple of days hunting out places in which we missed the fact that a function that previously returned a bool now returns an HRESULT (the problem is compound by the fact that S_OK == false).
Is there a way to det...
Suppose I have a custom collection class that provides some internal thread synchronization. For instance, a simplified Add method might look like this:
public void Add(T item)
{
_lock.EnterWriteLock();
try
{
_items.Add(item);
}
finally
{
_lock.ExitWriteLoc...
I'm trying to be a good dev and turn on treat warnings as errors (as I have always done in the past). The biggest difference is that this time, I'm using Silverlight 4 which generates a ton of code. All of the code starts something like this:
#pragma checksum <some stuff>
//---------------------------------------------------------------...
I have been able to run the Static Analyzer on my code fine for months. All of a sudden now I am getting the error:
<command line>:0:0 Analyzer skipped this file due to parse errors
Not sure how to diagnose.
The first tile it skips is:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library...
The title says it all. I am relatively new to Android development and a quick google search turned up nothing of interest. Sorry if this is a noob question!
...
How can I automate a test to enforce that a body of Python 2.x code contains no string instances (only unicode instances)?
Eg.
Can I do it from within the code?
Is there a static analysis tool that has this feature?
...
Hi everyone,
i would like to create a source code analyser for Java Project (like FindBugs and other static analysis programs) that would be able to detect certain method calls.
I would prefer to do it using Python, but any advice would be great !
I'm going to start by studying the FindBugs source code, but if anyone could explain to...