Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Configure Static Code Analysis

Gustavo Denis edited this page Oct 31, 2019 · 1 revision
Main >Using Liquid for building your application> Using Liquid for building your application > Configure CI, CD and CT with Mono-Repo > Continuous Testing > Configure Static Code Analysis

#Overview

The Liquid was configured with Sonar Cloud, this tool perform Code Analysis through rules e profiles predefined.

#Prerequesites

Integrate Visual Studio Team Services with SonarCloud

This documentation explain procedures to configure the Sonar Cloud to provide metrics of Code Analisys Static during Pull Request and Build tasks.

#Configure Build Pipeline with Sonar Cloud

Note: Before configure de Pipeline, the procedures of prerequisites would is realized, because this configuration depends of Endpoint created.

Note: This task must be configured before task build.

SonarCloud Service Endpoint: Endpoint created in VSTS with access in Sonar Cloud.
Organization: Organization provisioned on SonarCloud during configuration of Endpoint. Project Key: Project identificator of SonarCloud with storage metrics. Project Name: Friendly name of Project Key

image.png

image.png

Run Code Analysis - After build of Solutions, this task will analyze the source code based in rules and profiles of Sonar Cloud.

image.png

Publish Quality Gate Result - this step publish the metrics on Sonar Cloud which can be accessed by Sonar Cloud with link on build definition.

image.png

Clone this wiki locally