Coder Social home page Coder Social logo

Comments (6)

gaelfoppolo avatar gaelfoppolo commented on August 30, 2024

Hi @FirstDKS521,
Can you share your sonar-project.properties?
Did you run any xcodebuild command before sonar-scanner like explained in the README?

from sonar-apple.

FirstDKS521 avatar FirstDKS521 commented on August 30, 2024

Hi @FirstDKS521, Can you share your sonar-project.properties? Did you run any xcodebuild command before sonar-scanner like explained in the README?

sonar-project.properties:
sonar.token=xxx
sonar.host.url=http://localhost:9000
sonar.projectKey=aaa
sonar.projectName=aaa
sonar.apple.workspace=aaa.xcworkspace
sonar.apple.project=aaa.xcodeproj
sonar.sourceEncoding=UTF-8

I did not execute the xcodebuild command before executing sonar-scanner;
Because even if the xcodebuild command is executed, the generated compile_commands.json file is larger than 20M and cannot be uploaded;
Let's look at the sonar documentation. The sonar-scanner command can directly scan the source code and does not rely on the compile_commands.json file, right?
Thanks~

from sonar-apple.

gaelfoppolo avatar gaelfoppolo commented on August 30, 2024

Well first, your sonar-project.properties is missing sonar.sources or sonar.tests so you might want to check that first. See the example one in the README.

Sonar is indexing the code source yes, but it does nothing else. It's the plugin that does the scanning, gather the results and then upload them to SonarQube, at the end of the analysis.

As explained at the top of the README, each feature provided by the plugin require a tool.
You don't have to run xcodebuild, but you will miss the majority of information that this plugin provide.

Please:

  • configure your sonar-project.properties properly
  • install the tools listed in the README (in you want the feature associated)
  • run xcodebuild command (eee the example one in the README and tune it for your project)

You can launch sonar-scanner -X to get debug log and get a better understanding of your issues.

from sonar-apple.

github-actions avatar github-actions commented on August 30, 2024

This issue is stale because it has been open for 90 days with no activity.

from sonar-apple.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.