I have the following configuration:
sonar.projectKey=angular:app-vimbo
sonar.projectName=app-vimbo
sonar.projectVersion=9.1.1
sonar.sourceEncoding=UTF-8
sonar.sources=src/app,src/@vimbo
sonar.exclusions=**/dist/**/*,**/node_modules/**,**/*.spec.ts,**/assets/*
sonar.login=15625ce00ec14dac50a89c93148d7718e2bcd786
#sonar.tests=src/app
#sonar.test.inclusions=**/*.spec.ts
sonar.ts.tslint.configPath=tslint.json
#sonar.ts.coverage.lcovReportPath=coverage/coverage.lcov
# if using local tslint then enable the line below
# sonar.ts.tslint.outputPath=reports/lint_issues.json
#sonar.genericcoverage.unitTestReportPaths=reports/ut_report.xml
# Change the host.url to point to the
# sonarcube server (default localhost)
sonar.host.url=http://localhost:9000
forced to put an error in the typescript file, variable teste.
terminal output
> sonar-scanner
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp
INFO: Scanner configuration file: /var/www/html/pwa_vimbo/node_modules/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /var/www/html/pwa_vimbo/sonar-project.properties
INFO: SonarQube Scanner 3.1.0.1141
INFO: Java 1.8.0_261 Oracle Corporation (64-bit)
INFO: Linux 4.15.0-29deepin-generic amd64
INFO: User cache: /home/glauberfunez/.sonar/cache
INFO: SonarQube server 8.4.1
INFO: Default locale: "pt_BR", source code encoding: "UTF-8"
WARN: SonarScanner will require Java 11 to run starting in SonarQube 8.x
INFO: Load global settings
INFO: Load global settings (done) | time=163ms
INFO: Server id: BF41A1F2-AXQq74gywIEJb62IQsuL
INFO: User cache: /home/glauberfunez/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=96ms
INFO: Load/download plugins (done) | time=202ms
INFO: Process project properties
INFO: Process project properties (done) | time=18ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=6ms
INFO: Project key: angular:app-vimbo
INFO: Base dir: /var/www/html/pwa_vimbo
INFO: Working dir: /var/www/html/pwa_vimbo/.scannerwork
INFO: Load project settings for component key: 'angular:app-vimbo'
INFO: Load project settings for component key: 'angular:app-vimbo' (done) | time=151ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=306ms
INFO: Load active rules
INFO: Load active rules (done) | time=6146ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Excluded sources: **/dist/**/*, **/node_modules/**, **/*.spec.ts, **/assets/*
INFO: Load project repositories
INFO: Load project repositories (done) | time=139ms
INFO: 2425 files indexed
INFO: 1 file ignored because of inclusion/exclusion patterns
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for css: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module app-vimbo
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=188ms
INFO: Sensor SonarCSS Metrics [cssfamily]
INFO: Sensor SonarCSS Metrics [cssfamily] (done) | time=6324ms
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: 1050 source files to be analyzed
INFO: 311/1050 files analyzed, current file: src/@vimbo/components/message-boxes/message-boxes.component.scss
INFO: 776/1050 files analyzed, current file: src/app/main/apps/general-settings/states/states-list/list.component.scss
INFO: 1050/1050 source files have been analyzed
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=28858ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=37ms
INFO: Sensor TypeScript analysis [javascript]
INFO: Using TypeScript at: '/var/www/html/pwa_vimbo/node_modules'
INFO: Found 4 tsconfig.json file(s): [/var/www/html/pwa_vimbo/tsconfig.json, /var/www/html/pwa_vimbo/e2e/tsconfig.json, /var/www/html/pwa_vimbo/@schematics/default-app-graphql/tsconfig.json, /var/www/html/pwa_vimbo/@schematics/default-app-http/tsconfig.json]
INFO: 1362 source files to be analyzed
INFO: Skipping 1362 files with no tsconfig.json
INFO: 1362/1362 source files have been analyzed
INFO: Sensor TypeScript analysis [javascript] (done) | time=10290ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=35ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=5733ms
INFO: Sensor SonarTS [typescript]
INFO: Since SonarTS v2.0, TypeScript analysis is performed by SonarJS analyzer v6.0 or later. No TypeScript analysis is performed by SonarTS.
INFO: Sensor SonarTS [typescript] (done) | time=0ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=73ms
INFO: SCM Publisher SCM provider for this project is: git
INFO: SCM Publisher 2402 source files to be analyzed
INFO: 99/2402 source files have been analyzed
INFO: 258/2402 source files have been analyzed
INFO: 402/2402 source files have been analyzed
INFO: 532/2402 source files have been analyzed
INFO: 740/2402 source files have been analyzed
INFO: 1001/2402 source files have been analyzed
INFO: 1245/2402 source files have been analyzed
INFO: 1506/2402 source files have been analyzed
INFO: 1771/2402 source files have been analyzed
INFO: 2056/2402 source files have been analyzed
INFO: 2313/2402 source files have been analyzed
INFO: SCM Publisher 2401/2402 source files have been analyzed (done) | time=115454ms
WARN: Missing blame information for the following files:
WARN: * src/app/main/apps/general-settings/activity-types/activity-types.component.ts
WARN: This may lead to missing/broken features in SonarQube
INFO: CPD Executor 19 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 424 files
INFO: CPD Executor CPD calculation finished (done) | time=3565ms
INFO: Analysis report generated in 1375ms, dir size=17 MB
INFO: Analysis report compressed in 8191ms, zip size=5 MB
INFO: Analysis report uploaded in 295ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=angular%3Aapp-vimbo
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://localhost:9000/api/ce/task?id=AXQrBD4NwIEJb62IQxXq
INFO: Analysis total time: 3:30.009 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 3:31.861s
INFO: Final Memory: 30M/1117M
INFO: ------------------------------------------------------------------------
You can see in the image below, that in bugs did not take any ts file