# Rules and languages

The Sonar rules catalog is the entry point where you can discover all the existing rules. While running an analysis, SonarQube for IDE raises an issue every time a piece of code breaks a coding rule. Software quality classification and severity show the impact of the issue on your code. To see a full list of Sonar rules, check the **Rules** page of your SonarQube Server instance or in your SonarQube Cloud organization.

See the [software-qualities](https://docs.sonarsource.com/sonarqube-for-intellij/using/software-qualities "mention") page for more information about these classifications.

## Overview <a href="#overview" id="overview"></a>

SonarQube for the JetBrains family IDEs currently supports the following programming languages:

![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) **Supported out of the box**: SonarQube for IDE automatically checks your code in these languages and formats.\
![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media) **Connected Mode required**: Running in [connected-mode](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/connected-mode "mention") with SonarQube (Server, Cloud) or SonarQube Community Build unlocks analysis for these languages and formats.

| Language   | IntelliJ IDEA & Android Studio                                                                                                                                                                                                                                                           | CLion                                                                                                                                                                                                                                                                                    | Rider                                                                                                                                                                                                                                    | DataGrip, Php Storm, PyCharm, RubyMine, and WebStorm                                                                                                                                                                                                                                     |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| C#         | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | <p><br></p>                                                                                                                                                                                                                                                                              |
| C/C++      | <p><br></p>                                                                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                                                                              |
| CSS        | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| Go         | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) (Go plugin)                                     | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) (GoLand or Go plugin)                           |
| HTML       | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| Java       | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                                                                              |
| JavaScript | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| Kotlin     | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| PHP        | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| PL/SQL     | <p><img src="https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media" alt="a"><br>(Database Tools plugin)</p> | <p><img src="https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media" alt="a"><br>(Database Tools plugin)</p> | <p><br></p>                                                                                                                                                                                                                              | <p><img src="https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media" alt="a"><br>(Database Tools plugin)</p> |
| Python     | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| Ruby       | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| Scala      | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media)                                                 |
| Secrets    | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| Swift      | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media)                                                 |
| Text       | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media)                                                 | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media)                                                 | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media) |                                                                                                                                                                                                                                                                                          |
| TypeScript | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |
| XML        | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 | <p><br></p>                                                                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media)                                                 |

In addition, SonarQube for IntelliJ supports the IaC domains for:

| Language       | IntelliJ IDEA & Android Studio                                                                                                                                                                                                           | CLion                                                                                                                                                                                                                                    | Rider                                                                                                                                                                                                                                    | (DataGrip, Php Storm, PyCharm, RubyMine, and WebStorm)                                                                                                                                                                                  |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Ansible        | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media) | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media) | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media) | ![](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) |
| CloudFormation | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | <p><br></p>                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) |
| Docker         | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | <p><br></p>                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) |
| GitHub Actions | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media) | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media) | ![a](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0e61a2b4086c8ca18ff5a1f1149830f9af490ee4%2Fc6494882b26c39af441c3a02912bee5100b24640.svg?alt=media) |                                                                                                                                                                                                                                         |
| Kubernetes     | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | <p><br></p>                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) |
| Terraform      | ![r](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) | <p><br></p>                                                                                                                                                                                                                              | <p><br></p>                                                                                                                                                                                                                              | ![](https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-b053d5807e248e66d72264a9977f12d826d8087f%2F94172d1aa3cd9380d2f9fddf2e6a8cc7380da439.svg?alt=media) |

The full list of available rules can be found in the IntelliJ settings menu. See the article below about [#using-sonar-rules](#using-sonar-rules "mention") for details. Open the [#supported-language-versions](#supported-language-versions "mention") expandable to learn how to see which versions are supported for a given language.

<details>

<summary>Supported language versions</summary>

SonarQube for IntelliJ provides analysis for several languages. Support for your language may vary depending on the SonarQube for IntelliJ version you’re running.

For language-specific properties and supported language versions, refer to the relevant language pages in the SonarQube (Server, Cloud) or SonarQube Community Build docs directly; the same Sonar language analyzers are used by the servers are used by SonarQube for IntelliJ.

* [Languages](https://app.gitbook.com/s/LWhbesChsC4Yd1BbhHhS/analyzing-source-code/languages "mention") in SonarQube Server
* [Languages](https://app.gitbook.com/s/B4UT2GNiZKjtxFtcFAL7/analyzing-source-code/languages "mention") in SonarQube Cloud
* [Languages](https://app.gitbook.com/s/bqrfLGeD0Y9vE5l9Le42/analyzing-source-code/languages "mention") in in SonarQube Community Build

</details>

There are commercial-level rules available in SonarQube Cloud (all plans) and SonarQube Server. For these rules to appear in SonarQube for IDE, it must be in connected mode. See [#commercial-level-rules](#commercial-level-rules "mention") for more information.

For more details about languages and new features under consideration for the JetBrains family IDEs, you can refer to the [SonarQube for IDE roadmap](https://portal.productboard.com/sonarsource/4-sonarlint/tabs/8-under-consideration) where we list all of our coming soon and newly released features.

## Sonar Rule Descriptions <a href="#sonar-rule-descriptions" id="sonar-rule-descriptions"></a>

Simply select an issue in the **SonarQube for IDE view** or choose **SonarQube for IDE: Show rule description** from the tooltip to open the **Rule** tab. Here, you will find a brief explanation of the rule as well as Noncompliant and Compliant code samples.

<div align="left"><figure><img src="https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-0b1a998eef36e53790daffc7a7214d2510820d10%2Fsq-intellij-show-fix-diff-view.png?alt=media" alt="The SonarQube rule description will give you compliant rule sample, show here in green, when available." width="563"><figcaption></figcaption></figure></div>

SonarQube for IntelliJ supports syntax highlighting. In addition, users are able to visualize a diff view for the non & compliant code samples which should help you fix your issue. Note that diff highlighting is only available for rules descriptions migrated to the [new format](https://community.sonarsource.com/t/sonarlint-for-intellij-7-3-better-help-for-taint-vulnerabilities-support-front-end-languages/79312), and we’re progressively migrating all existing rules to the new format.

An issue’s coding attribute, software qualities, and severity are found when opening the SonarQube Rule tab. Below the rule title, you will find the coding attributes that highlight an issue’s classification. Check the [glossary](https://docs.sonarsource.com/sonarqube-for-intellij/resources/glossary "mention") for details about coding attributes, and the [software-qualities](https://docs.sonarsource.com/sonarqube-for-intellij/using/software-qualities "mention") page to better understand how they help classify your issue.

<div align="left"><figure><img src="https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2Fgit-blob-32b0317a50e6e90de4d292f0b6851877677356a4%2F1101f68ce8572556334e248e722f81257834f8cb.png?alt=media" alt="Coding attributes and software qualities appear in the SonarQube Rule view. Your actual view may be different because when running in connected mode with SonarQube Server, the server&#x27;s mode is respected." width="563"><figcaption></figcaption></figure></div>

**When in Connected Mode**

If you’re running SonarQube for IntelliJ while in connected mode *with SonarQube Server or SonarQube Community Build*, your view will change according to the server settings. Standard Experience mode encompasses the use of rule types such as bugs, code smells, and vulnerabilities.

Also, if SonarQube Server is set to Multi-Quality Rule mode, you will more accurately represent the impact an issue has on all software qualities. Please see the pages about the MQR mode and Standard Experience for detailed information about the available rule modes for your instance:

* [Choosing a mode for your instance](https://app.gitbook.com/s/LWhbesChsC4Yd1BbhHhS/instance-administration/analysis-functions/instance-mode "mention") in SonarQube Server
* [Choosing a mode for your instance](https://app.gitbook.com/s/bqrfLGeD0Y9vE5l9Le42/instance-administration/analysis-functions/instance-mode "mention") in SonarQube Community Build

Be sure to check out the [investigating-issues](https://docs.sonarsource.com/sonarqube-for-intellij/using/investigating-issues "mention") page for more details about how issues appear in your IDE.

## Language-specific requirements

See the [#language-specific-requirements](https://docs.sonarsource.com/sonarqube-for-intellij/getting-started/requirements#language-specific-requirements "mention") article on the [requirements](https://docs.sonarsource.com/sonarqube-for-intellij/getting-started/requirements "mention") page.

## Rules for AI CodeFix <a href="#rules-for-ai-codefix" id="rules-for-ai-codefix"></a>

A select set of rules are eligible for AI CodeFix when running in connected mode. Please see the [#ai-codefix-rules](https://docs.sonarsource.com/sonarqube-for-intellij/ai-capabilities/ai-codefix#ai-codefix-rules "mention") article for a full list.

## Other rule types <a href="#other-rule-types" id="other-rule-types"></a>

<details>

<summary>DBD rules</summary>

Dataflow bugs are a set of *complex Python and Java bugs that are only detected when reviewing all feasible execution paths.* This type of issue can cause runtime errors and crashes in Python and Java. If you want to learn more, check out [our blog post](https://www.sonarsource.com/blog/sonarqube-99-lts-python-developers/#new-bugdetection-rules-track-dataflow-with-symbolic-execution) for a good explanation with an example.

Dataflow Bug Detection (DBD) rules for Python and Java are supported in [Commercial editions of SonarQube Server](https://www.sonarsource.com/products/sonarqube/downloads/). At this time, SonarQube for IntelliJ supports DBD detection for Python and Java when running in Connected Mode with SonarQube Server Active versions.

</details>

<details>

<summary>Injection vulnerabilities</summary>

Security vulnerabilities requiring taint engine analysis ([taint-vulnerabilities](https://docs.sonarsource.com/sonarqube-for-intellij/using/taint-vulnerabilities "mention")) are only available in Connected Mode because SonarQube for IDE pulls them from SonarQube (Server, Cloud) following a project analysis.

To browse injection vulnerabilities in SonarQube for IntelliJ, configure [connected-mode](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/connected-mode "mention") with your SonarQube Server commercial edition or SonarQube Cloud instance. Once you [#configure-your-binding](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/setup#configure-your-binding "mention"), SonarQube for IDE will synchronize with SonarQube (Server, Cloud) to report the detected injection vulnerabilities.

More information about security-related rules is available in the server documentation:

* [Security-related rules](https://app.gitbook.com/s/LWhbesChsC4Yd1BbhHhS/quality-standards-administration/managing-rules/security-related-rules "mention") in SonarQube Server
* [Security-related rules](https://app.gitbook.com/s/B4UT2GNiZKjtxFtcFAL7/standards/managing-rules/security-related-rules "mention") in SonarQube Cloud

</details>

<details>

<summary>Security hotspots</summary>

In SonarQube for IntelliJ, local detection of Sonar Security Hotspots is enabled if you are using [connected-mode](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/connected-mode "mention") with SonarQube Server or SonarQube Cloud.

Please see the SonarQube Server documentation on [security-hotspots](https://docs.sonarsource.com/sonarqube-for-intellij/using/security-hotspots "mention") for more details.

</details>

<details>

<summary>Secrets detection</summary>

Secrets are pieces of user-specific or system-level credentials that should be protected and accessible to legitimate users only. SonarQube for IDE detects exposed Secrets in your source code and language-agnostic config files. When running in connected mode, the SonarQube Server or SonarQube Cloud Quality Profiles are applied to locally detected Secrets.

</details>

<details>

<summary>Commercial-level rules</summary>

There are commercial-level rules available in SonarQube Cloud (all plans) and SonarQube Server (as listed). The list of Sonar rules available found on the **Rules** page of your SonarQube Server Developer, Enterprise, and Data Center editions or in your SonarQube Cloud organization may be different than what you see in the IDE.

In order for these rules to appear in SonarQube for IDE, you must be running in [connected-mode](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/connected-mode "mention"). In the standalone mode these rules are not visible.

Commercial-level rules are not available in SonarQube for Community Build.

</details>

## **Using Sonar rules**

When not running in connected mode (also known as *standalone mode*), all Sonar rules for your language can be configured in the IDE. In addition, some Sonar rules have parameters that you can modify. Here are a few reasons you might want to edit a rule locally:

* Disable a rule that is enabled by default. Maybe the rule doesn't apply to your specific project. See [#rule-selection](#rule-selection "mention") for more information.
* Enable a rule that is disabled by default. By reviewing which rules are disabled, you might notice that some rules could be useful in the context of your project. See [#rule-selection](#rule-selection "mention") for more information.
* To improve a rule. In some cases rules have parameters. For example, regarding cognitive complexity, you can customize the threshold at which the rule will raise issues. See [#edit-rules](#edit-rules "mention") for more information.

### Rule selection <a href="#rule-selection" id="rule-selection"></a>

The full list of available rules is found by navigating to the IntelliJ **Settings…** > **Tools** > **SonarQube for IDE** > **Rules** tab. There, Sonar Rules can individually be toggled on or off while running SonarQube for IDE in standalone mode; simply select or deselect the appropriate checkbox. See the screenshot below in [#edit-rules](#edit-rules "mention") to understand what it looks like in the settings window.

When your project is bound to SonarQube Server or SonarQube Cloud using [connected-mode](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/connected-mode "mention"), the rule set is managed on the server side as defined by the quality profile. See [#applying-rules-while-in-connected-mode](#applying-rules-while-in-connected-mode "mention"), for details.

{% hint style="info" %}
When a project is bound to a SonarQube (Server, Cloud) or SonarQube Community Build project, the configuration in this UI location is ignored. In this case, the rules configuration from the server applies. For more information, see the server documentation about quality profiles to edit rules:

* [Managing quality profiles](https://app.gitbook.com/s/B4UT2GNiZKjtxFtcFAL7/standards/managing-quality-profiles "mention") in SonarQube Cloud
* [Managing quality profiles](https://app.gitbook.com/s/LWhbesChsC4Yd1BbhHhS/quality-standards-administration/managing-quality-profiles "mention") in SonarQube Server
  {% endhint %}

## Edit rules

To edit a rule in SonarQube for IntelliJ, navigate to **IntelliJ** > **Settings** > **SonarQube for IDE** > **Rules** and select the rule you want to edit. Select or deselect any rule in the list to enable or disable it. If a rule has options, you’ll see them at the bottom of the rule description.

1. Navigate to the **Rules** tab.
2. Set your visibility filter, if desired, and select the rule you want to modify.
3. Look for **Options** at the bottom of the rule description. In this example, `giraffes` are added to the list of at-rules to ignore in rule css:S4662.

<div align="left"><figure><img src="https://2586659349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNvI4wotPmITyM0mnsmtp%2Fuploads%2FA527fPmvW6JXxqCaf9FE%2Fsq-intellij-edit-rules.png?alt=media&#x26;token=30ebc995-e316-40e6-8ccc-5f34bd574f45" alt="Sonar rules are accessible in the SonarQube for IDE settings." width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
When a project is bound to a SonarQube (Server, Cloud) or SonarQube Community Build project, the configuration in this UI location is ignored. In this case, the rules configuration from the server applies. For more information, see the server documentation about quality profiles to edit rules:

* [Managing quality profiles](https://app.gitbook.com/s/B4UT2GNiZKjtxFtcFAL7/standards/managing-quality-profiles "mention") in SonarQube Cloud
* [Managing quality profiles](https://app.gitbook.com/s/LWhbesChsC4Yd1BbhHhS/quality-standards-administration/managing-quality-profiles "mention") in SonarQube Server
  {% endhint %}

## **Unsupported rules**

Some rules are simply too advanced to run locally, in SonarQube for IDE. Because some rules report issues at the project level, apply to the architecture of your code base, or require extensive resources to analyze, they are not included when SonarQube for IDE runs an analysis. Unsupported rule types include architecture, injection vulnerabilities, and some advanced bug detection rules.

However, these advanced issues will be reported in the IDE when you are running in connected mode with SonarQube (Server, Cloud) or SonarQube Community Build. See these links for more information:

* Sonar [Architecture](https://app.gitbook.com/s/B4UT2GNiZKjtxFtcFAL7/architecture "mention") in SonarQube Cloud
* [taint-vulnerabilities](https://docs.sonarsource.com/sonarqube-for-intellij/using/taint-vulnerabilities "mention") in SonarQube for VS Code
* [#commercial-level-rules](#commercial-level-rules "mention") and [#dbd-rules](#dbd-rules "mention")

## Rules while in Connected Mode <a href="#applying-rules-while-in-connected-mode" id="applying-rules-while-in-connected-mode"></a>

Connected Mode syncs your SonarQube Server or SonarQube Cloud Quality Profile with the local analysis to suppress issues reported in the IDE. Therefore, when running in Connected Mode, SonarQube for IntelliJ will ignore rule settings that are defined locally. See the [connected-mode](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/connected-mode "mention") page for more information about running connected mode and the [#benefits](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/connected-mode#benefits "mention") it brings when working in teams.

### Edit rules in connected mode

If you’re running in [connected-mode](https://docs.sonarsource.com/sonarqube-for-intellij/connect-your-ide/connected-mode "mention") with SonarQube (Server, Cloud) or SonarQube Community Build, you can share customized active rules with your team because you’ll all be using the same quality profile to share rule sets. Please see the relevant instructions for the server you are connecting to:

* [Understanding quality profiles](https://app.gitbook.com/s/B4UT2GNiZKjtxFtcFAL7/standards/managing-quality-profiles/understanding-quality-profiles "mention") in SonarQube Cloud
* [Understanding quality profiles](https://app.gitbook.com/s/LWhbesChsC4Yd1BbhHhS/quality-standards-administration/managing-quality-profiles/understanding-quality-profiles "mention") in SonarQube Server
* [Understanding quality profiles](https://app.gitbook.com/s/bqrfLGeD0Y9vE5l9Le42/quality-standards-administration/managing-quality-profiles/understanding-quality-profiles "mention") in SonarQube Community Build
