diff --git a/docs/supercharge-your-dev-environment.md b/docs/supercharge-your-dev-environment.md index 7f00ca393..bc606c905 100644 --- a/docs/supercharge-your-dev-environment.md +++ b/docs/supercharge-your-dev-environment.md @@ -79,3 +79,21 @@ Alternatively, you add the following to your [settings.json file](https://code.v "typescript.format.semicolons": "insert" } ``` + +### Linting Sonar rules + +Include the following extension in your IDE installation: [SonarQube for IDE](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarlint-vscode) + +Update your [settings.json file](https://code.visualstudio.com/docs/getstarted/settings#_settings-json-file) to include the following + +```json +"sonarlint.connectedMode.connections.sonarcloud": [ + { + "connectionId": "DfE", + "organizationKey": "dfe-digital", + "disableNotifications": false + } +] +``` + +Then follow [these steps](https://youtu.be/m8sAdYCIWhY) to connect to the SonarCloud instance.