SonarCloud integration with Bit Bucket in public Repository

Below is my updated .yml configuration for the Bitbucket pipeline, along with a screenshot of the pipeline output in Bitbucket.

# Template PHP Build

# This template allows you to validate your PHP application.
# The workflow allows running tests and code linting on the default branch.

image: composer:2.2
clone:
  depth: full

pipelines:
  default:
    - parallel:
        - step:
            name: install composer 
            script:
              - composer install 
              
            caches:
              - composer
        - step:
            name: SonarQube Analysis
            script:
              - pipe: sonarsource/sonarcloud-scan:1.2.0
                variables:
                  SONAR_TOKEN: $SONAR_TOKEN
                  EXTRA_ARGS: '-Dsonar.projectKey=codeRefactorTesting -Dsonar.sources=./app -Dsonar.tests=./tests'

This attached screen shot of the pipline output in Bit Bucket

Problem:

I am facing the issue in the integrating the sonar cloude for the public repo in BitBucket wihich will be used for the code refactor and quality check.

Help :

Please provide correct me where I am doing wrong. If possible please provide me the examples where I can find how to do this or any detailed documentation would be fine.

Your screenshots doesn’t show any actual logs, but I’ll guess the issue comes down to this.

Please try using the latest version of the sonarcloud-scan pipe, 3.1.0

Thnx Colin ,

Issue has been resolved would you provide me the documentation or guide to use Sonar Cloud where I can find how to fix the issues using sonar cloud

Issues in code suggested by sonar cloud

The SonarQube Cloud Documentation is a great start.

Hello Colin,

Free plan does not have quick code fix via (AI) when the suggestion are given on every Sonar Cloud Scan.

However documentation have dicatated on this quick AI fix on every SonarCloud Scan on plans like this line in the documentation AI features are only available in SonarQube Cloud Team and Enterprise plans.

Please refer this documentation

The documentation you linked makes it pretty clear that AI Features are not included in the Free plan. Where’s the confusion?

Do we have any trial period for this subscriptions.

Yes, the Team Plan comes with a 14-day free trial. Plans & Pricing

Please check the screen shot above which does not show fixing suggestion.

Initially I was using free trial but after you told I have singUp with 14-days free trial but still does not show AI fixes

AI CodeFix is not available for all rules of all languages. We have an open ticket to document which languages are supported, and I can tell you right now that PHP is not one of them.

Even after plan is purchased ?

Correct.

Ok, Thnx Colin :slight_smile: