Giter Site home page Giter Site logo

alexander-krause-glau / qa-eclipse-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christianwulf/qa-eclipse-plugin

0.0 1.0 0.0 100.46 MB

Eclipse Plugin to integrate QA tools, such as PMD and Checkstyle, into Eclipse

License: Eclipse Public License 1.0

Java 100.00%

qa-eclipse-plugin's Introduction

GitHub issues GitHub license Build Status

Lightweight Eclipse Plugin for Quality Assurance Tools

The offical Eclipse plugins for PMD and Checkstyle work great...as long as you do not want to add custom rules or checks, respectively. For this purpose, you need to implement an Eclipse Plugin Fragment including the new rules/checks. This causes an unnecessarily high implementation effort and hampers the setup of a common, uniform QA configuration for each of your team members.

Hence, I implemented a new plugin, which covers all of the matured QA tools, and allows an easy integration of custom rules/checks via a config file. Eclipse Plugin Fragments are not necessary. You can keep your QA config files and use them for your build tool, your continuous integration infrastructure, and within Eclipse.

  • Done: PMD, Checkstyle
  • In progress: Spotbugs (formerly Findbugs)
  • Planned: nothing else, so far.

See our associated milestones.

Usage

The plugin provides for each QA tool:

  • a command entry in the context menu (a.k.a. right-click menu) to execute the tool (example: "Run PMD")

    Image of the PMD's context menu entry

  • a view to display the issues detected by the tool. This view needs to be opened manually via

    "Window -> Show View -> Other..."

    A double-click on a violation in this view opens the corresponding file in the editor and jumps to the associated line of code.

    Image of the PMD's violations view

  • a property page for each project (example: "PMD Settings"). This page allows to configure the tool.

    Image of the PMD's property page

Configuration

The plugin expects a dedicated "prefs" file in the directory ".settings" of the Eclipse project, you like to check for issues. This file is created automatically if you press the "apply" button on the corresponding property page.

The property page allows

  • to enable/disable the tool for the project,
  • to define the path to the tool's xml configuration file, and
  • to define the path(s) to the jar file(s) containing your custom rules/checks.

The "prefs" file is intended to be uploaded to your repository to share your configuration with your team.

IMPORTANT The version of the API used for your custom rules/checks must be compatible with the version of the tool included in this Eclipse plugin.

  • The version of PMD included in this plugin can be found here.
  • The version of Checkstyle included in this plugin can be found here

Install

Build

  • via Maven 3.3 or above (necessary for pom-less building):
mvn clean package

qa-eclipse-plugin's People

Contributors

alexander-krause-glau 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.