# SonarCloud supports Dart 🎉

**URL:** <https://community.sonarsource.com/t/sonarcloud-supports-dart/124883>\
**Category:** Announcements\
**Tags:** dart-flutter, dart, coverage\
**Created:** [September 11, 2024, 9:50am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883 "2024-09-11T09:50:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [September 11, 2024, 9:50am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/1 "2024-09-11T09:50:20Z")

</div>

Dear Community,

We are thrilled to announce that the wait is finally over: SonarCloud now supports Dart! (Early Access version). This has been a long time coming, with the first community request dating back to August 2019. Your valuable input through surveys and the numerous +1s in the [community thread](https://community.sonarsource.com/t/support-for-dart/13555/2) has been instrumental in making this happen and getting us to this point of an Early Access version. Thank you for your unwavering support. Please note that support for Dart will be available exclusively with SonarCloud Team and Enterprise plans, as well as for Open Source projects.

This Early Access release of Dart support may not include hundreds of rules, but we have focused on delivering the most anticipated ones. Here’s what you can expect:

- Support for loading coverage data provided by LCOV
- [70+ rules](https://rules.sonarsource.com/dart/), including the iconic Cognitive Complexity

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/d/e/de71e1f000afffe4ed5079ec92981c82fec6c20b.png)

To scan your Dart code, you will have to:

- Make sure that it compiles before triggering a code scan
- Configure sonar-scanner as part of your CI pipeline (please note that Automatic Analysis is not yet enabled for Dart)

Have a look at the [documentation](https://docs.sonarsource.com/sonarcloud/advanced-setup/languages/dart/) for more details.

Support in SonarLint and [SonarQube](https://community.sonarsource.com/t/sonarqube-10-7-supports-dart/127540) will come later. We first want [your feedback](https://community.sonarsource.com/c/clean-code/fp/7) on this Early Access version and to increase the number of rules.  
We are eager to hear from you, so don’t hesitate to reach out if you encounter any issues. Positive feedback is also welcome!

Enjoy,  
Alex

---

<div class="post-metadata">

**Author:** ![Philippe\_Cade](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Philippe\_Cade](https://community.sonarsource.com/u/Philippe_Cade)\
**Post date:** [September 11, 2024, 1:57pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/2 "2024-09-11T13:57:24Z")

</div>

> [@Alexandre\_Gigleux](#):
>
> Please note that support for Dart will be available exclusively with SonarCloud Team and Enterprise plans, as well as for Open Source projects.

🥳 for the Dart support but 😭 we won’t be able to use it

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [September 11, 2024, 4:31pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/3 "2024-09-11T16:31:27Z")

</div>

Hi @Philippe_Cade,

Would you care to share why not?

&nbsp;  
😃  
Ann

---

<div class="post-metadata">

**Author:** ![Jcardif](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jcardif](https://community.sonarsource.com/u/Jcardif)\
**Post date:** [September 11, 2024, 5:47pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/4 "2024-09-11T17:47:25Z")

</div>

![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/a/6/a6f506413477915a053549c162e42cb36ae7d4e4.png)

analysis not working

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [September 11, 2024, 5:50pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/5 "2024-09-11T17:50:21Z")

</div>

Ah. Right. That’s this part:

> [@Alexandre\_Gigleux](#):
>
> available exclusively with SonarCloud Team and Enterprise plans,

---

<div class="post-metadata">

**Author:** ![Philippe\_Cade](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Philippe\_Cade](https://community.sonarsource.com/u/Philippe_Cade)\
**Post date:** [September 12, 2024, 7:19am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/6 "2024-09-12T07:19:00Z")

</div>

We are using a self hosted Sonar installation and our product is not open source, so if I understand Alexandre’s note well, we wont be able to use the feature?

(I hope I’m wrong)

---

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [September 12, 2024, 7:32am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/7 "2024-09-12T07:32:48Z")

</div>

Hello @Philippe_Cade,

You will be able to scan your Dart code with an on-prem Sonar installation. Just wait a couple of additional months, and we will include it in a release of SonarQube (the exact version is still under discussion).

Alex

---

<div class="post-metadata">

**Author:** ![nesrine-ch](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nesrine-ch/32/61686_2.png) [@nesrine-ch](https://community.sonarsource.com/u/nesrine-ch)\
**Post date:** [September 12, 2024, 9:24am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/8 "2024-09-12T09:24:44Z")

</div>

Getting the same message with a paid plan

---

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [September 12, 2024, 10:14am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/10 "2024-09-12T10:14:41Z")

</div>

Hello,

We received a couple of feedback and it’s great.

- ~~I confirm that you need to migrate from your old paid plan to the new Team plan to use the Dart analyzer. If you can’t right now but want to try the Dart analyzer, SonarCloud offers a 14-day trial, so you can create a new organization just for that purpose.~~ SonarQube Cloud provides a Free Plan that supports Dart.
- [Automatic Analysis](https://docs.sonarsource.com/sonarcloud/advanced-setup/automatic-analysis/) considers Dart as a supported language whereas we know that in this context (without knowledge about your dependencies), the results are not that good. We are going to deploy a fix to really exclude Dart from Automatic Analysis. You can also do it yourself by going into Administration \> Analysis Method and turn off Automatic Analysis. Update 2024-09-17: the fix was deployed.
- ~~The [SonarCloud GitHub Action](https://github.com/SonarSource/sonarcloud-github-action) doesn’t behave well with Dart projects. You can find a workaround in this [post](https://community.sonarsource.com/t/dart-support-melos-dependency-management/125041/7)~~ The v4 of the [SonarQube GitHub Action](https://github.com/SonarSource/sonarqube-scan-action) supports Dart projects.

Alex

---

<div class="post-metadata">

**Author:** ![Jcardif](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jcardif](https://community.sonarsource.com/u/Jcardif)\
**Post date:** [September 12, 2024, 10:50am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/11 "2024-09-12T10:50:17Z")

</div>

Will this be coming to the old paid plan anytime soon?

---

<div class="post-metadata">

**Author:** ![Dominic](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dominic/32/35040_2.png) [@Dominic](https://community.sonarsource.com/u/Dominic)\
**Post date:** [September 12, 2024, 2:52pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/12 "2024-09-12T14:52:52Z")

</div>

Where are these rules documented?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [September 12, 2024, 3:02pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/13 "2024-09-12T15:02:57Z")

</div>

Hi,

We won’t be adding Dart analysis to the old paid plan, since that plan is deprecated.

The rules are here:

> **[Dart static code analysis](https://rules.sonarsource.com/dart/)**
>
> Unique rules to write Clean DART Code

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [September 13, 2024, 8:33am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/14 "2024-09-13T08:33:17Z")

</div>

A post was split to a new topic: [Dart: support Melos dependency management?](https://community.sonarsource.com/t/dart-support-melos-dependency-management/125041)

---

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [September 19, 2024, 6:49am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/15 "2024-09-19T06:49:15Z")

</div>

A post was split to a new topic: [Can’t migrate from the old paid plan to the Team plan](https://community.sonarsource.com/t/cant-migrate-from-the-old-paid-plan-to-the-team-plan/125384)

---

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [September 19, 2024, 8:34am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/16 "2024-09-19T08:34:07Z")

</div>

A post was split to a new topic: [Fail to scan Dart/Flutter project on GitLab CI](https://community.sonarsource.com/t/fail-to-scan-dart-flutter-project-on-gitlab-ci/125403)

---

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [September 23, 2024, 6:19am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/17 "2024-09-23T06:19:33Z")

</div>

3 posts were split to a new topic: [Disappointed by SonarCloud’s price increase](https://community.sonarsource.com/t/disappointed-by-sonarclouds-price-increase/126002)

---

<div class="post-metadata">

**Author:** ![cpirtea-bun](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/cpirtea-bun/32/60061_2.png) [@cpirtea-bun](https://community.sonarsource.com/u/cpirtea-bun)\
**Post date:** [September 25, 2024, 6:51am UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/18 "2024-09-25T06:51:19Z")

</div>

Hi @Alexandre_Gigleux, can we have a timeline for the same support in SonarQube Enterprise, please?

---

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [October 7, 2024, 2:50pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/19 "2024-10-07T14:50:49Z")

</div>

Hello @cpirtea-bun,

It’s available starting from SonarQube 10.7 (see [SonarQube 10.7 supports Dart!](https://community.sonarsource.com/t/sonarqube-10-7-supports-dart/127540)).

Alex

---

<div class="post-metadata">

**Author:** ![brightsonmacha-nmb](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/brightsonmacha-nmb/32/62911_2.png) [@brightsonmacha-nmb](https://community.sonarsource.com/u/brightsonmacha-nmb)\
**Post date:** [October 9, 2024, 1:07pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/20 "2024-10-09T13:07:20Z")

</div>

How to be early access user for **Sonarcloud Dart support**.?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 9, 2024, 1:51pm UTC](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883/21 "2024-10-09T13:51:01Z")

</div>

Hi @brightsonmacha-nmb,

Welcome to the community!

> [@Alexandre\_Gigleux](#):
>
> migrate from your old paid plan to the new Team plan to use the Dart analyzer

&nbsp;  
HTH,  
Ann

[Next page](https://community.sonarsource.com/t/sonarcloud-supports-dart/124883.md?page=2)
