Giter Site home page Giter Site logo

sonar-dependency-check-plugin's Introduction

Dependency Check Sonar Plugin

Build Status

This Sonar plugin ensures that projects in an organization adhere to a set of standard libraries and versions. This enables the governance of the used libraries and licences.

License

This software is licensed under the Apache Software License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0.txt

Features

Analysis

During the project analysis all dependencies are checked against the defined list of allowed libraries. If a project uses an unlisted dependency, a violation with level "Blocker" will be added. If a project uses a listed dependency out of version range, a violation with level "Critical" will be added.

Dependecy Check Page

The plugin contains a page with all libraries (in form library:version), the licenses used and the status of this dependency. The view also displays a list of all used licences.

Example:

LibVersionStatus
org.springframework:spring-core:3.2.1.RELEASEApache 2.0OK
org.springframework:spring-beans:3.2.1.RELEASEApache 2.0OK
commons-logging:commons-logging:1.1.1Apache 2.0Wrong version
net.sf.jopt-simple:jopt-simple:3.0MITUnlisted

Licenses:

LicenseDescriptionURL
Apache 2.0The Apache Software License, Version 2.0http://www.apache.org/licenses/LICENSE-2.0.txt
MITThe MIT Licensehttp://www.opensource.org/licenses/mit-license.php

Configuration

Licenses

A list of licenses can be configured via Settings > Configuration.

LicenseDescriptionURL
Apache 2.0The Apache Software License, Version 2.0http://www.apache.org/licenses/LICENSE-2.0.txt
MITThe MIT Licensehttp://www.opensource.org/licenses/mit-license.php
LGPL 2.1GNU Lesser General Public License (LGPL), Version 2.1http://www.fsf.org/licensing/licenses/lgpl.txt

Libraries

The list of allowed dependencies with a given version range can be configured via Settings > Configuration.

Here is an example:

LibAllowed VersionsLicense
org.springframework:spring-core[3.0,4.0)Apache 2.0
commons-logging:commons-logging1.1.3Apache 2.0

The version ranges have to be specified in Maven syntax (see http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html).

This list can be configured in general settings and can be customizable on a per-project basis (if only one project uses a certain library).

sonar-dependency-check-plugin's People

Contributors

derkoe avatar michaelkrejci avatar johannesprobst 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.