[Git] clone https://git.steps.tw/steps/cpu-sso-new.git branch=main 正複製到 '/tmp/code-scan-87-1787039283'... [原始碼統計] 檔案:92,資料夾:52 [2026-08-18 15:48:05] SonarQube 掃描開始 Project Key:portal-scan-87 Server:http://localhost:9000 sonar-src-portal-scan-87 ef2b0be0a48a2da4aa9a24a5c5f9cfc247f2182a5e53456cd14e4b26d5cb2a81 [Volume copy] exit=0 [Volume 檔案數] 92 07:48:09.469 INFO Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties 07:48:09.480 INFO Project root configuration file: NONE 07:48:09.549 INFO SonarScanner CLI 8.0.1.6346 07:48:09.554 INFO Linux 7.0.0-28-generic amd64 07:48:11.212 INFO Communicating with SonarQube Community Build 26.7.0.124771 07:48:11.212 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:48:11.213 INFO JRE provisioning: os[linux], arch[x86_64] 07:48:12.890 INFO Starting SonarScanner Engine... 07:48:12.890 INFO Java 21.0.9 Eclipse Adoptium (64-bit) 07:48:13.678 INFO Load global settings 07:48:13.741 INFO Load global settings (done) | time=61ms 07:48:13.743 INFO Server id: 147B411E-AZ9pIc40ybfvzA5uUuf9 07:48:13.751 INFO Loading required plugins 07:48:13.752 INFO Load plugins index 07:48:13.769 INFO Load plugins index (done) | time=18ms 07:48:13.769 INFO Load/download plugins 07:48:14.153 INFO Load/download plugins (done) | time=384ms 07:48:14.345 INFO Process project properties 07:48:14.353 INFO Process project properties (done) | time=9ms 07:48:14.385 INFO Project key: portal-scan-87 07:48:14.385 INFO Base dir: /usr/src 07:48:14.385 INFO Working dir: /tmp/.scannerwork 07:48:14.390 INFO Load project settings for component key: 'portal-scan-87' 07:48:14.408 INFO Load quality profiles 07:48:14.523 INFO Load quality profiles (done) | time=115ms 07:48:14.551 INFO Load active rules 07:48:14.787 INFO Load active rules (done) | time=235ms 07:48:14.791 INFO Load analysis cache 07:48:14.797 INFO Load analysis cache (404) | time=6ms 07:48:14.937 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:48:14.947 INFO Preprocessing files... 07:48:14.995 INFO 7 languages detected in 63 preprocessed files (done) | time=47ms 07:48:14.995 INFO 29 files ignored because of scm ignore settings 07:48:14.996 INFO Loading plugins for detected languages 07:48:14.996 INFO Load/download plugins 07:48:16.668 INFO Load/download plugins (done) | time=1672ms 07:48:16.768 INFO Load project repositories 07:48:16.773 INFO Load project repositories (done) | time=5ms 07:48:16.788 INFO Indexing files... 07:48:16.789 INFO Project configuration: 07:48:16.853 INFO 62 files indexed (done) | time=64ms 07:48:16.853 INFO Quality profile for css: Sonar way 07:48:16.854 INFO Quality profile for docker: Sonar way 07:48:16.854 INFO Quality profile for js: Sonar way 07:48:16.854 INFO Quality profile for json: Sonar way 07:48:16.854 INFO Quality profile for php: Sonar way 07:48:16.854 INFO Quality profile for xml: Sonar way 07:48:16.855 INFO Quality profile for yaml: Sonar way 07:48:16.855 INFO ------------- Run sensors on module portal-scan-87 07:48:16.896 INFO Load metrics repository 07:48:16.918 INFO Load metrics repository (done) | time=22ms 07:48:16.988 INFO Reflections took 45 ms to scan 1 urls, producing 30 keys and 295 values 07:48:17.381 INFO Sensor HTML [web] 07:48:17.414 INFO Sensor HTML [web] (done) | time=33ms 07:48:17.415 INFO Sensor XML Sensor [xml] 07:48:17.418 INFO 1 source file to be analyzed 07:48:17.515 INFO 1/1 source file has been analyzed 07:48:17.515 INFO Sensor XML Sensor [xml] (done) | time=100ms 07:48:17.515 INFO Sensor PHP sensor [php] 07:48:17.530 INFO Starting PHP symbol indexer 07:48:17.530 INFO 27 source files to be analyzed 07:48:17.734 INFO 27/27 source files have been analyzed 07:48:17.734 INFO Cached information of global symbols will be used for 0 out of 27 files. Global symbols were recomputed for the remaining files. 07:48:17.749 INFO Starting PHP rules 07:48:17.749 INFO 27 source files to be analyzed 07:48:18.215 INFO 27/27 source files have been analyzed 07:48:18.216 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:48:18.216 INFO Sensor PHP sensor [php] (done) | time=700ms 07:48:18.216 INFO Sensor Analyzer for "php.ini" files [php] 07:48:18.217 INFO Sensor Analyzer for "php.ini" files [php] (done) | time=1ms 07:48:18.217 INFO Sensor PHPUnit report sensor [php] 07:48:18.217 INFO No PHPUnit tests reports provided (see 'sonar.php.tests.reportPath' property) 07:48:18.217 INFO No PHPUnit coverage reports provided (see 'sonar.php.coverage.reportPaths' property) 07:48:18.218 WARN PHPUnit test cases are detected. Make sure to specify test sources via `sonar.test` to get more precise analysis results. 07:48:18.218 INFO Sensor PHPUnit report sensor [php] (done) | time=1ms 07:48:18.218 INFO Sensor IaC CloudFormation Sensor [iac] 07:48:18.222 INFO There are no files to be analyzed for the CloudFormation language 07:48:18.222 INFO Sensor IaC CloudFormation Sensor [iac] (done) | time=3ms 07:48:18.222 INFO Sensor IaC cfn-lint report Sensor [iac] 07:48:18.222 INFO Sensor IaC cfn-lint report Sensor [iac] (done) | time=0ms 07:48:18.222 INFO Sensor IaC Kustomization Sensor [iac] 07:48:18.242 INFO Sensor IaC Kustomization Sensor [iac] (done) | time=19ms 07:48:18.242 INFO Sensor IaC hadolint report Sensor [iac] 07:48:18.243 INFO Sensor IaC hadolint report Sensor [iac] (done) | time=0ms 07:48:18.243 INFO Sensor IaC Azure Resource Manager Sensor [iac] 07:48:18.243 INFO There are no files to be analyzed for the Azure Resource Manager language 07:48:18.243 INFO Sensor IaC Azure Resource Manager Sensor [iac] (done) | time=0ms 07:48:18.243 INFO Sensor Java Config Sensor [iac] 07:48:18.243 INFO There are no files to be analyzed for the Java language 07:48:18.243 INFO Sensor Java Config Sensor [iac] (done) | time=0ms 07:48:18.244 INFO Sensor IaC Docker Sensor [iac] 07:48:18.281 INFO 1 source file to be analyzed 07:48:18.372 INFO 1/1 source file has been analyzed 07:48:18.373 INFO Sensor IaC Docker Sensor [iac] (done) | time=129ms 07:48:18.373 INFO Sensor IaC Kubernetes Sensor [iac] 07:48:18.414 INFO There are no files to be analyzed for the Kubernetes language 07:48:18.414 INFO Sensor IaC Kubernetes Sensor [iac] (done) | time=41ms 07:48:18.414 INFO Sensor TextAndSecretsSensor [text] 07:48:18.420 INFO Available processors: 12 07:48:18.421 INFO Using 12 threads for analysis. 07:48:18.585 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:48:18.601 INFO Start fetching files for the text and secrets analysis 07:48:18.605 INFO Using Git CLI to retrieve dirty files 07:48:18.607 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:48:18.608 INFO Starting the text and secrets analysis 07:48:18.609 INFO 37 source files to be analyzed for the text and secrets analysis 07:48:18.667 INFO 37/37 source files have been analyzed for the text and secrets analysis 07:48:18.668 INFO Skipped 3 file(s) in the secrets analysis due to automatic test file detection 07:48:18.669 INFO Sensor TextAndSecretsSensor [text] (done) | time=255ms 07:48:18.671 INFO ------------- Run sensors on project 07:48:18.864 INFO Sensor JavaScript/TypeScript/CSS analysis [javascript] 07:48:19.058 INFO Detected os: Linux arch: amd64 alpine: false. Platform: LINUX_X64 07:48:19.058 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:48:21.209 INFO Using embedded Node.js runtime. 07:48:21.209 INFO Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'. 07:48:22.669 INFO Memory configuration: OS (47937 MB), Node.js (4288 MB). 07:48:22.750 INFO gRPC analyze-project server listening on 127.0.0.1:35345 07:48:22.843 INFO Plugin version: [13.1.0.42921] 07:48:24.062 INFO Found 0 tsconfig.json file(s): [] 07:48:24.689 INFO 5 source files to be analyzed 07:48:24.690 INFO Analyzing 4 file(s) using default options [lib: lib.esnext.d.ts, lib.dom.d.ts] 07:48:24.690 INFO 5/5 source files have been analyzed 07:48:24.696 INFO Hit the cache for 0 out of 4 07:48:24.697 INFO Miss the cache for 4 out of 4: ANALYSIS_MODE_INELIGIBLE [4/4] 07:48:24.697 INFO Sensor JavaScript/TypeScript/CSS analysis [javascript] (done) | time=5832ms 07:48:24.697 INFO Sensor IaC Project Sensor [iac] 07:48:24.697 INFO Sensor IaC Project Sensor [iac] (done) | time=0ms 07:48:24.697 INFO Sensor Zero Coverage Sensor 07:48:24.702 INFO Sensor Zero Coverage Sensor (done) | time=4ms 07:48:24.703 INFO ------------- Gather SCA dependencies on project 07:48:24.706 INFO Dependency analysis skipped 07:48:24.707 INFO SCM Publisher SCM provider for this project is: git 07:48:24.708 INFO SCM Publisher 34 source files to be analyzed 07:48:24.709 WARN Shallow clone detected, no blame information will be provided. You can convert to non-shallow with 'git fetch --unshallow'. 07:48:24.711 INFO SCM Publisher 0/34 source files have been analyzed (done) | time=2ms 07:48:24.712 WARN Missing blame information for the following files: 07:48:24.712 WARN * tests/Unit/ExampleTest.php 07:48:24.712 WARN * database/factories/UserFactory.php 07:48:24.712 WARN * resources/css/app.css 07:48:24.712 WARN * config/auth.php 07:48:24.712 WARN * database/migrations/0001_01_01_000000_create_users_table.php 07:48:24.712 WARN * vite.config.js 07:48:24.712 WARN * config/queue.php 07:48:24.712 WARN * config/cache.php 07:48:24.712 WARN * config/database.php 07:48:24.713 WARN * database/seeders/DatabaseSeeder.php 07:48:24.713 WARN * app/Models/User.php 07:48:24.713 WARN * database/migrations/0001_01_01_000002_create_jobs_table.php 07:48:24.713 WARN * config/mail.php 07:48:24.713 WARN * config/filesystems.php 07:48:24.713 WARN * docker/8.4/Dockerfile 07:48:24.713 WARN * config/logging.php 07:48:24.713 WARN * vite-module-loader.js 07:48:24.713 WARN * app/Providers/AppServiceProvider.php 07:48:24.713 WARN * routes/console.php 07:48:24.714 WARN * routes/web.php 07:48:24.714 WARN * bootstrap/app.php 07:48:24.714 WARN * config/session.php 07:48:24.714 WARN * resources/js/bootstrap.js 07:48:24.714 WARN * database/migrations/0001_01_01_000001_create_cache_table.php 07:48:24.714 WARN * public/index.php 07:48:24.714 WARN * bootstrap/providers.php 07:48:24.714 WARN * config/services.php 07:48:24.715 WARN * tests/TestCase.php 07:48:24.715 WARN * phpunit.xml 07:48:24.715 WARN * resources/js/app.js 07:48:24.715 WARN * tests/Feature/ExampleTest.php 07:48:24.715 WARN * config/app.php 07:48:24.715 WARN * app/Http/Controllers/Controller.php 07:48:24.715 WARN * config/modules.php 07:48:24.715 WARN This may lead to missing/broken features in SonarQube 07:48:24.716 INFO CPD Executor 11 files had no CPD blocks 07:48:24.717 INFO CPD Executor Calculating CPD for 21 files 07:48:24.728 INFO CPD Executor CPD calculation finished (done) | time=11ms 07:48:24.734 INFO SCM revision ID 'a798db7c1331afb96cda928ebc95c600b4f5ee27' 07:48:24.840 INFO Analysis report generated in 109ms, dir size=414.4 kB 07:48:24.872 INFO Analysis report compressed in 31ms, zip size=124.5 kB 07:48:25.752 INFO Analysis report uploaded in 880ms 07:48:25.753 INFO ANALYSIS SUCCESSFUL, you can find the results at: http://localhost:9000/dashboard?id=portal-scan-87 07:48:25.753 INFO Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report 07:48:25.754 INFO More about the report processing at http://localhost:9000/api/ce/task?id=f477b098-8e6f-45fd-abe2-d87bbc303c7a 07:48:25.859 INFO Analysis total time: 11.673 s 07:48:25.859 INFO SonarScanner Engine completed successfully 07:48:25.908 INFO EXECUTION SUCCESS 07:48:25.908 INFO Total time: 16.468s [Scanner 結束] exit=0