0

I am using SonarQube extension for VS code which enable me to write non-bugy and quality code. but some of the sonar rules not applicable for my code like:- we are using file naming convention "*-component" postfix with each file.

severity: 'Warning' message: 'Rename this file to "es6 class name".'
here SonarQube extension want me to keep file name and class name same.

So i want to turn off these all warning and error those not applicable to my code.

I am looking for a solution/hack to turn off SonarQube rules in vs code extension.

Gama11
  • 31,714
  • 9
  • 78
  • 100
Sandeep vashisth
  • 1,040
  • 7
  • 20
  • 40

1 Answers1

1

You're looking for Connected Mode, which will allow you to run locally with the rule set applied at the server. (Presumably you've already edited the Quality Profile on the server to exclude these rules, right?)

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
  • Absolutely right [G. Ann](https://stackoverflow.com/users/2662707/g-ann-sonarsource-team), I need something like [Connected Mode](http://www.sonarlint.org/visualstudio/index.html#Connected) but It's only for Visual Studio, and i am a web developer using light weight [VS Code](https://code.visualstudio.com/) editor. – Sandeep vashisth Oct 13 '17 at 13:06