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
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
8 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
13 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
4 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
34 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
33 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
71 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
103 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
170 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
31 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
612 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
57 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
49 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
122 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
47 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
50 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
92 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
71 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
150 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
545 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
149 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
91 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
131 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
74 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
319 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
49 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
429 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
593 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
36 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
273 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
230 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 ...
1
vote
0answers
65 views

What do would you recommend for Java code analysis (if anything)?

Let's risk this rephrasing of a question posted under Programmers. We're looking for something to run as part of our (Java) CI process for finding bugs, formatting issues and reporting on code ...
1
vote
2answers
50 views

Find calls to typed functions which do not check the return value

I want a tool to parse C / C++ (others welcome, particularly PHP, but C / C++ == priority) and find calls to typed functions which do not check the return value. I don't see a g++ option (does MS ...
8
votes
0answers
64 views

Static analysis tool that catches dangerous captures

In C++11, programmers are given control over how lambdas capture values: each value used in the lambda expression (other than the arguments to the lambda itself) is captured either by reference or by ...
2
votes
0answers
33 views

Code analysis tool for Visual web developer 2005

I am currently doing a project in Visual Web Developer 2005 Express Edition. It is written in C# and the target browser is IE6. (these are requirements of the client) The client is very strict when ...
1
vote
2answers
125 views

C code for evaluating static code analysis tools

So, I am switching back to C coding soon. I have previous experience of Gimpel Lint and Splint, but would like to check out a few others. Does anyone know of some C code which is specifically ...
3
votes
1answer
59 views

Hosted static analysis tool for C++

CodeClimate is a great tool for analysing JavaScript/Ruby code but sadly it does not support C++ yet. Where could I find a similar tool that: analyses C++ code for quality and performance. ...
6
votes
1answer
1k views

Tools for creating call graph for Ruby application?

I am looking for tools that create call graph for Ruby applications, like this https://pycallgraph.readthedocs.org/en/master/ but unfortunately it's for Python. Anything that could help me analyze ...
2
votes
1answer
49 views

Find all uses of a variable in code

I am aware that some IDEs, like MS Studio have an option to find all uses of a variable in code. However, from what I can see, that finding stops when you pass a variable as a parameter to a function....
1
vote
0answers
51 views

Tool to help Understand Disorganized, Very Unconventional and Legacy Code - Temporary [closed]

Anyone have experience using Brackets? (the tool, not literal brackets) Anyone have any suggested tools, solutions or advice? The Plot Spaghetti Bowl Disorganized, Very Unconventional and Legacy ...