# Add tflint output to SQ

**URL:** <https://community.sonarsource.com/t/add-tflint-output-to-sq/94652>\
**Category:** SonarQube Server / Community Build\
**Tags:** scanner\
**Created:** [June 26, 2023, 11:42am UTC](https://community.sonarsource.com/t/add-tflint-output-to-sq/94652 "2023-06-26T11:42:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericrichter](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@ericrichter](https://community.sonarsource.com/u/ericrichter)\
**Post date:** [June 26, 2023, 11:42am UTC](https://community.sonarsource.com/t/add-tflint-output-to-sq/94652/1 "2023-06-26T11:42:41Z")

</div>

I try to add my tflint issues to sonarqube. According to [the docs](https://docs.sonarqube.org/latest/analyzing-source-code/importing-external-issues/importing-third-party-issues/#:~:text=in%20JSON%20format-,Terraform,-sonar.terraform.tfLint) , I have to add the sonar.terraform.tfLint.reportPaths to the config.

But when I do something like  
`sonar-scanner -Dsonar.projectKey=test -Dsonar.terraform.tfLint.reportPaths=tflint.json`  
noting will appear in sonarqube.  
When using the -X parameter, I dont see any reference to this functionality.

How can I get this working?

sonar-scanner version: 4.8.0.2856 (afiak the latest)  
sonarqube server: 10.1

---

<div class="post-metadata">

**Author:** ![Nils\_Werner](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nils_werner/32/14437_2.png) [@Nils\_Werner](https://community.sonarsource.com/u/Nils_Werner)\
**Post date:** [July 4, 2023, 4:06pm UTC](https://community.sonarsource.com/t/add-tflint-output-to-sq/94652/4 "2023-07-04T16:06:18Z")

</div>

Hi @ericrichter,

Thank you for your report. I am trying to reproduce the problem and find the cause.  
Stay tuned and thank you for your patience.

Best,  
Nils

---

<div class="post-metadata">

**Author:** ![jonas.wielage](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jonas.wielage/32/72173_2.png) [@jonas.wielage](https://community.sonarsource.com/u/jonas.wielage)\
**Post date:** [July 6, 2023, 3:13pm UTC](https://community.sonarsource.com/t/add-tflint-output-to-sq/94652/5 "2023-07-06T15:13:07Z")

</div>

Hi @ericrichter ,

we identified that the issue was within the [documentation](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/importing-external-issues/importing-third-party-issues/#:~:text=in%20JSON%20format-,Terraform,-sonar.terraform.tflint), which is now fixed.

The appropriate flag to include terraform reports is:

```auto
-Dsonar.terraform.tflint.reportPaths=tflint.json

```

Please let us know if you are now able to import the report.  
Thanks again for reporting this issue.

Best,  
Jonas

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [July 17, 2023, 7:15am UTC](https://community.sonarsource.com/t/add-tflint-output-to-sq/94652/7 "2023-07-17T07:15:04Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
