浏览代码

Merge pull request #2 from Unity-Technologies/main-sonarqube

Main sonarqube
/main
GitHub 2 年前
当前提交
b66258a9
共有 9 个文件被更改,包括 93 次插入36 次删除
  1. 2
      .DS_Store
  2. 68
      .gitignore
  3. 2
      InverseDynamicsDemoProject/Assets/.DS_Store
  4. 56
      .yamato/sonar.yml
  5. 1
      InverseDynamicsDemoProject/.DS_Store
  6. 0
      /InverseDynamicsDemoProject/Assets
  7. 0
      /InverseDynamicsDemoProject/ProjectSettings

2
.DS_Store
文件差异内容过多而无法显示
查看文件

68
.gitignore


#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Mm]emoryCaptures/
InverseDynamicsDemoProject/[Ll]ibrary/
InverseDynamicsDemoProject/[Tt]emp/
InverseDynamicsDemoProject/[Oo]bj/
InverseDynamicsDemoProject/[Bb]uild/
InverseDynamicsDemoProject/[Bb]uilds/
InverseDynamicsDemoProject/[Ll]ogs/
InverseDynamicsDemoProject/[Mm]emoryCaptures/
!/[Aa]ssets/**/*.meta
!InverseDynamicsDemoProject/[Aa]ssets/**/*.meta
[Aa]ssets/Plugins/Editor/JetBrains*
InverseDynamicsDemoProject/[Aa]ssets/Plugins/Editor/JetBrains*
.vs/
InverseDynamicsDemoProject/.vs/
.gradle/
InverseDynamicsDemoProject/.gradle/
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db
InverseDynamicsDemoProject/ExportedObj/
InverseDynamicsDemoProject/.consulo/
InverseDynamicsDemoProject/*.csproj
InverseDynamicsDemoProject/*.unityproj
InverseDynamicsDemoProject/*.sln
InverseDynamicsDemoProject/*.suo
InverseDynamicsDemoProject/*.tmp
InverseDynamicsDemoProject/*.user
InverseDynamicsDemoProject/*.userprefs
InverseDynamicsDemoProject/*.pidb
InverseDynamicsDemoProject/*.booproj
InverseDynamicsDemoProject/*.svd
InverseDynamicsDemoProject/*.pdb
InverseDynamicsDemoProject/*.mdb
InverseDynamicsDemoProject/*.opendb
InverseDynamicsDemoProject/*.VC.db
*.pidb.meta
*.pdb.meta
*.mdb.meta
InverseDynamicsDemoProject/*.pidb.meta
InverseDynamicsDemoProject/*.pdb.meta
InverseDynamicsDemoProject/*.mdb.meta
sysinfo.txt
InverseDynamicsDemoProject/sysinfo.txt
*.apk
*.unitypackage
InverseDynamicsDemoProject/*.apk
InverseDynamicsDemoProject/*.unitypackage
crashlytics-build.properties
InverseDynamicsDemoProject/crashlytics-build.properties

2
InverseDynamicsDemoProject/Assets/.DS_Store


Bud1
orioliID_CoriolisCentrifugallg1Scomp �ID_CoriolisCentrifugalmoDDblobL� ���AID_CoriolisCentrifugalmodDblobL� ���AID_CoriolisCentrifugalph1ScomppID_DriveForceslg1ScompI0�ID_DriveForcesmoDDblob}�,w���AID_DriveForcesmodDblob}�,w���AID_DriveForcesph1ScompI�ID_ForcesForAccelerationlg1Scomp��ID_ForcesForAccelerationmoDDblob�5, ���AID_ForcesForAccelerationmodDblob�5, ���AID_ForcesForAccelerationph1Scomp�
orioliID_CoriolisCentrifugallg1Scomp�lID_CoriolisCentrifugalmoDDblob�%n� ��AID_CoriolisCentrifugalmodDblob�%n� ��AID_CoriolisCentrifugalph1Scomp`ID_DriveForceslg1ScompI0�ID_DriveForcesmoDDblob}�,w���AID_DriveForcesmodDblob}�,w���AID_DriveForcesph1ScompI�ID_ForcesForAccelerationlg1Scomp��ID_ForcesForAccelerationmoDDblob�5, ���AID_ForcesForAccelerationmodDblob�5, ���AID_ForcesForAccelerationph1Scomp�
ID_Gravitylg1Scomp�s
ID_GravitymoDDblobw�0׎�A
ID_GravitymodDblobw�0׎�A

56
.yamato/sonar.yml


csharp:
name: Sonarqube C# Scan
agent:
type: Unity::metal::macmini
image: package-ci/mac:v1.18.3-973558
flavor: m1.mac
variables:
PROJECT_DIR: InverseDynamicsDemoProject
SONARQUBE_PROJECT_KEY: ai-robotics-inverse-dynamics-csharp
SONARQUBE_PROJECT_BASE_DIR: /Users/bokken/build/output/Unity-Technologies/unity-inverse-dynamics-demo
MSBUILD_SLN_PATH: ./InverseDynamicsDemoProject/InverseDynamicsDemoProject.sln
ROOT_RELATIVE_PATH: ../
UNITY_VERSION: 2022.1.0a16
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.it.unity3d.com/artifactory/api/npm/upm-npm
- unity-downloader-cli -u $UNITY_VERSION -c Editor
- brew install mono corretto
- curl https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/5.2.1.31210/sonar-scanner-msbuild-5.2.1.31210-net46.zip -o sonar-scanner-msbuild-net46.zip -L
- unzip sonar-scanner-msbuild-net46.zip -d ~/sonar-scanner-msbuild
- chmod a+x ~/sonar-scanner-msbuild/sonar-scanner-4.6.1.2450/bin/sonar-scanner
- brew install --cask visual-studio-code
- defaults write ~/Library/Preferences/com.unity3d.UnityEditor5.x.plist kScriptsDefaultApp "/Application/Visual Studio Code.app"
- defaults write ~/Library/Preferences/com.unity3d.UnityEditor5.x.plist unity_generate_all_csproj -int 1
- defaults write ~/Library/Preferences/com.unity3d.UnityEditor5.x.plist unity_project_generation_flag -int 3
- .Editor/Unity.app/Contents/MacOS/Unity -batchmode -projectPath $PROJECT_DIR -quit -nographics -logFile - -executeMethod "UnityEditor.SyncVS.SyncSolution"
- command: |
cd $PROJECT_DIR
for file in *.csproj; do sed -i.backup "s/^[[:blank:]]*<ReferenceOutputAssembly>false<\/ReferenceOutputAssembly>/<ReferenceOutputAssembly>true<\/ReferenceOutputAssembly>/g" $file; rm $file.backup; done
cd $ROOT_RELATIVE_PATH
- mono ~/sonar-scanner-msbuild/SonarScanner.MSBuild.exe begin /k:$SONARQUBE_PROJECT_KEY /d:sonar.host.url=$SONARQUBE_ENDPOINT_URL_PRD /d:sonar.login=$SONARQUBE_TOKEN_PRD /d:sonar.projectBaseDir=$SONARQUBE_PROJECT_BASE_DIR
- msbuild $MSBUILD_SLN_PATH
- mono ~/sonar-scanner-msbuild/SonarScanner.MSBuild.exe end /d:sonar.login=$SONARQUBE_TOKEN_PRD
triggers:
cancel_old_ci: true
expression: |
((pull_request.target eq "main" OR pull_request.target eq "dev")
AND NOT pull_request.push.changes.all match "**/*.md") OR
(push.branch eq "main" OR push.branch eq "dev")
standard:
name: Sonarqube Standard Scan
agent:
type: Unity::metal::macmini
image: package-ci/mac
flavor: m1.mac
variables:
SONARQUBE_PROJECT_KEY: ai-robotics-inverse-dynamics-standard
commands:
- curl https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-macosx.zip -o sonar-scanner-macosx.zip -L
- unzip sonar-scanner-macosx.zip -d ~/sonar-scanner
- ~/sonar-scanner/sonar-scanner-4.6.2.2472-macosx/bin/sonar-scanner -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONARQUBE_ENDPOINT_URL_PRD -Dsonar.login=$SONARQUBE_TOKEN_PRD
triggers:
cancel_old_ci: true
expression: |
((pull_request.target eq "main" OR pull_request.target eq "dev")
AND NOT pull_request.push.changes.all match "**/*.md") OR
(push.branch eq "main" OR push.branch eq "dev")

1
InverseDynamicsDemoProject/.DS_Store
文件差异内容过多而无法显示
查看文件

/Assets → /InverseDynamicsDemoProject/Assets

/ProjectSettings → /InverseDynamicsDemoProject/ProjectSettings

正在加载...
取消
保存