Comments (6)
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.
Hi @FirstDKS521, Can you share your
sonar-project.properties
? Did you run anyxcodebuild
command beforesonar-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.
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.
This issue is stale because it has been open for 90 days with no activity.
from sonar-apple.
Related Issues (11)
- Vulnerabilities are reported twice
- Objective-C highlight out of bounds HOT 1
- Objective-C issues (OCLint) not reported
- installation of plugin cause issue on analysis HOT 6
- Error when trying to run sonar-scanner command HOT 12
- Enquiry about the step of the scanning HOT 9
- SwiftLint part seem haven't scan for any files HOT 2
- Better explanation on how to use Periphery HOT 5
- not successful HOT 2
- Swift files not indexed with SonarQube 10.4 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonar-apple.