iOS local System Sonar Integration Issue

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

I am trying to integrate sonar-qube locally on my machine but getting many issues,
can you please share the exact steps and the files that are needed to download and the files that are needed to install.

Along with sonar-scanner.properties file also.

Currently am getting the message on dashboard that
The main branch has no lines of code.

Please help me to achieve the positive result.

Hi Shivam, welcome to the community!

A reminder on must share information when posting a new topic here:

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

Please share the information above, and myself or another community member may be able to help you!

Also: when you say “many issues”, please enumerate. Official steps to install SonarQube are documented here, and steps to perform a first scan are documented here. I would recommend you to first thoroughly read and follow the documentation.

Sonar Version: 8.5.1
Sonar Scanner: 4.5.0.2216
Plugin: backelite-sonar-swift-plugin-0.4.4

now getting error You must install a plugin that supports the language 'swift’
can you please share the exact steps of configuring the sonar into my swift projects.

What i did?

  1. Downloaded sonar qube and move it into application folder on mac and then rename it to sonar
  2. Downloaded sonar scanner and move it into application folder on mac and then rename it to sonarscanner
  3. Downloaded backelite-sonar-swift-plugin-0.4.4 and paste it into sonar/extensions/plugins
  4. started sonar server using sh sonar.sh console command
  5. moved to project path using terminal command
  6. created sonar-project.properties file into it
  7. added following properties

sonar.projectKey=abc

sonar.projectName=abc

#sonar.login=admin

#sonar.password=admin

sonar.login=47437e6a59f3c0b3939181f3e85d6ac44a1c5919

sonar.projectVersion=1.0

sonar.sources=abc

sonar.language=swift

Project description

sonar.projectDescription=“abc”

sonar.swift.project=abc.xcodeproj

sonar.swift.appName=abc

sonar.swift.appScheme=abc

#SonarQube Server URL

sonar.host.url=http://localhost:9000

excludes

sonar.exclusions=/node_modules/,/*.spec.ts,/*.css,/kisters/

  1. now run command sonar-scanner
  2. giving error You must install a plugin that supports the language 'swift’
  3. giving error **Please check the properties sonar.login and sonar.password.
    **

Note: Please share me exact steps and all the thing required to install on my mac and the path where to keep all those files.
2)what should be the name of file created in the project “sonar-scanner.properties” or “sonar-project.properties”
3) all the properties mandate and required to mention in the sonar-project.properties file.

  1. in short i want a dummy project type sample.

And one thing more when run the command for my localhost:9000 it sometimes work but when run for some other dashboard url it generate above mentioned error.

Any help is needed for iOS Swift-5 project configuration.