1,895 questions
3
votes
1
answer
98
views
How to chunk code at semantic boundaries when a single AST node exceeds the chunk size limit?
I'm building a code indexing tool for LLMs using tree-sitter in Go. The goal is to split source files into chunks (~600 lines) that respect function/class boundaries for better LLM context.
When a ...
2
votes
1
answer
204
views
Visual Studio 2026 C# Code Analyzer CS1998 is missing
Consider async method
public async Task StartAsync(CancellationToken cancellationToken)
{
}
Visual Studio 2022 correctly shows the Warning CS1998 "This async method lacks 'await' operators and ...
2
votes
1
answer
187
views
Interface vs concrete type declaration: benchmarking oddity
I am applying code analysis rules to a C# project and am trying to evaluate the merits of CA1859: Use concrete types when possible for improved performance.
Performance is only one consideration here, ...
0
votes
1
answer
38
views
.NET CLI code coverage analysis include module not working as expected
As part of the CI/CD for our project we run code coverage analysis on the pipeline using a similar command to:
dotnet test D:\a\1\s\OurSln.sln
--logger trx --results-directory D:\a\_temp
--...
-1
votes
1
answer
96
views
How do I access declarations (such as variables) inside a function using pygccxml
Given the below code, how would I access the myVar declaration, using pygccxml?
#include <windows.h>
void someFunction()
{
LPBYTE myVar;
}
0
votes
0
answers
15
views
Code analysis tool for Monolith java based application migration to SOA
We have a monolithic application and we want to create multiple service based projects(REST APIs). Is there a product available in market which can measure some of the improvements such as
How much ...
0
votes
1
answer
62
views
Very strange message when analyzing the source code
Very strange message when analyzing the source code.
int? x;
if (x == null) {
//
}
The operand can't be null, so the condition is always 'true'.
Remove the condition.dartunnecessary_null_comparison
...
2
votes
1
answer
249
views
How to disable .NET analyzers from a specific NuGet package
I have a .NET project that references a library from another project via an internal NuGet server. The referenced project uses third party code analyzers (StyleCop) also referenced via NuGet and does ...
1
vote
2
answers
99
views
How to configure Visual Studio not to analyse code in a specific file
Is it possible to tell Visual Studio to not analyze a specific file? In this case, GlobalSuppressions.cs. I can't find any setting for it in options.
I'm also trying to avoid messing up my code with ...
0
votes
1
answer
72
views
I need to count the lines of code in the function's call tree
I have a function in my code. I need to count the lines of code in its call tree. That is, I need to count the number of lines in this function, plus all the lines of code in the functions it calls, ...
2
votes
1
answer
65
views
Is it possible to create custom code analyzers for F#
I would like to know if it is possible to add custom code analyzer for F# like you can for C# / VB# with Roslyn? Are there some frameworks/projects I can leverage to do it?
In addition, I would like ...
1
vote
1
answer
183
views
The caller of the function takes ownership of the data, and is responsible for freeing it
The note quoted in the title can often be found in the documentation of GTk4.
My question is this: Is there a technical way to check a program to determine whether all relevant data has been duly ...
1
vote
0
answers
104
views
Code analysys shows an error, but the code compiles
In the following C code the code analysys (the one from C/C++ vscode extension) highlights an error on DEFINE_INDEXING_FUNCTION macro, but when I compile the code with GCC (gcc -Wall -Wextra filename....
1
vote
1
answer
742
views
How to Convert Json value into Sarif format
how to convert this values into sarif
Vulnerablilites: {
"id": "66c5b89700fbf372c2f1f182",
"method": "post",
"path": "/user",
"type&...
5
votes
0
answers
157
views
Unable to verify if logback is the sole logging implementation with jqassistant
I am trying to verify with jqassistant that we only implement logback (and slf4j) for logging.
I'm using version: 2.4.0 and the analyze goal seems to be successful but it shouldn't be. For testing ...