0

I want to use Sonar Lint plugin in VS Code to scan and analyse the Type Script code in Angular project. I installed Sonar Lint plugin version 1.15.0 and added this conf inside the settings.json file :

{
"sonarlint.connectedMode.connections.sonarqube": [

    { 
        "connectionId": "mySonar",
        "serverUrl": "http://host:8080/server", 
        "token": "myToken" 
    }
],
"sonarlint.connectedMode.project": {
    "connectionId": "mySonar",
    "projectKey": "DEV-SONAR"
    }
}

After that, I installed Sonar Qube plugin and generated the project.json file in .vscode folder with this config :

{
   "project": "DEV-SONAR",
   "sonarURL": "http://host:8080/server"
}

In VS Code, I used CTRL+P and I put this :

enter image description here

The result is :

enter image description here

But when I put :

enter image description here

I get this error :

enter image description here

How can I resolve this problem ?

Mahmoud
  • 325
  • 10
  • 25

1 Answers1

0

I solve this probleme by deleting "project": "DEV-SONAR", in project.json file

Mahmoud
  • 325
  • 10
  • 25