GithubHelp home page GithubHelp logo

isabella232 / shipshape Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/shipshape

0.0 0.0 0.0 296.21 MB

Program analysis platform

License: Apache License 2.0

Shell 6.14% Go 44.45% HTML 1.26% Java 29.40% JavaScript 3.03% Python 12.87% Dockerfile 2.64% C 0.19%

shipshape's Introduction

Shipshape is not actively maintained. The GitHub project has been archived.

Overview of Shipshape

Last updated: 2016-08-29

Build Status

Shipshape is a static program analysis platform that allows custom analyzers to plug in through a common interface. Shipshape is packaged in a docker image. When that image is run, a Shipshape analyzer service starts up and processes analysis requests. Structured analysis results are generated. Shipshape can be run as a command-line interface, or as a Jenkins plugin. The requirements to run are that you are running Linux with docker installed and the source code you want to analyze available on disk.

The source code for Shipshape is located in the "shipshape" directory. Third-party libraries used by Shipshape are all in the "third_party" directory.

Download and Run Shipshape

Shipshape has been tested on Ubuntu (>=14.04) and Debian unstable, but should work on other Linux distributions.

Shipshape requires Docker to run.

Install instructions for Linux.

Install instructions for GCE.

Once you've installed it, running is easy!

$ shipshape <Directory>

For examples for how to use it, see our documentation.

Building from source

Shipshape uses the Bazel build tool. Once you have Docker and Bazel installed, you can build Shipshape with:

$ ./configure
$ bazel build //...

The binary will be saved in bazel-bin/shipshape/cli/shipshape.

Analyzers

The following analyzers are bundled with Shipshape:

Contributed analyzers

The following analyzers were contributed by external developers:

  • AndroidLint. Image: gcr.io/shipshape_releases/android_lint:prod
  • CTADetector - Yu Lin (University of Illinois at Urbana-Champaign). Image: yulin2/ctadetector
  • ExtendJ - Jesper Öqvist (Lund University). Image: joqvist/extendj_shipshape

Add a new analyzer

See our documentation on how to create more analyzers of your own. We also have a complete example.

Contributing to shipshape

To contribute to shipshape, first read our contribution guidelines and then make sure you can build and run shipshape from source.

Running the Jenkins Plugin

Instructions are located in shipshape/jenkins_plugin/README.md.

Package Structure of Shipshape

analyzers -- implementation for several simple analyzers run by the go_dispatcher. The canonical simplest analyzer is in analyzers/postmessage

androidlint_analyzer -- implementation for AndroidLint packaged as a complete Shipshape analyzer service, using libraries from the service package

api -- go API used by analyzers running under the go_dispatcher

cli -- code for the CLI that pulls down a Shipshape service, starts it running on a specified directory, and outputs analysis results

docker -- Dockerfiles for the various docker packages produced by Shipshape

java -- code for a javac dispatcher analyzer service that runs analyzers that build off of javac

jenkins_plugin -- code for the jenkins plugin that runs Shipshape

proto -- the protocol buffer APIs for writing new analyzers. Shipshape analyzers are services that implement the rpcs listed in the ShipshapeService interface in proto/shipshape_rpc.proto. Analyzers produce structured output in the form of Note messages, defined in proto/note.proto

service -- core Shipshape code. go_dispatcher -- dispatching Shipshape analyzer service for the go language. calls out to analyzers in the analyzer package. shipshape -- main shipshape service loop driver -- controller for calling out to all passed in analyzer services (including the go_dispatcher and the javac_analyzer) config -- processes .shipshape config files to determine which analyzers run

test -- manual integration tests to simplify the process of running Shipshape locally on test input, useful when developing new analyzer services

util -- various go utilities that simplify Shipshape code, e.g. for working with slices, execing docker commands, or writing tests

shipshape's People

Contributors

ciera avatar collinw avatar supertriceratops avatar clconway avatar llbit avatar rsamuelklatchko avatar tedks avatar schroederc avatar emsod avatar jvgogh avatar lukechurch avatar mortonfox avatar nico avatar ojarjur 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.