# VSTS SonarCloud warning shown as errors

**URL:** <https://community.sonarsource.com/t/vsts-sonarcloud-warning-shown-as-errors/1899>\
**Category:** SonarQube Cloud\
**Tags:** azuredevops-services, sonarqube-cloud\
**Created:** [August 20, 2018, 1:51pm UTC](https://community.sonarsource.com/t/vsts-sonarcloud-warning-shown-as-errors/1899 "2018-08-20T13:51:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![loshurik](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/loshurik/32/1262_2.png) [@loshurik](https://community.sonarsource.com/u/loshurik)\
**Post date:** [August 20, 2018, 1:51pm UTC](https://community.sonarsource.com/t/vsts-sonarcloud-warning-shown-as-errors/1899/1 "2018-08-20T13:51:55Z")

</div>

Hello, I’m using VSTS SonarCloud extension (v.1.\*) to scan a js-based project.  
I get warnings that are recognized as errors:

> WARN: Metric ‘comment\_lines\_data’ is deprecated. Provided value is ignored.  
> WARN: Access to the multi-values/property set property ‘sonar.typescript.eslint.reportPaths’ should be made using ‘getStringArray’ method. The SonarQube plugin using this property should be updated.

 ![Image](https://dub1.discourse-cdn.com/sonarsource/uploads/sscommunity/original/1X/b2d25c5ef2627d2f0570bf21549e04bd8a44c0f4.png)

Here are all my Sonar settings used for the project:

```auto
sonar.exclusions=node_modules/ **,dist/**
sonar.sourceEncoding=UTF-8
sonar.branch.name=develop
sonar.coverage.exclusions=**/*

```

Is it possible to set warnings to appear as warnings, not errors?  
How can I clear these warnings?

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [October 16, 2018, 2:32pm UTC](https://community.sonarsource.com/t/vsts-sonarcloud-warning-shown-as-errors/1899/4 "2018-10-16T14:32:10Z")

</div>

Hi,

We made the choice to write WARN logs to stderr:

> <https://github.com/SonarSource/sonar-scanner-cli/blob/ac93169472fa0861e99983a86cc00cc9242b1dcc/src/main/java/org/sonarsource/scanner/cli/Logs.java#L59>

The result is that those logs are reported as error in the VSTS UI. To me this is good, otherwise no one would look at those WARN logs.

---

<div class="post-metadata">

**Author:** ![Lena](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/lena/32/66719_2.png) [@Lena](https://community.sonarsource.com/u/Lena)\
**Post date:** [October 16, 2018, 3:33pm UTC](https://community.sonarsource.com/t/vsts-sonarcloud-warning-shown-as-errors/1899/5 "2018-10-16T15:33:31Z")

</div>

Listed on October 16, 2018, 3:33pm UTC



---

<div class="post-metadata">

**Author:** ![JVennix](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@JVennix](https://community.sonarsource.com/u/JVennix)\
**Post date:** [October 18, 2018, 8:44am UTC](https://community.sonarsource.com/t/vsts-sonarcloud-warning-shown-as-errors/1899/6 "2018-10-18T08:44:24Z")

</div>

It would be good, if your users could do anything with it. However it’s a deprecated method in the scanner/sonar which now fails complete builds and renders the standard Sonar components in VSTS/Azure DevOps totally useless.

Either the warning needs to be changed to stdOut or solved in general.

Else you might as well pull out the Sonar components from the VSTS Marketplace, because they will not be usable because of this error message.

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [October 18, 2018, 9:06am UTC](https://community.sonarsource.com/t/vsts-sonarcloud-warning-shown-as-errors/1899/7 "2018-10-18T09:06:58Z")

</div>

Why do you say it fails your build? From your screenshot, I can see “Build process succeeded”. This is just to help me better understand.
