Skip to main content
5 votes
Accepted

Tool to compare two source code files on Windows

From my answer to this question - two days ago HINT: you can search our site for questions similar to the one that you plan to ask. I don’t think that you will get a better open source application ...
Mawg's user avatar
  • 9,033
3 votes

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

I released Cyclomatic Complexity Analyzer for shell script. ShellMetrics - Cyclomatic Complexity Analyzer for shell script https://github.com/shellspec/shellmetrics It measure NLOC (Non-comment Line ...
Koichi Nakashima's user avatar
3 votes
Accepted

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

[2 months and no responses. I'm providing a commercial answer since no other answers seem forthcoming.] Our Source Code Search Engine (SCSE) is used to search large repositories containing many (...
Ira Baxter's user avatar
  • 1,134
3 votes
Accepted

Find dead code in a C program by runtime analysis

Given that @user2284570 is in the comfortable situation of covering 100% of use cases via tests dynamic code analysis will provide the answer. In other cases removal of functions, their calls and ...
Harri's user avatar
  • 239
2 votes

Tool for calculating metrics from source control

In the book Your code as a crime scene (Amazon Germany), Adam Tornhill uses version control systems to find a lot of interesting facts and presents them in a "new" way. The cool thing is that the ...
Thomas Weller's user avatar
2 votes

Source code analyzer tool (similar to RATS)

As Ira Baxter pointed out in the comments, the source for RATS is still available at https://code.google.com/archive/p/rough-auditing-tool-for-security/downloads A binary for Windows 32bit is ...
davidwebster48's user avatar
2 votes
Accepted

Static code analysis tool for C#

Refactoring Essentials for Visual Studio and other IDEs is an open source tool that has features which include refactorings for C# and analyzers and code fixes for C#. Refactoring Essentials comes in ...
karel's user avatar
  • 1,626
2 votes
Accepted

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

I’ve had some success using a tool called CppCheck via a Jenkins CI system. I don’t specifically track conditional branches, but, the amount of checks this tool provides is worth the look. In ...
rrirower's user avatar
  • 1,159
2 votes

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

You can try CppDepend and its dependency matrix which report all dependency cycles between namespaces and classes.
James from CppDepend Team's user avatar
2 votes

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

OP seems to want a tool that produces for each variable, what functions can read it, and what functions can write it. That's equivalent to a tool that computes, for each function, what variables it ...
Ira Baxter's user avatar
  • 1,134
2 votes

C++ code representation for automatic design patterns detection

You can try CppDepend and the code query langugae CQLinq to detect some design patterns. Here's an article that explains how to do it.
James from CppDepend Team's user avatar
2 votes

C++ code representation for automatic design patterns detection

Your "simplified view" would need to apply the C/C++ preprocessor, apply includes, and parse - at the very least. That's most of the front-end part of a compiler. It's really not a good idea to try ...
einpoklum's user avatar
  • 3,239
2 votes

Software call graph to show "trace" from one function to another

There is gprof2dot is a python which can process such output, without the size limitations, to produce a dot file that can then be converted to a graph using graphviz it can process the output of: ...
Steve Barnes's user avatar
  • 31.6k
2 votes
Accepted

Code quality tool for JIRA

For code static analysis you can use SonarQube: it supports coverage and complexity metrics it takes external tools results (pylint, jslint, etc) supports Js and Python, not sure about Perl provides ...
Gonzalo Matheu's user avatar
2 votes

Tool to compare two source code files on Windows

CudaText editor is gratis. It has plugin "Differ", it can be installed from "Plugins - Addon Manager - Install". To call plugin, use "Plugins - Differ" menu.
User's user avatar
  • 21
2 votes

Tools for faster code reading or understanding

You can visualize the structure of applications & libraries, pull out any documentation and have syntax highlighted & hyperlinked code views of the codebase by generating a document set with ...
Steve Barnes's user avatar
  • 31.6k
1 vote

Code Analysis Tool for C#

Visual Studio can perform code analysis of managed code in two ways: with Binary analyzers, also known as FxCop static analysis of managed assemblies, and with the more modern Roslyn analyzers. Roslyn ...
karel's user avatar
  • 1,626
1 vote

Python pure code analysis library for major programming languages

Does anyone know of such a library or will I have to build one on my own? I think you might have to build your own. That said, I could possibly offer some advice, having had similar ideas earlier: ...
lonetwin's user avatar
  • 131
1 vote

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

I think there is no one tool that does everything. But the best tools for your requirements in my opinion are: coverage.py pylint
rominf's user avatar
  • 66
1 vote

Tool to automatically apply 'const' to C code

What you need is a tool that can parse (real) C code, compute side effects of functions (and check to see if the parameters are in that list), can modify the parameter lists and regenerate the source ...
Ira Baxter's user avatar
  • 1,134
1 vote

Getting the paths between valid pages of a web application

Doxygen might be the way to go. It supports php and can analyze the code and generate documentation from it as well as call / caller graphs.
albert's user avatar
  • 390
1 vote

Getting the paths between valid pages of a web application

Visitors would match your requirements. It is an open source, fast and easy to use web log analyzer which generates access statistics from specified web log files. Included is the functionality to ...
Izzy's user avatar
  • 18.8k
1 vote

A Java library for language-independent source code analysis

I'm using Polyglot. The API is particularly anti-ergonomic, ugly and against pretty much each one of modern Java conventions I know. But it seems to do the job.
AmazingWouldBeGreatBut's user avatar
1 vote

C++ code representation for automatic design patterns detection

Our C++ front end does C++ language-precise parsing, builds ASTs, and does full name and type resolution, and constructions control and data flow graphs of each function/method. [As a practical ...
Ira Baxter's user avatar
  • 1,134
1 vote

Fortran Code Metric Tools

Semantic Designs' (my company) Source Code Search Engine (SCSE) provides this capability. SCSE is mainly used to search large source code bases in many files in multiple programming languages ...
Ira Baxter's user avatar
  • 1,134
1 vote

Python minimum required version code check tool

I know of pyqver and used it sometimes but it seems it's been years with no developed/updates, so it could still be useful if you're dealing with old scripts but if you have to check code that ...
danicotra's user avatar
  • 435
1 vote

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

I found that a combination of DeGraph + yEd will work. at yEd: it seems a bit buggy as it will not show some things when we click on them, other times will show after a few retries. The main tip is ...
Aquarius Power's user avatar
1 vote

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

I doubt you are going to a tool that does exactly what you want out of the box. You can collect this information from a C++ "parser" that knows how to resolve C++ names fully (that means a full C++ ...
Ira Baxter's user avatar
  • 1,134
1 vote

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

You can also try CppDepend Which provides many features concerning the dependencies and a code query language to create easily your dependencies rules.
James from CppDepend Team's user avatar
1 vote
Accepted

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

You have two problems to solve: Getting the inheritance graph across a large C++ application Discovering the diamonds The first part is complex because parsing C++ to obtain this inheritance ...
Ira Baxter's user avatar
  • 1,134

Only top scored, non community-wiki answers of a minimum length are eligible