GithubHelp home page GithubHelp logo

amai2012 / deepends Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grimtraveller/deepends

0.0 1.0 0.0 901 KB

Visual Studio Extension for extracting architecture information

License: GNU Lesser General Public License v2.1

C# 97.43% Batchfile 0.09% HTML 1.25% CSS 0.66% Python 0.57%

deepends's Introduction

DeepEnds

Dive into architecture with DeepEnds...

Binaries are available as a Visual Studio extension and as a NuGet package.

Introduction

DeepEnds analyses the dependencies between children of a node in a tree. The tree hierarchy may be formed from namespace and class, file name and filter or in a bespoke manner. The software is supplied as a Visual Studio 2015 extension that calls into a console application allowing for batch running.

Input

Visual C++

The software takes a list of sln and vcxproj files and will parse C++ source files for their #include statements, these source files then form the leaves of the tree. The hierarchy is composed from the filter as specified in the associated vcxproj.filters files.

.NET

The software takes a list of sln, csproj, vbproj and .NET assemblies (exe, dll) and extracts a hierarchy based on namespace and class.

Doxygen XML output

The software takes a single XML file path and scans its parent directory for all XML files. The software then reads any specified compounddef and memberdef items to form the leaves. This also allows the user to input data from their own parser where a leaf can be represented by XML of the form

  <compounddef id="class_f_e_a_1_1_labels_1_1_mapped" kind="class">
    <compoundname>FEA::Labels::Mapped</compoundname>
    <ref refid="class_f_e_a_1_1_labels_1_1_base"/>
  </compounddef>

where id and refid are identifiers for the leaves and the hierarchy is specified in compoundname using :: as a separator.

DGML

The software will read in a DGML file which may be produced by this software or another tool

Output

DGML graph

DGML

This XML file format has a viewer within Visual Studio that displays nested graphs in an interactive editor.

CSV table

For each graph a series of statistics are reported:

  • Whether there is a cycle
  • The Cyclomatic number
  • The number of leaves which aren't a child, grandchild, etc. of the graph
  • The sum total number of lines of code
  • The average number of lines of code of the leaves

HTML / Markdown report

In addition to the table contained in the CSV file a number of other tables are displayed. These are described in the report itself and can be found in example output.

Doxygen comments

The contents of the HTML report are written out as equivalent comments to be parsed by Doxygen. Additionally each graph is written out for processing by Dot to produce an embedded image of the graph. Note that for a large project it is possible for this to overwhelm Doxygen.

Further reading

Architecture

Design of this code

deepends's People

Contributors

amai2012 avatar zebmason avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.