# Sonarcloud complaining of code smells and stuck on sonarscanner step for a longer time

**URL:** <https://community.sonarsource.com/t/sonarcloud-complaining-of-code-smells-and-stuck-on-sonarscanner-step-for-a-longer-time/79284>\
**Category:** SonarQube Cloud\
**Tags:** sonarqube-cloud, scanner\
**Created:** [December 22, 2022, 9:18am UTC](https://community.sonarsource.com/t/sonarcloud-complaining-of-code-smells-and-stuck-on-sonarscanner-step-for-a-longer-time/79284 "2022-12-22T09:18:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![charanchd3083](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@charanchd3083](https://community.sonarsource.com/u/charanchd3083)\
**Post date:** [December 22, 2022, 9:18am UTC](https://community.sonarsource.com/t/sonarcloud-complaining-of-code-smells-and-stuck-on-sonarscanner-step-for-a-longer-time/79284/1 "2022-12-22T09:18:39Z")

</div>

Hello,

Our development team is facing issue with the SonarScanner which we have included in our pipeline step. Recently, this issue has came by, the sonar step where we are using sonarsource/sonarcloud-scan:1.4.0 image and it is running from a longer period of time. Ultimately we get an error related to the eslint bridge and our analysis gets failed.

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/1/7/17aa8a313e21148504a6422ecc60f708ca93ab9c.png)  
 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/3/3/334c5a497b0d95ded275d488888d3dfa2534fe38.png)

Please team help on this if anyone has faced this issue in last couple of weeks.

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [December 27, 2022, 2:41pm UTC](https://community.sonarsource.com/t/sonarcloud-complaining-of-code-smells-and-stuck-on-sonarscanner-step-for-a-longer-time/79284/2 "2022-12-27T14:41:48Z")

</div>

Hey there.

It looks like you’re running the analysis in Bitbucket Pipelines. Can you share how your Bitbucket Pipelines YML file is configured?

---

<div class="post-metadata">

**Author:** ![charanchd3083](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@charanchd3083](https://community.sonarsource.com/u/charanchd3083)\
**Post date:** [January 3, 2023, 2:40am UTC](https://community.sonarsource.com/t/sonarcloud-complaining-of-code-smells-and-stuck-on-sonarscanner-step-for-a-longer-time/79284/3 "2023-01-03T02:40:34Z")

</div>

It is configured as part of script inside the bitbucket pipelines

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/7/b/7b38fa6055c083584214ef9da733d922dedc097c.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [January 9, 2023, 10:31am UTC](https://community.sonarsource.com/t/sonarcloud-complaining-of-code-smells-and-stuck-on-sonarscanner-step-for-a-longer-time/79284/4 "2023-01-09T10:31:12Z")

</div>

Hey there.

It would be helpful if you shared the full Bitbucket Pipelines YML file, rather than just a screenshot of a snipet.

**And,** I’d like to know why you’re setting `SONAR_SCANNER_OPTS` and `-Dsonar.javascript.node.maxspace` to such high values. There’s a chance that you’re far exceeding what Bitbucket can support memory-wise. What led you to set these values?
