Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Static code analysis

Does anyone know about static code analysis tools for Momentics? It has a built in one (right click a folder and "Run C/C++ Code Analysis" but nothing ever comes out of it, even with obvious "oops" code (like if(a = b) ...).

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Highlighted
Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Static code analysis

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Static code analysis

For one reason or another, the "as you type" ones started to work.

The thing is, I'm coming from the past experience of a Visual Studio Static Code Analysis/FxCop user.

I took a project of mine, ran CODAN on it (at least the one in Momentics for PlayBook OS) and never got a thing. Then I ran the one from Visual Studio on it. I got multiple areas where I'm dereferencing a null pointer, messed up integer comparisions (example "while ((unsigned int)bob < -1"), etc.

It just found so many things that CODAN missed (if it even ran). I can't expect something like the VS static code analysis, but I was hhoping for at least something that allowed me to pin-point logic errors. Which is the exact point IMHO of static code analysis.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.