code-analysis Questions
6
Solved
I am trying to create a function call graph for around 500 matlab src files. I am unable to find any tools which could help me do the same for multiple src files.
Is anyone familiar with any tools...
Clyve asked 14/9, 2011 at 18:49
2
Solved
Consider the following sample code:
# -*- coding: utf-8 -*-
"""Test module."""
def test():
"""Tets function"""
return 10
pylint give...
Josephinejosephson asked 27/11, 2014 at 2:51
3
Does any one of you know a way I'd be able to suppress e.g. CA2000 for an entire solution?
I'm thinking of something like a GlobalSuppressions class with the following line of code:
[assembly: Su...
Bluma asked 10/4, 2018 at 23:58
2
Solved
I'm writing a code analyzer with Roslyn, and I need to check if an ExpressionSyntax is of type Task or Task<T>.
So far I have this:
private static bool IsTask(ExpressionSyntax expression, S...
Avidity asked 30/1, 2015 at 16:20
4
Solved
My question:
I would like to obtain the current status of the quality gate for my projects in SonarQube via the SonarQube web api, but I do not see quality gate as an available metric in the docum...
Abott asked 12/12, 2014 at 14:17
9
Solved
I'm only using Code Analysis for cleaning, organizing and ensuring these changes are globally performed for all instances of a particular warning. I'm down to the final, and it's CA2227.
CA2227 ...
Gargoyle asked 20/5, 2015 at 20:40
6
Solved
I need to analyse kotlin files code, to detect the keyword "data" and "?".
The issue is I don't find any libs like JavaParser.
I don't need powerfull tools, just something who return me the number...
Showdown asked 30/8, 2017 at 9:14
3
Solved
I'm trying to add Microsoft.CodeAnalysis.FXCopAnalyzers (latest stable version) to my ASP.NET project. When I install it via NuGet, I get a ton of errors like:
An instance of analyzer Microsoft....
Nereus asked 25/1, 2019 at 18:7
7
Solved
I'm writing the startup code for an embedded system -- the code that loads the initial stack pointer before jumping to the main() function -- and I need to tell it how many bytes of stack my applic...
Shaky asked 17/6, 2011 at 14:51
7
I've got some unit tests, and got some code coverage data. Now, I'd like to be able to view that code coverage data outside of visual studio, say in a web browser. But, when I export the code cover...
Cooler asked 22/7, 2009 at 18:18
3
Solved
I know their complete counterparts mean that
NP - complete is the hardest in the NP problems and co-NP-complete means the hardest in co-NP problems but whats the difference between the two? My text...
Boggs asked 11/6, 2013 at 14:20
5
Solved
I'm using a closed-source application that loads Lua scripts and allows some customization through modifying these scripts. Unfortunately that application is not very good at generating useful log ...
Moorwort asked 14/5, 2009 at 22:48
3
Solved
Is there any way in PHP to do static code analysis and detect reliance on the register_globals initiative? It's relatively straightforward to manually examine a file and look for variables which ha...
Corroborate asked 7/8, 2012 at 14:52
3
So I'm trying to run a bunch of rules which are defined in a RuleSet. The RuleSet file is actually generated using Sonarqube - I've selected absolutely all rules in there, including the FxCop, ReSh...
Connie asked 27/5, 2015 at 18:26
6
Solved
I usually add an m_ in front of private fields and an s_ before static members.
With a code like
protected static readonly Random s_Random = new Random ();
I get the following warnings by VS200...
Vaporescence asked 27/4, 2009 at 12:16
3
Solved
I'm looking for a code duplication tool that is language agnostic. It's easy to find language specific code duplication tools (for Java, C, PHP, ...), but I'd like to run some code duplicatio...
Geophysics asked 15/11, 2012 at 13:35
2
Is there any FxCop or StyleCop that warns when there is an using statement that is no longer referenced by any object in the file?
Creon asked 19/8, 2016 at 15:58
3
I'm trying to disable a code analysis rule across an entire class, but NOT for the entire project, just a single class. In the example below, the build generates a CA1822 warning because it thinks ...
Preterit asked 7/7, 2016 at 13:21
4
Solved
Today I'm on a mission to remove little red X's from my django project in pydev. Mostly, this involves fixing import problems with pydev.
I'm using South for database migrations. South (if you do...
Ecosystem asked 31/8, 2010 at 0:19
5
Solved
I use underscores for my test methods for a better readability and I want to suppress FxCop errors/warnings for the whole test namespace.
How can I achieve this? I played with GlobalSuppressions.c...
Roughish asked 6/7, 2012 at 9:37
1
I want to generate code analysis report from the Build Pipeline. I have recently moved from Fxcopcmd.exe to Roslyn based analyzers.
I am able to see warnings in the build log, but I am not able to ...
Steffi asked 30/3, 2020 at 11:51
0
Does anybody know this error: Code analysis failed with exception: org.jetbrains.kotlin.utils.KotlinExceptionWithAttachments: unexpected 2 declarations ?
Thanks :D
Wesleyanism asked 26/3, 2020 at 21:32
13
Solved
I've got a Python project using PyDev in Eclipse, and PyDev keeps generating false errors for my code. I have a module settings that defines a settings object. I import that in module b and assign ...
Purim asked 21/1, 2010 at 20:40
4
I've read a lot about the Visual Studio Code Analysis warning C6386, but can't figure out this particular issue with my code. I've reduced it to the following small program:
unsigned int nNumItems ...
Bissextile asked 30/1, 2017 at 19:19
3
Solved
I have the following code in my application:
[DllImport("user32.dll")]
private static extern int GetWindowLong(IntPtr hwnd, int index);
[DllImport("user32.dll")]
private static extern int SetWind...
Trifurcate asked 20/10, 2011 at 14:25
© 2022 - 2024 — McMap. All rights reserved.