我正在按照 this 教程来实现 sonarQube 并扫描我的 Xcode 项目
一切都很好,直到我对我的代码运行扫描。它只检测我项目的一个文件夹
# Sonar Server details
sonar.host.url=http://localhost:9000
sonar.login=admin
sonar.password=Test123.
sonar.token=******TOKEN******
sonar.projectKey=MARi
#sonar.projectName=MARi
# defaults to ‘not provided’
#sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Defaults to .
sonar.sources=.
sonar.sourceEncoding=UTF-8
# Xcode project configuration (.xcodeproj)
# and use the later to specify which project(s) to include in the analysis (comma separated list)
# Specify either xcodeproj or xcodeproj + xcworkspace
sonar.swift.project=MARi.xcodeproj
sonar.swift.workspace=MARi.xcworkspace
# Scheme to build your application
sonar.swift.appScheme=MARi Zeta
sonar.swift.appConfiguration=Debug
# Destination Simulator to run surefire
# As string expected in destination argument of xcodebuild command
# Example = sonar.swift.simulator=platform=iOS Simulator,name=iPhone 7,OS=12.0
sonar.swift.simulator=platform=iOS Simulator,name=iPhone 14 Pro Max,OS=16.2
sonar.language=swift
#sonar.inclusions=**/*Test*/**
#sonar.inclusions=**/.swift/**/*
sonar.coverage.inclusions=**/*.swift, **/*.swiftmodule
sonar.projectBaseDir=../
#sonar.exclusions=**/*.xml,Pods/**/*,Reports/**/*,ApolloCodegen/**
sonar.coverage.exclusions=**/Pods/**/*,**/ApolloCodegen/**/*
# Path to test directories (comment if no test)
# sonar.tests=testTests,testUITests
我尝试了很多包含和排除的变体,但结果还是一样。 仅扫描 ApolloCodegen 文件夹。扫描永远不会进入 MARi 项目
我可能遗漏了像语法错误这样简单的东西,但扫描执行成功。
线总是5.2k。从来没有超过一次。所有的错误都来自
ApolloCodegen
文件夹,实际上我想排除 ApolloCodegen
和 pods
如果需要任何进一步的信息,请告诉我
我已经尝试了我能找到的包含和排除的所有变体