[Upload] 解壓縮 sJXs5Xb4OZwx2PetnQ8v6l3Z3oYBwlGHmqyiAjSY.zip [解壓縮完成] exit=0 [Upload] 解壓縮路徑:/tmp/code-scan-109-1794895119/mattermost-file-blocker-ng-main,共 36 個項目 [原始碼統計] 檔案:36,資料夾:11 [2026-11-17 13:58:41] SonarQube 掃描開始 Project Key:portal-scan-109 Server:http://localhost:9000 sonar-src-portal-scan-109 a9b864d1aa8eb853ef6415a8132c7e12ee9980f7995b8922fc341c1e951ad1d6 [Volume copy] exit=0 [Volume 檔案數] 36 05:58:50.101 INFO Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties 05:58:50.115 INFO Project root configuration file: NONE 05:58:50.189 INFO SonarScanner CLI 8.1.0.6389 05:58:50.193 INFO Linux 7.0.0-42-generic amd64 05:58:51.869 INFO Communicating with SonarQube Community Build 26.7.0.124771 05:58:51.869 WARN Use of 'sonar.login' property has been deprecated in favor of 'sonar.token' (or the env variable alternative 'SONAR_TOKEN'). Please use the latter when passing a token. 05:58:51.869 INFO JRE provisioning: os[linux], arch[x86_64] 05:58:53.570 INFO Starting SonarScanner Engine... 05:58:53.571 INFO Java 21.0.9 Eclipse Adoptium (64-bit) 05:58:54.409 INFO Load global settings 05:58:54.498 INFO Load global settings (done) | time=87ms 05:58:54.501 INFO Server id: 147B411E-AZ9pIc40ybfvzA5uUuf9 05:58:54.509 INFO Loading required plugins 05:58:54.510 INFO Load plugins index 05:58:54.530 INFO Load plugins index (done) | time=21ms 05:58:54.531 INFO Load/download plugins 05:58:55.308 INFO Load/download plugins (done) | time=777ms 05:58:55.493 INFO Process project properties 05:58:55.501 INFO Process project properties (done) | time=8ms 05:58:55.526 INFO Project key: portal-scan-109 05:58:55.527 INFO Base dir: /usr/src 05:58:55.527 INFO Working dir: /tmp/.scannerwork 05:58:55.532 INFO Load project settings for component key: 'portal-scan-109' 05:58:55.552 INFO Load quality profiles 05:58:55.741 INFO Load quality profiles (done) | time=188ms 05:58:55.787 WARN SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings. 05:58:55.794 INFO Load active rules 05:58:56.070 INFO Load active rules (done) | time=276ms 05:58:56.074 INFO Load analysis cache 05:58:56.086 INFO Load analysis cache (404) | time=12ms 05:58:56.130 WARN The property 'sonar.login' is deprecated and will be removed in the future. Please use the 'sonar.token' property instead when passing a token. 05:58:56.141 INFO Preprocessing files... 05:58:56.162 INFO 3 languages detected in 36 preprocessed files (done) | time=21ms 05:58:56.164 INFO Loading plugins for detected languages 05:58:56.164 INFO Load/download plugins 05:58:58.133 INFO Load/download plugins (done) | time=1970ms 05:58:58.226 INFO Load project repositories 05:58:58.232 INFO Load project repositories (done) | time=6ms 05:58:58.255 INFO Indexing files... 05:58:58.255 INFO Project configuration: 05:58:58.274 INFO 36 files indexed (done) | time=18ms 05:58:58.275 INFO Quality profile for go: Sonar way 05:58:58.276 INFO Quality profile for json: Sonar way 05:58:58.276 INFO Quality profile for yaml: Sonar way 05:58:58.276 INFO ------------- Run sensors on module portal-scan-109 05:58:58.306 INFO Load metrics repository 05:58:58.333 INFO Load metrics repository (done) | time=26ms 05:58:58.601 INFO Sensor Code Quality and Security for Go [go] 05:58:58.607 INFO The properties "sonar.tests" and "sonar.test.inclusions" are not set. To improve the analysis accuracy, we categorize a file as a test file when the filename has suffix: "_test.go" It is highly recommended to set those properties, e.g.: for the Go projects it is usually: "sonar.tests=." and "sonar.test.inclusions=**/*_test.go" 05:58:58.638 INFO 6 folders (19 files) to be analyzed 05:58:59.026 INFO 6/6 folders (19 files) have been analyzed 05:58:59.026 INFO Sensor Code Quality and Security for Go [go] (done) | time=424ms 05:58:59.026 INFO Sensor IaC CloudFormation Sensor [iac] 05:58:59.031 INFO There are no files to be analyzed for the CloudFormation language 05:58:59.031 INFO Sensor IaC CloudFormation Sensor [iac] (done) | time=5ms 05:58:59.031 INFO Sensor IaC cfn-lint report Sensor [iac] 05:58:59.031 INFO Sensor IaC cfn-lint report Sensor [iac] (done) | time=0ms 05:58:59.031 INFO Sensor IaC hadolint report Sensor [iac] 05:58:59.032 INFO Sensor IaC hadolint report Sensor [iac] (done) | time=0ms 05:58:59.032 INFO Sensor IaC Azure Resource Manager Sensor [iac] 05:58:59.032 INFO There are no files to be analyzed for the Azure Resource Manager language 05:58:59.032 INFO Sensor IaC Azure Resource Manager Sensor [iac] (done) | time=0ms 05:58:59.032 INFO Sensor Java Config Sensor [iac] 05:58:59.042 INFO There are no files to be analyzed for the Java language 05:58:59.042 INFO Sensor Java Config Sensor [iac] (done) | time=9ms 05:58:59.042 INFO Sensor IaC Docker Sensor [iac] 05:58:59.043 INFO There are no files to be analyzed for the Docker language 05:58:59.043 INFO Sensor IaC Docker Sensor [iac] (done) | time=1ms 05:58:59.043 INFO Sensor TextAndSecretsSensor [text] 05:58:59.047 INFO Available processors: 12 05:58:59.047 INFO Using 12 threads for analysis. 05:58:59.201 INFO The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true: * The filename starts with "test" * The filename contains "test." or "tests." * Any directory in the file path is named: "doc", "docs", "test", "tests", "mock" or "mocks" * Any directory in the file path has a name ending in "test" or "tests" 05:58:59.217 INFO Start fetching files for the text and secrets analysis 05:58:59.263 INFO Using Git CLI to retrieve dirty files 05:58:59.285 WARN Retrieving only language associated files, make sure to run the analysis inside a git repository to make use of inclusions specified via "sonar.text.inclusions" 05:58:59.285 INFO Starting the text and secrets analysis 05:58:59.287 INFO 22 source files to be analyzed for the text and secrets analysis 05:58:59.318 INFO 22/22 source files have been analyzed for the text and secrets analysis 05:58:59.318 INFO Skipped 5 file(s) in the secrets analysis due to automatic test file detection 05:58:59.319 INFO Sensor TextAndSecretsSensor [text] (done) | time=275ms 05:58:59.321 INFO ------------- Run sensors on project 05:58:59.458 INFO Sensor GoProjectSensor [go] 05:58:59.459 INFO Sensor GoProjectSensor [go] (done) | time=0ms 05:58:59.459 INFO Sensor IaC Project Sensor [iac] 05:58:59.459 INFO Sensor IaC Project Sensor [iac] (done) | time=1ms 05:58:59.460 INFO Sensor Zero Coverage Sensor 05:58:59.470 INFO Sensor Zero Coverage Sensor (done) | time=10ms 05:58:59.470 INFO ------------- Gather SCA dependencies on project 05:58:59.474 INFO Dependency analysis skipped 05:58:59.476 INFO SCM Publisher No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it. 05:58:59.481 INFO CPD Executor 1 file had no CPD blocks 05:58:59.481 INFO CPD Executor Calculating CPD for 18 files 05:58:59.489 INFO CPD Executor CPD calculation finished (done) | time=7ms 05:58:59.596 INFO Analysis report generated in 104ms, dir size=466.0 kB 05:58:59.621 INFO Analysis report compressed in 25ms, zip size=162.2 kB 05:59:01.838 INFO Analysis report uploaded in 2217ms 05:59:01.839 INFO ANALYSIS SUCCESSFUL, you can find the results at: http://localhost:9000/dashboard?id=portal-scan-109 05:59:01.839 INFO Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report 05:59:01.839 INFO More about the report processing at http://localhost:9000/api/ce/task?id=0704e92c-ee29-4125-aaeb-b6ea167b290f 05:59:01.847 INFO Analysis total time: 6.507 s 05:59:01.848 INFO SonarScanner Engine completed successfully 05:59:01.900 INFO EXECUTION SUCCESS 05:59:01.900 INFO Total time: 11.816s [Scanner 結束] exit=0