GithubHelp home page GithubHelp logo

isabella232 / spotbugs-step Goto Github PK

View Code? Open in Web Editor NEW

This project forked from markxnelson/spotbugs-step

0.0 0.0 0.0 14 KB

This step will install and run SpotBugs on against the current project, and will allow the user to specify where to put the output and what format to use.

Shell 100.00%

spotbugs-step's Introduction

Wercker SpotBugs Step

A Wercker step to run SpotBugs on a Java project.

This step will download and install SpotBugs, curl, tar, gzip and then execute the goals you have requested. You must provide the output format, output file including path and the classpath.

The box that you run this step in must either have curl, tar, gzip, installed in it.

The box that you run this step must have a JDK (1.8 or later) installed in it (as SpotBugs requires a JDK). Usage

To use this step, include it in your wercker.yml pipeline, for example:

regular-test:
  steps:
    - justin-hoang/spotbugs-step:
      format: -xml
      output: ./result.log
      classpath: target/classes

After the SpotBugs step has completed, you will see the result in your output file specified.

Parameters: All parameters are required unless otherwise specified.

Format parameters: -xml: Produce the bug reports as XML. The XML data produced may be viewed in the GUI at a later time. You may also specify this option as -xml:withMessages; when this variant of the option is used, the XML output will contain human-readable messages describing the warnings contained in the file. XML files generated this way are easy to transform into reports.

-html: Generate HTML output. By default, SpotBugs will use the default.xsl XSLT stylesheet to generate the HTML: you can find this file in spotbugs.jar, or in the SpotBugs source or binary distributions. Variants of this option include -html:plain.xsl, -html:fancy.xsl and -html:fancy-hist.xsl. The plain.xsl stylesheet does not use Javascript or DOM, and may work better with older web browsers, or for printing. The fancy.xsl stylesheet uses DOM and Javascript for navigation and CSS for visual presentation. The fancy-hist.xsl an evolution of fancy.xsl stylesheet. It makes an extensive use of DOM and Javascript for dynamically filtering the lists of bugs. If you want to specify your own XSLT stylesheet to perform the transformation to HTML, specify the option as -html:myStylesheet.xsl, where myStylesheet.xsl is the filename of the stylesheet you want to use.

-emacs: Produce the bug reports in Emacs format.

-xdocs: Produce the bug reports in xdoc XML format for use with Apache Maven.

output parameter: Produce the output in the specified file.

Classpath parameter: jar/zip/class files, directories...

Sample Application: A sample application is provided at https://github.com/justin-hoang/sample-spotbugs-step that shows how to use this SpotBugs step.

spotbugs-step's People

Contributors

justin-hoang avatar gilbode 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.