这是命令行执行的详情:
D:\sonar-scanning-examples-master>sonar-scanner.bat -D”sonar.projectKey=sonar-scanning-examples-master” -D”sonar.sources=.” -D”sonar.host.url=http://192.168.1.16:9000″ -D”sonar.login=73175229b0a7c20b719a4770a26dca9c8c18a46d”
INFO: Scanner configuration file: D:\sonar\sonar-scanner-3.3.0.1492-windows\bin..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner 3.3.0.1492
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Windows 10 10.0 amd64
INFO: User cache: C:\Users\SR.sonar\cache
INFO: SonarQube server 7.6.0
INFO: Default locale: “zh_CN”, source code encoding: “GBK” (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=142ms
INFO: Server id: 74C93F70-AWl7VcbnNqT9Q_GAQHnb
INFO: User cache: C:\Users\SR.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=75ms
INFO: Plugin [l10nzh] defines ‘l10nen’ as base plugin. This metadata can be removed from manifest of l10n plugins since version 5.2.
INFO: Load/download plugins (done) | time=150ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=11ms
WARN: Failed to set working directory hidden: D:\sonar-scanning-examples-master.scannerwork
INFO: Project key: sonar-scanning-examples-master
INFO: Base dir: D:\sonar-scanning-examples-master
INFO: Working dir: D:\sonar-scanning-examples-master.scannerwork
INFO: Load project settings
INFO: Load project settings (done) | time=52ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=80ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=66ms
INFO: Load active rules
INFO: Load active rules (done) | time=1764ms
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=51ms
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.
INFO: Language is forced to py
INFO: Indexing files…
INFO: Project configuration:
WARN: File ‘D:\sonar-scanning-examples-master.gitignore’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\LICENSE.txt’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\NOTICE.txt’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\Example\Example.h’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\Example\Example.m’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\Example.xcodeproj\project.pbxproj’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\Example.xcodeproj\project.xcworkspace\contents.xcworkspacedata’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\Example.xcodeproj\xcshareddata\xcschemes\Example.xcscheme’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\ExampleTests\ExampleTests.m’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\ExampleTests\Info.plist’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\README.md’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\objc-llvm-coverage\sonar-project.properties’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\README.md’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\copybooks\Attr.cpy’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\copybooks\Custmas.cpy’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\copybooks\Errparm.cpy’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\copybooks\MNTSET2.CPY’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\coverage-report\coverage-cobertua-flex.xml’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\sonar-project.properties’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\abap\ZBCMKZ17.abap’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\abap\ZZBGS106.abap’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\cobol\Custmnt2.cbl’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\erlang\hello.erl’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\flex\Circle.as’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\flex\UncoveredCircle.as’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\html\sample.xhtml’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\javascript\Person.js’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\kotlin\sample.kt’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\php\Math.php’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\pli\center.pli’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\pli\chess.pli’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\pli\maxlen.pli’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\pli\search.pli’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\rpg\MYPROGRAM.rpg’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\sql\ddl.sql’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\sql\ut_report.pkb’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\swift\example.swift’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\vb6\Info.frm’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\vb6\Registry.bas’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\vb6\Registry.cls’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner\src\xml\sonar_backup.xml’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-ant\build.xml’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-ant\README.md’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-ant\src\One.java’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-build-wrapper-linux\build.sh’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-build-wrapper-linux\README.md’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-build-wrapper-linux\sonar-project.properties’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-build-wrapper-linux\src\BiggestUnInt.cc’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-build-wrapper-linux\src\HelloWorld.cpp’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-build-wrapper-linux\src\SimpleClass.cc’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-gradle\build.gradle’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-gradle\gradle\wrapper\gradle-wrapper.jar’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-gradle\gradle\wrapper\gradle-wrapper.properties’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-gradle\gradlew’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-gradle\gradlew.bat’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-gradle\settings.gradle’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-gradle\src\main\java\App.java’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-gradle\src\test\java\AppTest.java’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-groovy\pom.xml’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-groovy\src\main\groovy\example\Greeting.groovy’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-groovy\src\main\groovy\innerclass\InnerClassExample.groovy’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-groovy\src\test\groovy\example\GreetingTest.groovy’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-it\pom.xml’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-it\src\main\java\example\EmptyClass.java’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-it\src\test\java\example\HelloWorldIntegrationTest.java’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-java\pom.xml’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-java\src\main\java\example\HelloWorld.java’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\app-java\src\test\java\example\HelloWorldUnitTest.java’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\pom.xml’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-maven\README.md’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\README.md’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\SomeConsoleApplication\App.config’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\SomeConsoleApplication\Program.cs’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\SomeConsoleApplication\Properties\AssemblyInfo.cs’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\SomeConsoleApplication\SomeConsoleApplication.csproj’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\SomeConsoleApplication.sln’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\SomeConsoleApplicationTest\ProgramTests.cs’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\SomeConsoleApplicationTest\Properties\AssemblyInfo.cs’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\sonarqube-scanner-msbuild\CSharpProject\SomeConsoleApplicationTest\SomeConsoleApplicationTest.csproj’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\README.md’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example.gitignore’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\info.plist’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\sonar-project.properties’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example\AppDelegate.swift’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example\AppDelegate2.swift’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example\Assets.xcassets\AppIcon.appiconset\Contents.json’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example\Base.lproj\MainMenu.xib’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example\Info.plist’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example.xcodeproj\project.pbxproj’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example.xcodeproj\project.xcworkspace\contents.xcworkspacedata’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example.xcodeproj\project.xcworkspace\xcuserdata\elenavilchik.xcuserdatad\UserInterfaceState.xcuserstate’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-example.xcodeproj\xcshareddata\xcschemes\swift-coverage-example.xcscheme’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-exampleTests\Info.plist’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\swift-coverage-exampleTests\swift_coverage_exampleTests.swift’ is ignored because it doesn’t belong to the forced language ‘py’
WARN: File ‘D:\sonar-scanning-examples-master\swift-coverage\swift-coverage-example\xccov-to-sonarqube-generic.sh’ is ignored because it doesn’t belong to the forced language ‘py’
INFO: 9 files indexed
INFO: Quality profile for py: Sonar way
INFO: ————- Run sensors on module apiautocore
INFO: Sensor HTML [web]
INFO: Sensor HTML web | time=38ms
INFO: Sensor Python Squid Sensor [python]
INFO: Sensor Python Squid Sensor python | time=812ms
INFO: Sensor Cobertura Sensor for Python coverage [python]
INFO: Sensor Cobertura Sensor for Python coverage python | time=47ms
INFO: Sensor PythonXUnitSensor [python]
INFO: Sensor PythonXUnitSensor python | time=19ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: Sensor JaCoCo XML Report Importer jacoco | time=13ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=55ms
INFO: ————- Run sensors on project
INFO: No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.
INFO: 5 files had no CPD blocks
INFO: Calculating CPD for 4 files
INFO: CPD calculation finished
INFO: Analysis report generated in 188ms, dir size=190 KB
INFO: Analysis report compressed in 83ms, zip size=45 KB
INFO: Analysis report uploaded in 97ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://192.168.1.16:9000/dashboard?id=sonar-scanning-examples-master
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://192.168.1.16:9000/api/ce/task?id=AWl74PgmNqT9Q_GAQNPn
INFO: Executing post-job ‘Final report’
INFO: Turn debug info on to get more details (sonar-scanner -X -Dsonar.verbose=true …).
INFO: Executing post-job ‘Final report’
INFO: Turn debug info on to get more details (sonar-scanner -X -Dsonar.verbose=true …).
INFO: Analysis total time: 9.043 s
INFO: ————————————————————————
INFO: EXECUTION SUCCESS
INFO: ————————————————————————
INFO: Total time: 12.900s
INFO: Final Memory: 18M/279M
INFO: ————————————————————————