Top "Code-analysis" questions

Code Analysis is the process of analyzing the code of the application to discover, review, validate or verify certain properties of the application.

Java for each loop being flagged as UR anomaly by PMD

I would like to confirm if this is a bug on PMD? How do I file a ticket if it …

java for-loop code-analysis static-analysis pmd
Ruby source code analyzer (something like pylint)

Does Ruby have any tools along the lines of pylint for analyzing source code for errors and simple coding standards? …

ruby code-analysis static-analysis
Assembly Binding Redirection and Code Analysis

I'm using DotNetOpenAuth (which references System.Web.Mvc version 1.0.0.0) in a Mvc 3.0.0.0 project in Visual Studio 2010. I'm using assembly binding …

visual-studio-2010 visual-studio code-analysis assemblybinding
set default value in class constructor C#

I need a default value set and many different pages access and update..initially can I set the default value …

c# .net code-analysis static-variables variable-assignment
Visual Studio 2015 Code Analysis C6386 warns of buffer overrun

I've read a lot about the Visual Studio Code Analysis warning C8386, but can't figure out this particular issue with …

c++ visual-studio-2015 code-analysis static-code-analysis
Reasoning behind ArrayIsStoredDirectly rule of PMD

PMD has a rule called ArrayIsStoredDirectly in the Sun Security ruleset: Constructors and methods receiving arrays should clone objects and …

java security code-analysis pmd
What's with the integer cache maintained by the interpreter?

After dive into Python's source code, I find out that it maintains an array of PyInt_Objects ranging from int(…

python caching code-analysis literals python-internals
warning C6262: Function uses '27688' bytes of stack: exceeds /analyze:stacksize '16384'. Consider moving some data to heap

I have read a few questions and topics on this issue. For example: Warning message regarding stack size But I …

mfc code-analysis stack-size
Code Analysis CA1063 fires when deriving from IDisposable and providing implementation in base class

I have some code that will trigger Code Analysis warning CA1063: CA1063 : Microsoft.Design : Remove IDisposable from the list of …

c# code-analysis idisposable
The "Why" behind PMD's rules

Is there a good resource which describes the "why" behind PMD rule sets? PMD's site has the "what" - what …

pmd java code-analysis