Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [code-analysis]

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

0
votes
0answers
5 views

C++ analyzer tool to check possible ISO orderings

I want to write ISO C++ code, but there are some questions I don't have answered, reading through the documentation I sometimes do not get a satisfying answer. (And every time a question arises, I ...
1
vote
0answers
4 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
10 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(){ ...
1
vote
2answers
57 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?
0
votes
0answers
6 views

what is a good static analysis tool for JS/Node/TypeScript

I have to analyze the source files to check which fields are modified or used by which functions, "code smell", "code coverage", not so much worrying about security scans for now. Any ideas/...
0
votes
0answers
10 views

“Simulator” for C Code or Assembly

I am hoping to find an app with GUI that allows the user to do dynamic analysis for code comprehension. Note that the main goal here code comprehension by the human reader, and not other uses of ...
1
vote
0answers
3 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
22 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
10 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
21 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 ...
0
votes
0answers
12 views

Javascript/QML code-analysis library that can be integrated in a C++/Qt application?

I have a C++ Qt application that I would like to make scriptable. The user can write JS/QML scripts and compile them using Qt's QJSEngine. In the application's script editor, I would like to have ...
1
vote
0answers
14 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 ...
0
votes
0answers
6 views

What are some good tools for analyzing legacy javascript?

I'm considering joining my first open source project. This one is a game written in javascript & HTML5 and I would like to get some recommendations for tools to use for analyzing the existing code ...
0
votes
0answers
5 views

I want to do real time visualization using any visualization tool and spark streaming using scala

I want to do real time visualization using any visualization tool and spark streaming using scala . objective : 1. capture the twitter stream , analyse , mine and send it to the visualisztion tool....
0
votes
0answers
9 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
35 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
34 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 ...
1
vote
0answers
73 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
27 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
26 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
107 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
205 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
33 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 ...
4
votes
0answers
662 views

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

I was using Code Contracts in several projects and I was really satisfied with it's static checker and propagated it across other developers. With new Visual Studio 2017 and .NET Core projects I ...
0
votes
1answer
58 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
50 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
135 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
54 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
48 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
52 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
97 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
24 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
72 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
157 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
557 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
72 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 ...
3
votes
1answer
160 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
40 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
95 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
132 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
78 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
339 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
50 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 ...
2
votes
2answers
460 views

Software call graph to show “trace” from one function to another

To help me understand large software projects, I'm looking for a program that reads Callgrind data (or another common and easily generated call-graph format) of software written in C, specifically so ...
2
votes
3answers
619 views

Measuring cyclomatic complexity per unit

I have been asked to measure a 50K+ line Java project for it's CC, Cyclomatic Complexity, per unit. In Java, a unit would be a method. All the tools I have found measure the overall CC of the project....
1
vote
1answer
37 views

Draw C++ assembly dependencies in Linux

I've been moving most of my development to Linux for the past 2 years. One of the things I haven't figured out how to migrate yet is drawing assembly dependencies for C++ projects. In Visual Studio ...
9
votes
2answers
245 views

Static code analysis tool for multiplatform project with good coverage of C++11 features

I am an old school C++ developer and even today I have no professional C++11 experience. I trust the C++ committee that the language is moving in the right direction, but it seems that in the projects ...
6
votes
2answers
5k views

Swift and Objective-C code analysis and style tool

I'm looking for a tool to help the automation of best practices for Swift and iOS. One that can learn and enforce best practices, and enforce code style based on a set of custom or preset rules. The ...
1
vote
1answer
285 views

Tool assisting 32 to 64 bits C++ migration on a huge code base

TL;DR : I need tools to locate problematic code in a 32 to 64 bits C++ Linux migration (tools can be under Linux or Widows). So here it is, I have a huge c++ application (we are talking more that ...
5
votes
1answer
240 views

Fortran Code Metric Tools

This is a question I originally posted on Stackoverflow, and got the recommendation to put it here instead: In the past I have used ohcount to count the number of lines in our Fortran projects, and ...