[Git] clone https://git.steps.tw/steps/cpu-sso-new.git branch=main 正複製到 '/tmp/code-scan-82-1787039388'... [原始碼統計] 檔案:92,資料夾:52 [2026-08-18 15:49:49] SonarQube 掃描開始 Project Key:portal-scan-82 Server:http://localhost:9000 sonar-src-portal-scan-82 915ba738a6c34c887d7c1cb9fc8863e66ecf0793a2aae5b68de56a9cbdd83e3c [Volume copy] exit=0 [Volume 檔案數] 92 07:49:52.323 INFO Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties 07:49:52.339 INFO Project root configuration file: NONE 07:49:52.366 INFO SonarScanner CLI 8.0.1.6346 07:49:52.371 INFO Linux 7.0.0-28-generic amd64 07:49:53.316 INFO Communicating with SonarQube Community Build 26.7.0.124771 07:49:53.316 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. 07:49:53.317 INFO JRE provisioning: os[linux], arch[x86_64] 07:49:54.504 INFO Starting SonarScanner Engine... 07:49:54.504 INFO Java 21.0.9 Eclipse Adoptium (64-bit) 07:49:55.295 INFO Load global settings 07:49:55.363 INFO Load global settings (done) | time=66ms 07:49:55.366 INFO Server id: 147B411E-AZ9pIc40ybfvzA5uUuf9 07:49:55.375 INFO Loading required plugins 07:49:55.375 INFO Load plugins index 07:49:55.384 INFO Load plugins index (done) | time=10ms 07:49:55.384 INFO Load/download plugins 07:49:55.604 INFO Load/download plugins (done) | time=219ms 07:49:55.784 INFO Process project properties 07:49:55.792 INFO Process project properties (done) | time=8ms 07:49:55.799 INFO Project key: portal-scan-82 07:49:55.800 INFO Base dir: /usr/src 07:49:55.800 INFO Working dir: /tmp/.scannerwork 07:49:55.805 INFO Load project settings for component key: 'portal-scan-82' 07:49:55.824 INFO Load quality profiles 07:49:55.864 INFO Load quality profiles (done) | time=41ms 07:49:55.893 INFO Load active rules 07:49:56.107 INFO Load active rules (done) | time=214ms 07:49:56.113 INFO Load analysis cache 07:49:56.118 INFO Load analysis cache (404) | time=5ms 07:49:56.227 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. 07:49:56.245 INFO Preprocessing files... 07:49:56.308 INFO 7 languages detected in 63 preprocessed files (done) | time=62ms 07:49:56.308 INFO 29 files ignored because of scm ignore settings 07:49:56.309 INFO Loading plugins for detected languages 07:49:56.310 INFO Load/download plugins 07:49:57.301 INFO Load/download plugins (done) | time=991ms 07:49:57.403 INFO Load project repositories 07:49:57.407 INFO Load project repositories (done) | time=4ms 07:49:57.423 INFO Indexing files... 07:49:57.423 INFO Project configuration: 07:49:57.494 INFO 62 files indexed (done) | time=70ms 07:49:57.494 INFO Quality profile for css: Sonar way 07:49:57.495 INFO Quality profile for docker: Sonar way 07:49:57.495 INFO Quality profile for js: Sonar way 07:49:57.495 INFO Quality profile for json: Sonar way 07:49:57.495 INFO Quality profile for php: Sonar way 07:49:57.495 INFO Quality profile for xml: Sonar way 07:49:57.496 INFO Quality profile for yaml: Sonar way 07:49:57.496 INFO ------------- Run sensors on module portal-scan-82 07:49:57.535 INFO Load metrics repository 07:49:57.553 INFO Load metrics repository (done) | time=18ms 07:49:57.620 INFO Reflections took 44 ms to scan 1 urls, producing 30 keys and 295 values 07:49:58.030 INFO Sensor HTML [web] 07:49:58.069 INFO Sensor HTML [web] (done) | time=39ms 07:49:58.070 INFO Sensor XML Sensor [xml] 07:49:58.073 INFO 1 source file to be analyzed 07:49:58.157 INFO 1/1 source file has been analyzed 07:49:58.157 INFO Sensor XML Sensor [xml] (done) | time=87ms 07:49:58.157 INFO Sensor PHP sensor [php] 07:49:58.173 INFO Starting PHP symbol indexer 07:49:58.174 INFO 27 source files to be analyzed 07:49:58.357 INFO 27/27 source files have been analyzed 07:49:58.357 INFO Cached information of global symbols will be used for 0 out of 27 files. Global symbols were recomputed for the remaining files. 07:49:58.371 INFO Starting PHP rules 07:49:58.371 INFO 27 source files to be analyzed 07:49:58.826 INFO 27/27 source files have been analyzed 07:49:58.826 INFO The PHP analyzer was able to leverage cached data from previous analyses for 0 out of 27 files. These files were not parsed. 07:49:58.827 INFO Sensor PHP sensor [php] (done) | time=669ms 07:49:58.827 INFO Sensor Analyzer for "php.ini" files [php] 07:49:58.828 INFO Sensor Analyzer for "php.ini" files [php] (done) | time=1ms 07:49:58.828 INFO Sensor PHPUnit report sensor [php] 07:49:58.828 INFO No PHPUnit tests reports provided (see 'sonar.php.tests.reportPath' property) 07:49:58.829 INFO No PHPUnit coverage reports provided (see 'sonar.php.coverage.reportPaths' property) 07:49:58.829 WARN PHPUnit test cases are detected. Make sure to specify test sources via `sonar.test` to get more precise analysis results. 07:49:58.829 INFO Sensor PHPUnit report sensor [php] (done) | time=1ms 07:49:58.829 INFO Sensor IaC CloudFormation Sensor [iac] 07:49:58.833 INFO There are no files to be analyzed for the CloudFormation language 07:49:58.833 INFO Sensor IaC CloudFormation Sensor [iac] (done) | time=3ms 07:49:58.833 INFO Sensor IaC cfn-lint report Sensor [iac] 07:49:58.834 INFO Sensor IaC cfn-lint report Sensor [iac] (done) | time=0ms 07:49:58.834 INFO Sensor IaC Kustomization Sensor [iac] 07:49:58.858 INFO Sensor IaC Kustomization Sensor [iac] (done) | time=23ms 07:49:58.858 INFO Sensor IaC hadolint report Sensor [iac] 07:49:58.858 INFO Sensor IaC hadolint report Sensor [iac] (done) | time=0ms 07:49:58.858 INFO Sensor IaC Azure Resource Manager Sensor [iac] 07:49:58.858 INFO There are no files to be analyzed for the Azure Resource Manager language 07:49:58.859 INFO Sensor IaC Azure Resource Manager Sensor [iac] (done) | time=0ms 07:49:58.859 INFO Sensor Java Config Sensor [iac] 07:49:58.859 INFO There are no files to be analyzed for the Java language 07:49:58.859 INFO Sensor Java Config Sensor [iac] (done) | time=0ms 07:49:58.859 INFO Sensor IaC Docker Sensor [iac] 07:49:58.897 INFO 1 source file to be analyzed 07:49:58.993 INFO 1/1 source file has been analyzed 07:49:58.993 INFO Sensor IaC Docker Sensor [iac] (done) | time=134ms 07:49:58.993 INFO Sensor IaC Kubernetes Sensor [iac] 07:49:59.033 INFO There are no files to be analyzed for the Kubernetes language 07:49:59.034 INFO Sensor IaC Kubernetes Sensor [iac] (done) | time=40ms 07:49:59.034 INFO Sensor TextAndSecretsSensor [text] 07:49:59.040 INFO Available processors: 12 07:49:59.041 INFO Using 12 threads for analysis. 07:49:59.203 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" 07:49:59.218 INFO Start fetching files for the text and secrets analysis 07:49:59.223 INFO Using Git CLI to retrieve dirty files 07:49:59.225 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" 07:49:59.225 INFO Starting the text and secrets analysis 07:49:59.227 INFO 37 source files to be analyzed for the text and secrets analysis 07:49:59.280 INFO 37/37 source files have been analyzed for the text and secrets analysis 07:49:59.280 INFO Skipped 3 file(s) in the secrets analysis due to automatic test file detection 07:49:59.282 INFO Sensor TextAndSecretsSensor [text] (done) | time=248ms 07:49:59.284 INFO ------------- Run sensors on project 07:49:59.448 INFO Sensor JavaScript/TypeScript/CSS analysis [javascript] 07:49:59.643 INFO Detected os: Linux arch: amd64 alpine: false. Platform: LINUX_X64 07:49:59.643 INFO Deploy location /opt/sonar-scanner/.sonar/js/node-runtime, tagetRuntime: /opt/sonar-scanner/.sonar/js/node-runtime/node, version: /opt/sonar-scanner/.sonar/js/node-runtime/version.txt 07:50:01.778 INFO Using embedded Node.js runtime. 07:50:01.778 INFO Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'. 07:50:03.263 INFO Memory configuration: OS (47937 MB), Node.js (4288 MB). 07:50:03.274 INFO gRPC analyze-project server listening on 127.0.0.1:43087 07:50:03.381 INFO Plugin version: [13.1.0.42921] 07:50:04.639 INFO Found 0 tsconfig.json file(s): [] 07:50:05.313 INFO 5 source files to be analyzed 07:50:05.313 INFO Analyzing 4 file(s) using default options [lib: lib.esnext.d.ts, lib.dom.d.ts] 07:50:05.313 INFO 5/5 source files have been analyzed 07:50:05.320 INFO Hit the cache for 0 out of 4 07:50:05.321 INFO Miss the cache for 4 out of 4: ANALYSIS_MODE_INELIGIBLE [4/4] 07:50:05.321 INFO Sensor JavaScript/TypeScript/CSS analysis [javascript] (done) | time=5872ms 07:50:05.321 INFO Sensor IaC Project Sensor [iac] 07:50:05.321 INFO Sensor IaC Project Sensor [iac] (done) | time=0ms 07:50:05.321 INFO Sensor Zero Coverage Sensor 07:50:05.326 INFO Sensor Zero Coverage Sensor (done) | time=4ms 07:50:05.327 INFO ------------- Gather SCA dependencies on project 07:50:05.330 INFO Dependency analysis skipped 07:50:05.332 INFO SCM Publisher SCM provider for this project is: git 07:50:05.333 INFO SCM Publisher 34 source files to be analyzed 07:50:05.334 WARN Shallow clone detected, no blame information will be provided. You can convert to non-shallow with 'git fetch --unshallow'. 07:50:05.336 INFO SCM Publisher 0/34 source files have been analyzed (done) | time=3ms 07:50:05.337 WARN Missing blame information for the following files: 07:50:05.337 WARN * tests/Unit/ExampleTest.php 07:50:05.337 WARN * database/factories/UserFactory.php 07:50:05.337 WARN * resources/css/app.css 07:50:05.337 WARN * config/auth.php 07:50:05.337 WARN * database/migrations/0001_01_01_000000_create_users_table.php 07:50:05.337 WARN * vite.config.js 07:50:05.337 WARN * config/queue.php 07:50:05.337 WARN * config/cache.php 07:50:05.337 WARN * config/database.php 07:50:05.338 WARN * database/seeders/DatabaseSeeder.php 07:50:05.338 WARN * app/Models/User.php 07:50:05.338 WARN * database/migrations/0001_01_01_000002_create_jobs_table.php 07:50:05.338 WARN * config/mail.php 07:50:05.338 WARN * config/filesystems.php 07:50:05.338 WARN * docker/8.4/Dockerfile 07:50:05.338 WARN * config/logging.php 07:50:05.338 WARN * vite-module-loader.js 07:50:05.338 WARN * app/Providers/AppServiceProvider.php 07:50:05.338 WARN * routes/console.php 07:50:05.339 WARN * routes/web.php 07:50:05.339 WARN * bootstrap/app.php 07:50:05.339 WARN * config/session.php 07:50:05.339 WARN * resources/js/bootstrap.js 07:50:05.339 WARN * database/migrations/0001_01_01_000001_create_cache_table.php 07:50:05.339 WARN * public/index.php 07:50:05.339 WARN * bootstrap/providers.php 07:50:05.339 WARN * config/services.php 07:50:05.339 WARN * tests/TestCase.php 07:50:05.339 WARN * phpunit.xml 07:50:05.339 WARN * resources/js/app.js 07:50:05.340 WARN * tests/Feature/ExampleTest.php 07:50:05.340 WARN * config/app.php 07:50:05.340 WARN * app/Http/Controllers/Controller.php 07:50:05.340 WARN * config/modules.php 07:50:05.340 WARN This may lead to missing/broken features in SonarQube 07:50:05.341 INFO CPD Executor 11 files had no CPD blocks 07:50:05.341 INFO CPD Executor Calculating CPD for 21 files 07:50:05.351 INFO CPD Executor CPD calculation finished (done) | time=9ms 07:50:05.360 INFO SCM revision ID 'a798db7c1331afb96cda928ebc95c600b4f5ee27' 07:50:05.463 INFO Analysis report generated in 108ms, dir size=414.4 kB 07:50:05.501 INFO Analysis report compressed in 37ms, zip size=124.5 kB 07:50:05.802 INFO Analysis report uploaded in 301ms 07:50:05.803 INFO ANALYSIS SUCCESSFUL, you can find the results at: http://localhost:9000/dashboard?id=portal-scan-82 07:50:05.803 INFO Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report 07:50:05.803 INFO More about the report processing at http://localhost:9000/api/ce/task?id=a7fb15ec-4dc9-4263-8042-3b0ae107ebb5 07:50:05.897 INFO Analysis total time: 10.260 s 07:50:05.898 INFO SonarScanner Engine completed successfully 07:50:05.941 INFO EXECUTION SUCCESS 07:50:05.942 INFO Total time: 13.621s [Scanner 結束] exit=0