Giter VIP home page Giter VIP logo

sonarqube-windows-vagrant's Introduction

This is a Vagrant Environment for a SonarQube based Source Code Analysis service.

This will:

Usage

Build and install the Windows Base Box.

Install the needed plugins:

vagrant plugin install vagrant-reload # https://github.com/aidanns/vagrant-reload 

Then start this environment:

vagrant up

Excluding Projects from SonarQube Analysis

sonar.exclusions (and other paths) are relative to the project directory, as such, they can only exclude files inside a project. to exclude the project itself you have to use one of the following (before calling MSBuild.SonarQube.Runner begin):

  1. Modify each .csproj file to have the following element:

    <PropertyGroup>
      <SonarQubeExclude>true</SonarQubeExclude>
    </PropertyGroup>
  2. Create a <Project>.csproj.user file (on the same directory as <Project>.csproj) with:

    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <SonarQubeExclude>true</SonarQubeExclude>
      </PropertyGroup>
    </Project>
  3. Implement some global logic by placing a MSBuild snippet (e.g. a .targets file) inside the current user or the local machine MSBuild directories, that is, at one of:

    C:\Users\<User>\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
    C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.Targets\ImportBefore
    

    NB these directories are scanned before the <Project>.csproj.user file.

    NB before importing the files MSBuild sorts them by file name; e.g. to import a file last giveit a, e.g. ZZZ prefix.

For more information see:

sonarqube-windows-vagrant's People

Contributors

rgl avatar

Watchers

Orlando Cofre 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.