Giter Site home page Giter Site logo

bubo's Introduction

Documentation MIT License Swift 5.2.4

Bubo

Bubo is an opensource sourcecode analyser for Swift.

The tool has been developed to support developers in the endeavour of decomposing Swift server-side applications into microservices and provides an infrastructure to manage the decomposition process.

Bubo is still under development and is not stable! Contributions are welcome, please check the contributions section if you want to help out.

Requirements

Bubo has been developed for the use with macOS 10.15.5 and Swift 5.2.4 and higher.

As Bubo makes use of the clang compiler, it is required to run on the specified Swift version.

Setup

Bubo can be build via the swift compiler:

  1. Clone bubo to your prefered directory
git clone <url>
  1. Move into the cloned repository
cd Bubo
  1. Build Bubo via the command line
swift build

Due to a linker error with SwiftSyntax, building from Xcode does not work out of the box.

To solve this issue, you can create an alias to the corresponding library as follows:

ln -s $(xcode-select -p)/../Frameworks/lib_InternalSwiftSyntaxParser.dylib /usr/local/lib

Usage

Bubo provides you with a comprehensive command line interface based on the swift-argument-parser.

As Bubo is still in its prototyping phase, you can use the executable generated in the .build/debug directory.

To check if Bubo has been set up correctly, type:

$> ./.build/debug/Bubo status

Bubo allows you to create projects and manage a set of services in a project. A service is any kind of Swift based program that forms an individual deployment unit in your system.

For a full documentation on how to use Bubo, we refer you to Bubo's help pages:

$> ./.build/debug/Bubo -h

Technical Background

Bubo uses SwiftSyntax and the IndexStoreDB, to generate structural dependency graphs for arbitrary Swift programs.

These dependency graphs are the basis for analysis operations and feature location.

The structural analyser is still work in progress. A semantic analyser and feature location component are planned. We will update this README, when we can provide you with more information on this.

Contributing

Contributions to this projects are welcome. Please make sure to read the contribution guidelines first.

License

This project is licensed under the MIT License. See License for more information.

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.