Questions tagged [code-analysis]

tools to analyze source code (or sometimes binary code): code metrics, static analysis, test coverage, etc.

Filter by
Sorted by
Tagged with
2
votes
0answers
9 views

Looking for a concurrent data structure checker

While reading “C++ Concurrency in Action 2nd Edition” by Anthony Williams, I stumbled across a sentence about an automatic tool that verifies concurrent data structures. He said that such tools exist, ...
1
vote
0answers
26 views

Program to write “math” logic for code semantics

Tldr; Allows the user to define valid program state, valid program interactions, and then looks for sequences of interactions that would violate the valid program state. Requirements Runs on linux ...
0
votes
0answers
10 views

Tool that reports non-local (global) variable declarations in bash and/or zsh functions

Is there any code analysis tool that reports non-local (global) variable declarations in bash and/or zsh functions?
0
votes
0answers
16 views

Adding Formal Code Verification to C++

I am wondering if anyone has used/developed a code verifier for C or C++ that has been used beyond academic research (i.e was it used for actual work and not just as a proof of concept for a paper). ...
0
votes
0answers
14 views

Understanding the structure of a NodeJs (or Dart) codebase

I use DoxyGen to help me understand the structure of an existing codebase. It will generate class diagrams function call trees (and more) from source code. Is there something similar for Node.Js? (...
2
votes
1answer
60 views

Tools for faster code reading or understanding

There is known ways of how to read code faster (e.g. see the reference first / find the root call / find the hub for components / etc.), but these are all human ways. Is there any tools which help ...
1
vote
1answer
47 views

Free tools to assist code reading

I'm reading a book which mentions that there are some tools which can assist code reading and understanding complex systems, and most developers are not aware of them, but the book does not name any ...
2
votes
0answers
10 views

Is there any tools or plugins to check “try” coverage for C#?

I'm looking for a tools, to check if "try-catch" is used properly in codes. E.g. I have a method: /// <exception cref="NotImplementedException">Not implemented</exception> public void ...
1
vote
0answers
17 views

Is there a source code analysis tool, which facilitates assisted navigation in both space and time?

In the good ol' days, source navigator often came to the rescue for going through big chunks of code (hello to x-users of the tool and thank you RedHat!). Lots of things changed since then and new ...
0
votes
0answers
10 views

Software to draw Codeflow

i am a newbie in coding. Now i am reading a big project source code and there are many thing need to be remembered. So i need to use a software to draw code flow and relationship betwwen functions in ...
0
votes
0answers
12 views

Best php static code analyzer for eclipse?

Can someone recommend me the best and easy static code analyzer or plugin used for code review for php in eclipse? Thanks in advance.
1
vote
1answer
46 views

Code Analysis Tool for C#

Can you please recommend an industry standard static code analysis tool for C# language. It should take care of all the coding guidelines. Got the below tools which are licensed. Currently using ...
0
votes
0answers
7 views

Analyze C code and return the contents of all the functions

I am not sure if a software for this exists or not. But I want a tool which looks at C code and returns a data structure like a hashmap, where the key is the name of the function and the value is the ...
1
vote
0answers
22 views

Static code Analysis tool for C Source Code with MISRA Compliance to embed within C# Project

I have a Console Application written in C#. Here, I should embed a Static Code Analyser tool within C# Console Application which should analyse C Code.(here, .c and .h file(s) will be given as input ...
0
votes
0answers
11 views

Is there a tool I could use to scan through all possible code paths and submethods of a C# method and return occurrences of a specific string?

Suppose I have the following code public class RandomClass { public void MethodOne(){ MethodTwo(); Console.WriteLine("Include Scarab"); } public void MethodTwo(){ ...
2
votes
3answers
102 views

Tool to compare two source code files on Windows

Are there any gratis tools to help me compare the differences between two source code files? (for Python, and C++)on Windows 10?
1
vote
0answers
4 views

Tool for quick java code coverage check for Live deployment based on UI interaction

My context is I have an application (consider it as a black box for now) deployed on a JBoss server. I am in the process of analyzing and studying the application and has a very limited time frame to ...
1
vote
0answers
26 views

How can I analyze C# intra-assembly dependencies?

I'm working on a software project in C# whose source code is mostly is compiled to one assembly. Let's call it Monolith.dll. I have since decided that I should probably split Monolith.dll into ...
0
votes
1answer
17 views

Python pure code analysis library for major programming languages

Is there a Python library that analyzes a source code file so that I can list all classes and method names and possibly print them as a tree? Furthermore, I need to pass a character argument to it ...
0
votes
1answer
33 views

Tool that shows Python unit test coverage module-wise, analyzes static code quality and finds common poor practice

Is there any tool built specifically for python code quality and test coverage? What i expect from that tool: To show unit test coverage module wise. To analyze static code quality and find common ...
1
vote
0answers
16 views

Recommendation for Python Code Analyzer

I am seeking recommendation library/software for analyzing python source code statically. The expecting results from the library are What are the third party libraries used in the code What are the ...
1
vote
0answers
11 views

Software like codeclimate hostable by myself

The situation: There are many services which analyze the code quality based on common tests. Most of them aren't free or (like codeclimate) require GitHub. At the same time there is a free package ...
2
votes
0answers
37 views

Show all possible paths from a specific function

Originally posted on stackoverflow, but they indicated this question would be a better fit for here. https://stackoverflow.com/questions/52928683/show-all-possible-paths-from-a-specific-function For ...
2
votes
1answer
35 views

Tool to automatically apply 'const' to C code

We are planning to make better use of the const qualifier in our C code. To speed this up for our existing codebase, I'm looking for a tool that automatically applies const to function parameters ...
3
votes
0answers
124 views

ABC-metrics & measuring python-code quality

is there a library for python evaluation of code complexity that implements ABC-metrics (Assignment Branch Condition)?
0
votes
0answers
29 views

Software to analyze an exe file

I'm looking for an application with a good GUI that will 1) Record all the activities done by the executing program. (Reading/Writing/Modifying) files changes to system settings or registry or any ...
3
votes
0answers
27 views

Detect union access errors in C

Let's say I have a variant type in C implemented as an annotated union: enum var_mode { TYPE_A, TYPE_B }; union var_data { int a; double b; }; struct var_type { enum var_mode ...
1
vote
2answers
109 views

Getting the paths between valid pages of a web application

Suppose that we have a simple web app consists of following valid pages: login.php (params: username, password) index.php (params: product_id) product.php When we enter the username and password ...
4
votes
2answers
386 views

Code Style enforcement tool (Bitbucket Cloud would be nice)

I work in a team of 5 developers. We would like to enforce a code style from now on. However we cannot find a suitable Bitbucket Cloud integrations. If we had Bitbucket Server Code Review Assistant ...
1
vote
1answer
34 views

Code quality tool for JIRA

We use JIRA from Atlassian and would like to know if there are analysis tools for measuring code quality when the code is written in javascript, python and perl? I have signed up for measuring code ...
8
votes
0answers
1k views

The best Code Contracts alternative for VS 2017/2019 and .net core projects?

I was using Code Contracts in several projects and I was really satisfied with its static checker and propagated it across other developers. With new Visual Studio 2017 and .NET Core projects, I found ...
0
votes
1answer
60 views

A Java library for language-independent source code analysis

I'm looking for a Java library that would allow for modeling the elements of the source of an OOP programming language and performing post-parse semantic analysis on them. This library might have ...
1
vote
3answers
56 views

C++ code representation for automatic design patterns detection

I'm working on a research project where I aim to build an a tool that automatically detect the implementation of certain design patterns in C++ code. C++ code being complex, I want to have a ...
1
vote
1answer
200 views

Python minimum required version code check tool

What do you suggest for checking Python code and know the minimum required Python version I need to run it?
2
votes
0answers
61 views

Plugin for Visual Studio to visualize code complexity over each method

I know NDepend which is a pretty complete tool for calculating code metrics but its not graphically integrated in Visual Studio source code editor. I'd like to see, at first glance, if the method I'm ...
1
vote
0answers
52 views

Looking for a tool to static code analyse

I'm looking for a tool which must meet certain requirements. I do some research and at the moment JArchitect is closest to expectations. This tool must: Work with Java (and maybe C++) Analyse code ...
2
votes
0answers
62 views

C# Code Analyzing tools for Linux with Mono framework that work with Command Line

Is there any tool that can dynamic or static analyison C# code and can be executed via Commandline/Terminal on a Linux machine that features the Mono (Open Source .NET) Framework? SonarQube (with its ...
1
vote
0answers
155 views

Is There Any Automated Code Review Tool/Service for Matlab?

I am looking for a service (or tool) like Codacy or any other popular automated code review tool supporting Matlab. Is there anyone knows one? I want to use it in git workflow. I need it to be ...
2
votes
1answer
29 views

Java light weight and free dependency lister/analizer/diagram generator?

I can't use IntelijIdea (it is too heavy here). I have tried some others that are Eclipse plugins or external application but some didnt work, or the usage and shown results were quite confusing or ...
2
votes
2answers
77 views

Is there a tool to extract all possible paths between two locations in code?

I am debugging a bug in C++ code that I did not write. I know that between location A and B in the source, something happened to produce this unexpected output. This is often the only information I ...
-1
votes
1answer
278 views

Questions list / checklist to ask before buying a source code? [closed]

I intend to buy a PHP source code from one company. Since i have plans to scale and improve the code afterwards it is important for me to know about software architecture. Is there some kind of a ...
1
vote
0answers
658 views

Control Flow Graph for C++ - static analyzer

I've created code coverage tool for C++. As output, this tool returns xml file with numbers of all executed lines in source files. Now, I would like to visualize analyzed source files as graphs, ...
2
votes
0answers
73 views

Identifying Fortran standard

I am looking for a program or web service that takes as input a file containing code written in Fortran, and outputs the Fortran standard used in the code (66/77/90/95/etc.) Any price, license or ...
5
votes
2answers
297 views

What software can I use to measure LLOC, function points and cyclomatic complexity of Bash scripts?

I want to gather a few statistical data about a repository to compare it through time. The goal is to know how the usage of specific languages evolved over time, and how the complexity and size of ...
1
vote
0answers
42 views

Command-line tool to scan for and suggest fixes for XSS and SQLi vulnerabilities in Perl?

For a customized online editor, I would like to automatically detect SQLi or XSS vulnerabilities and provide a convenient way to auto-correct them. Rather than creating my own scanning/suggestion ...
2
votes
2answers
107 views

Static C++ code analysis tool: finding the diamonds in a big source code

(Related SO question.) Consider there is a very large class hierarchy, from tens or even hunderds of classes. The inheritance diagram is also very complex (doxygen can't render it without half-page ...
7
votes
1answer
134 views

Is there a code analysis tool that can reduce my conditional branching?

I want to reduce the deep nested branching of this C code and I wonder if there is an analysis tool that can make a truth table for the conditions or if I must analyze it manually? I'd like to make ...
0
votes
1answer
81 views

Get the function for a specific line in a C source file [closed]

Is there some tool which I could use to find out the function name to which a specified source line number belongs? Example file: static enum foo bar(int c) { if (c < 30) return B1; ...
3
votes
2answers
501 views

What are some C/C++ static analysis tools for finding dependencies in code?

I am looking for a tool that would analyze C/C++ code on windows and should be able capture reads and writes to variables by different functions. For example: //in file1.c extern int a; write_to_a(){...
2
votes
0answers
51 views

Automatic Library Extraction from Java Source Code

I´m working on a Java source code analyzer and need to analyze about 50 Java projects. To analyze these projects I need to add the libs which are used in this projects. I do not have to build the ...