code-analysis Questions
13
Solved
I have a binary file. I don't know how it's formatted, I only know it comes from a delphi code.
Does it exist any way to analyze a binary file?
Does it exist any "pattern" to analyze and deseri...
Stabler asked 22/6, 2009 at 8:24
1
Solved
I have placed all python project sources in a single folder. Running the following pylint only seems to be looking and analyzing for duplicates within each source file and not across all which is w...
Ensign asked 10/3, 2020 at 15:0
5
Solved
I ran the VS 2008 code analysis tool against an object I created and received the following suggestion ...
Warning 147 CA1021 : Microsoft.Design
: Consider a design that does not
require that ...
Tadd asked 10/9, 2009 at 12:4
3
Recently, I had the following
struct data {
std::vector<int> V;
};
data get_vector(int n)
{
std::vector<int> V(n,0);
return {V};
}
The problem with this code is that when the st...
Mandamandaean asked 2/1, 2020 at 8:38
5
Solved
The following code generates two CA2000 warnings (among others, but that's not the point).
public sealed class Item: IDisposable
{
public void Dispose() {}
}
public sealed class ItemContainer
{
...
Overmeasure asked 14/10, 2010 at 10:16
6
Solved
So I have a C# class library project that I only intend to use on Windows. It contains some classes that use the System.Drawing.Image class which is only available on Windows. After upgrading to Vi...
Sepoy asked 11/11, 2021 at 23:14
4
Solved
I am getting a code analysis warning that seems to be a false-positive.
CA1812 : Microsoft.Performance : 'MyClass.MyPrivateClass' is an internal class that is apparently never instantiated. If s...
Spiccato asked 14/8, 2013 at 8:28
5
Solved
While searching through a Python project, I found a few lines commented with # noqa.
import sys
sys.path.append(r'C:\dev')
import some_module # noqa
What does noqa mean in Python? Is it specific...
Dieterich asked 27/7, 2017 at 9:25
4
Solved
I am currently storing normalized versions of strings in my SQL Server database in lower case. For example, in my Users table, I have a UserName and a LoweredUserName field. Depending on the contex...
Trott asked 21/4, 2009 at 17:32
6
I am using following commands to use the oclint with xcode 5-
Step1: xcodebuild -target OClintDemo -configuration Debug -scheme OClintDemo -sdk iphonesimulator
Step2: OClintDemo jenkins$ xcodebui...
Shellyshelman asked 22/8, 2014 at 9:54
3
Solved
http://klee.llvm.org/ is a program analysis tool that works by symbolic execution and constraint solving, finding possible inputs that will cause a program to crash, and outputting these as test ca...
Zuniga asked 21/4, 2011 at 10:11
1
When publishing an ASP.NET Core 3 API netcoreapp3.1 project with Visual studio 2019, several code analysis dlls are published too. Moreover the dlls are published in 13 languages plus the english v...
Fortuneteller asked 27/2, 2020 at 12:19
2
Currently I'm getting CA0055 and CA0052 code analysis errors (both with Visual Studio 2017 and also by using MSBuild command) after configuring ASP.Net Core 2.0 application with custom code analysi...
Kafka asked 7/10, 2017 at 6:15
1
Solved
I'm using an .editorconfig file on a global level for the entire solution. This is working fine so far. The existing rules do work.
Now I want a rule for VSTHRD200 for my test projects and classes,...
Millet asked 12/5, 2021 at 6:24
4
I'm looking for a Static Application Security Testing (SAST) tool and I can't afford the commercial products (eg. Checkmarx).
SonarQube is a great static code analysis tool but I notice that ther...
Perigon asked 24/11, 2017 at 10:18
9
Solved
I'm trying to write code that returns whether or not a given integer is divisible evenly by 1 to 20, but I keep receiving the following error:
error CS0161: 'ProblemFive.isTwenty(int)': not all...
Deoxygenate asked 17/1, 2014 at 20:47
2
I am relying on this extensively on my workflow, but for some reasons this feature is now warning me of all the problems coming from node_modules, which obviously I'm not interested in.
How can I ...
Pigg asked 2/8, 2022 at 15:37
9
After upgrading my WinForms VS2013 project to VS2015, I started seeing the MSB3884 "Could not find rule set file" warning.
A Google search turned up one MSDN article, which a Stack Overflow articl...
Battleax asked 10/11, 2015 at 18:42
3
Solved
Code analysis:
ON_NOTIFY(TCN_SELCHANGE, IDC_TAB_HISTORY_TYPE,
&CAssignHistoryDlg::OnTcnSelchangeTabHistoryType)
Warning C26454:
Arithmetic overflow: '-' operation produces a negative uns...
Fives asked 2/7, 2018 at 15:28
2
This seems a pretty straightforward thing to do, but I cannot find relevant information. In Visual Studio is very easy to calculate code metrics for all projects and I would like to do the same dur...
Descent asked 5/5, 2021 at 18:40
3
Solved
Analyzer feedback severity levels are explained in the documentation. But in my eyes silent and none severity levels seem both to have the same meaning - "I don't want this rule checked for":
For ...
Upgrade asked 18/11, 2019 at 12:36
4
Solved
Is there a tool around that will list all the global variables in a C program? More specifically, is there a simple commandline tool that will do this, i.e. not a heavyweight IDE, CASE, graphical t...
Mcmillen asked 21/5, 2011 at 16:20
9
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 FxCo...
Conni asked 11/12, 2008 at 13:13
2
Solved
CA1305 is raised when there exists an overload that requires an IFormatProvider but this overload isn't used in the code.
For example, the following code raises this warning:
string.Format("{0} -...
Fourway asked 22/10, 2012 at 11:31
5
Solved
We have several C++ projects that were built from the same codebase. There's a lot of similarities and common code between them but they were developed independently; source was not shared in any w...
Rentsch asked 22/9, 2009 at 18:28
1 Next >
© 2022 - 2024 — McMap. All rights reserved.