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 ...
4
votes
Accepted
Swift and Objective-C code analysis and style tool
I've found SwiftLint and Tailor, which both enforce Swift style and convention best practices.
Both can be run from the command line as an external tool, or integrated with Xcode.
Both are well-...
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 ...
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 (...
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 ...
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 ...
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 ...
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 ...
2
votes
Static code analysis tool for multiplatform project with good coverage of C++11 features
You can try CppDepend, a pretty complete static analysis tool which integrates a wide range of features, and 100% integrated to Visual Studio.
2
votes
Static code analysis tool for multiplatform project with good coverage of C++11 features
In the past, for old-school C/C++ code, I used PC-lint, a commercial software developed by Gimpel Software.
The company actually develops a couple of static analysis tools: PC-lint and FlexeLint.
Pc-...
2
votes
Swift and Objective-C code analysis and style tool
You could take a look at:
SwiftLint - Gratis & Open Source
Atom Linter + SwiftC plugin - Also Gratis & Open Source but requires Atom so may not suit your usage.
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 ...
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.
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 ...
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.
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 ...
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:
...
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 ...
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.
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 ...
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.
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 ...
1
vote
Measuring cyclomatic complexity per unit
You could also take a look at OovAide, formerly oovcde, which is a Free, Open Source, standalone C++ or Java analysis IDE for Windows or Linux.
It offers the following features:
Complexity ...
1
vote
Accepted
Draw C++ assembly dependencies in Linux
The answer to your question is to use doxygen to parse your code and get it to produce, via GraphViz dot tool, any diagrams that you need.
Parse Multiple Layers of C++ - Yes
Multiple Code Languages - ...
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 ...
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 ...
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++ ...
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.
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 ...
1
vote
Software call graph to show "trace" from one function to another
Why Callgrind doesn't work well
I ended up not using Callgrind for this after all, as it produced too many nodes that had nothing to do with the functions I was interested in and only appeared ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
code-analysis × 85c++ × 19
source-code × 13
java × 11
c × 11
c# × 10
code-review × 10
gratis × 7
library × 7
python × 6
linux × 5
php × 4
visual-studio × 4
continuous-integration × 4
fortran × 4
javascript × 3
software-development × 3
osx × 3
debugging × 3
windows × 2
open-source × 2
security × 2
ide × 2
.net × 2
graphs × 2