Typescript files are not Analyzed in SonarQube

sonarqube

(Manish Kumar) #1

We have SQ Server with version 6.4 , the problem here is it does NOT analyze typescript files for one of the projects whereas we get analysis for another project on the same server .

The plugin version for Typescript in SQ server is .99

Below are the error logs.

INFO: Scanner configuration file: C:\CGTA\sonar-scanner-msbuild-3.0.0.629\sonar-scanner-3.0.3.778\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\jenkins\workspace\Aurora_B.0_Mainline_UI_Nightly_Sonar\UserInterface\Client\sonar-project.properties
INFO: SonarQube Scanner 3.0.3.778
INFO: Java 1.8.0_20 Oracle Corporation (64-bit)
INFO: Windows 7 6.1 amd64
INFO: User cache: C:\Users\310209258.sonar\cache
INFO: Load global settings
INFO: Load global settings (done) | time=86ms
INFO: User cache: C:\Users\310209258.sonar\cache
INFO: Load plugins index
INFO: Load plugins index (done) | time=9ms
INFO: SonarQube server 6.4.0
INFO: Default locale: “en_US”, source code encoding: “UTF-8”
INFO: Process project properties
INFO: Load project repositories
INFO: Load project repositories (done) | time=35ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=31ms
INFO: Load active rules
INFO: Load active rules (done) | time=2761ms
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=38ms
WARN: SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
INFO: Publish mode
INFO: Project key: Aurora_B.0_Main_UI:Aurora_B.0_Main_UI
INFO: ------------- Scan Aurora_B.0_Main_UI
INFO: Load server rules
INFO: Load server rules (done) | time=75ms
INFO: Initializer GenericCoverageSensor
INFO: Initializer GenericCoverageSensor (done) | time=1ms
INFO: Base dir: C:\jenkins\workspace\Aurora_B.0_Mainline_UI_Nightly_Sonar\UserInterface\Client
INFO: Working dir: C:\jenkins\workspace\Aurora_B.0_Mainline_UI_Nightly_Sonar\UserInterface\Client.scannerwork
INFO: Source paths: src
INFO: Test paths: src/app/reducer-specs
INFO: Source encoding: UTF-8, default locale: en_US
INFO: Index files
INFO: Excluded sources:
INFO: src/assets/styles/jquery-ui.css
INFO: src/assets/scripts/jquery-ui.js
INFO: src/assets/styles/iThing.css
INFO: tests/ts//*.ts
INFO: Included tests:
INFO: tests/ts/
/*.ts
INFO: 494 files indexed
INFO: 23 files ignored because of inclusion/exclusion patterns
INFO: Quality profile for css: SonarQube Way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for ts: TsLint
INFO: Quality profile for web: Sonar way
INFO: Sensor CSS Analyzer Sensor [css]
INFO: 68 source files to be analyzed
INFO: Sensor CSS Analyzer Sensor [css] (done) | time=1211ms
INFO: 68/68 source files have been analyzed
INFO: Sensor Embedded CSS Analyzer Sensor [css]
INFO: 74 source files to be analyzed
INFO: Sensor Embedded CSS Analyzer Sensor [css] (done) | time=60ms
INFO: 74/74 source files have been analyzed
INFO: Sensor JavaScript Squid Sensor [javascript]
INFO: 1 source files to be analyzed
INFO: Unit Test Coverage Sensor is started
INFO: 1/1 source files have been analyzed
INFO: Integration Test Coverage Sensor is started
INFO: Overall Coverage Sensor is started
INFO: Sensor JavaScript Squid Sensor [javascript] (done) | time=7ms
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=2ms
INFO: Sensor Web [web]
WARN: Giving up highlighting/handling duplication for file [moduleKey=Aurora_B.0_Main_UI:Aurora_B.0_Main_UI, relative=src/index.html, basedir=C:\jenkins\workspace\Aurora_B.0_Mainline_UI_Nightly_Sonar\UserInterface\Client]
java.lang.IllegalArgumentException: Unable to register token in file [moduleKey=Aurora_B.0_Main_UI:Aurora_B.0_Main_UI, relative=src/index.html, basedir=C:\jenkins\workspace\Aurora_B.0_Mainline_UI_Nightly_Sonar\UserInterface\Client]
at org.sonar.api.batch.sensor.cpd.internal.DefaultCpdTokens.addToken(DefaultCpdTokens.java:77)
at org.sonar.plugins.web.core.WebTokensVisitor.highlightAndDuplicate(WebTokensVisitor.java:67)
at org.sonar.plugins.web.core.WebTokensVisitor.startDocument(WebTokensVisitor.java:49)
at org.sonar.plugins.web.visitor.HtmlAstScanner.scan(HtmlAstScanner.java:75)
at org.sonar.plugins.web.visitor.HtmlAstScanner.scan(HtmlAstScanner.java:59)
at org.sonar.plugins.web.core.WebSensor.execute(WebSensor.java:98)
at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:87)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:81)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:67)
at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:75)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:178)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:259)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:254)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:243)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:118)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:117)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)
at org.sonarsource.scanner.cli.Main.execute(Main.java:77)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalArgumentException: 16 is not a valid line offset for pointer. File [moduleKey=Aurora_B.0_Main_UI:Aurora_B.0_Main_UI, relative=src/index.html, basedir=C:\jenkins\workspace\Aurora_B.0_Mainline_UI_Nightly_Sonar\UserInterface\Client] has 15 character(s) at line 1
at org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:292)
at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:226)
at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:242)
at org.sonar.api.batch.sensor.cpd.internal.DefaultCpdTokens.addToken(DefaultCpdTokens.java:75)
… 36 common frames omitted

INFO: Sensor Web [web] (done) | time=363ms
INFO: Sensor Analyzer for “php.ini” files [php]
INFO: Sensor Analyzer for “php.ini” files [php] (done) | time=2ms
INFO: Sensor Linting sensor for TypeScript files [typescript]
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/login.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/subscriptions.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/location.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/login-actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/data-grid/data-grid.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/column-filter.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/location-filter.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/investigation-detail.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/patient-mic-renderer/patient-mic-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/sequencing.actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/processing_results.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/patient-trace-accession-renderer/patient-trace-accession-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/infection-list/cell-renderers/note-icon-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/organism-detail-settings.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/investigation-data-request.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/organism-graph/organism-graph.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/infection-control.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/KeyedCollection.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/organism-detail/organism-detail.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/patient-trace-container/patient-trace-container.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducer-specs/antibiogram.reducer.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/dequeue-button-control/dequeue-button-control.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/investigation-detail.actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/showLoading.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/mark-as-no-results-button-control/mark-as-no-results-button-control.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducer-specs/investigation-notes.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/route-activate-check.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/export-qc-metrics-button-control/export-qc-metrics-button-control.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/caregiver/caregiver.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/investigation-list/investigation-list.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/radio-buttons/radio-buttons.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/antibiogram/antibiogram.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/infection-list.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/reject-request-button-control/reject-request-button-control.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/investigation-note-entry/investigation-note-entry.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/sequence-status-request.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/ColumnCheckAll.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/LocationCheckAll.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/geo-temporal-export.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/suggested-investigations/suggested-investigations.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/csv-upload-settings.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/geo-temporal-data.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/organism-label/organism-label.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/api-signing.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/heatmap-snp-renderer/heatmap-color-cretor.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/app-settings.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/investigation-list/cell-renderers/investigation-detail-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/sequence-request/sequence-request.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/note.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/batch-upload-sample.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/patient-trace-location-renderer/patient-trace-location-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducer-specs/login.reducer.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/infection-list/infection-list.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/patient-trace-renderer/patient-trace-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/csv-upload/csv-upload.component.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/investigation-notes.settings.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducer-specs/patient-trace.reducer.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/heatmap-snp-renderer/heatmap-snp-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/infection-list/cell-renderers/suggest-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/tree-data-grid-mic/tree-data-grid-mic.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/csv-upload/csv-upload.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/batch-upload-validation.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/logger.metaReducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/sequence-request.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/infection-list/cell-renderers/sequence-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/infection-list-settings.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/follow-up-flag-renderer/follow-up-flag-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/organism-detail.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/infection-list-basic.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/sequencing/sequencing.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/investigation-location.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/antibiogram-renderer/antibiogram-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducer-specs/organism-detail.reducer.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/column-filter.actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/route-deactivate-check.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/response.interceptor.module.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/invalidate-samples-popup/invalidate-samples-popup.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/organism-detail-infection-list/organism-detail-infection-list.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/mark-as-invalid-button-control/mark-as-invalid-button-control.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducer-specs/investigation-list.reducer.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/infection-list.actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/antibiogram.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/parent-grid/parent-grid.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/app.module.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/tree-data-grid/tree-data-grid.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/audit-log.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/investigation-list/cell-renderers/investigation-count-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/version.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/infection-list/cell-renderers/followup-icon-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/logout-actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/login/login.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/devices/devices.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/routing-state.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/patient-trace-settings.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/infection-list-button-control/infection-list-button-control.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/renew-token.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/correlates.actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/app.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/patient-mic/patient-mic.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/correlates-request.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/time-slider/time-slider.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/patient-name-renderer/patient-name-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducer-specs/correlates.reducer.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/dialog.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/genomics-heatmap-data.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/geo-temporal-view/geo-temporal-view.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/login-request.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/infection-list/cell-renderers/investigation-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/infection-control.actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/notes/notes.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/Organism-list-radio.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/output-csv-button-control/output-csv-button-control.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/notes/notes.component.spec.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/multiple-investigations/multiple-investigations.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/heatmap-view/heatmap-view.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/investigation-detail.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/sequencing-summary/sequencing-summary.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/sequencing-summary-settings.model.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/cell-renderers/note-icon-renderer/note-icon-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/column-filter/column-filter.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/models/infection-list-export.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/sequencing-summary.actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/investigation-details/investigation-details.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/infection-list/cell-renderers/organism-renderer.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/sequencing-summary.reducer.ts
INFO: Sensor Linting sensor for TypeScript files [typescript] (done) | time=41801ms
INFO: Sensor Combined LCOV and LOC sensor [typescript]
INFO: Analysing C:\jenkins\workspace\Aurora_B.0_Mainline_UI_Nightly_Sonar\UserInterface\Client\coverage\index.html
INFO: Sensor Combined LCOV and LOC sensor [typescript] (done) | time=383ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=60ms
INFO: Sensor CPD Block Indexer
INFO: Sensor CPD Block Indexer (done) | time=0ms
INFO: No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.
INFO: 43 files had no CPD blocks
INFO: Calculating CPD for 98 files
INFO: CPD calculation finished
INFO: Analysis report generated in 2218ms, dir size=1 MB
INFO: Analysis reports compressed in 30996ms, zip size=801 KB
INFO: Analysis report uploaded in 1917ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://ingbtcpic5dtn82:9000/dashboard/index/Aurora_B.0_Main_UI:Aurora_B.0_Main_UI
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://ingbtcpic5dtn82:9000/api/ce/task?id=AWZda39PGt8gbf5NXH-9
INFO: Executing post-job org.sonar.plugins.buildbreaker.QualityGateBreaker
INFO: Waiting for report processing to complete…
INFO: Waiting for report processing to complete…
INFO: Waiting for report processing to complete…
INFO: Waiting for report processing to complete…
INFO: Waiting for report processing to complete…
INFO: Waiting for report processing to complete…
INFO: Waiting for report processing to complete…
INFO: Waiting for report processing to complete…
INFO: Waiting for report processing to complete…

below is what i have in my sonar properties file.

**#Project identification **

sonar.projectKey=Aurora_B.0_Main_UI:Aurora_B.0_Main_UI
sonar.projectVersion=3.0
sonar.projectName=Aurora_B.0_Main_UI
sonar.host.url=http://ingbtcpic5dtn82:9000

sonar.scm.disabled=false

#Info required for Sonar

sonar.ts.excludeTypeDefinitionFiles=true
sonar.baseDir=.
sonar.ts.tslint.projectPath=.
sonar.ts.tslint.path=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/node_modules/tslint/bin/tslint
#sonar.ts.tslintpath=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/node_modules/tslint/bin/tslint
sonar.ts.tslint.projectpath=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/tsconfig.json
sonar.ts.tslint.configpath=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/tslint.json
sonar.ts.tslint.typecheck=false
#sonar.ts.tslintenabled=true

sonar.supportSourceFileDuplications=false
sonar.issuesReport.html.enable=true
sonar.issuesReport.console.enable=true

sonar.languages=ts,css,html,js
sonar.sourceEncoding=UTF-8

**sonar.login=admin **
sonar.password=admin

set SONAR_RUNNER_OPTS=-Xmx1536m -XX:MaxPermSize=5120m

sonar.sources=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/src

sonar.exclusions=src/assets/styles/jquery-ui.css,src/assets/scripts/jquery-ui.js,src/assets/styles/iThing.css

#sonar.test.inclusions=/.spec.ts**
sonar.test.inclusions=tests/ts//
.ts**
sonar.tests=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/src/app/reducer-specs
sonar.ts.lcov.reportpath=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/coverage/index.html

#sonar.typescript.lcov.reportPaths=C:/jenkins/workspace/Aurora_B.0_UI_Sonar/UserInterface/Client/coverage/lcov.info

# Exclusions Settings
#sonar.skippedModules=UnitTests


(Andrea Guarino) #2

Hi @Manish_Kumar
I do believe you’re not using SonarSource official TypeScript plugin, but a community one.
I suggest you to upgrade your SonarQube Server and using our official SonarTS plugin.

Thanks,
Andrea


(Manish Kumar) #3

SonarTS Plugin version used sonar-typescript-plugin-0.99-SNAPSHOT
Typescript version in the project ~2.4.2
sonarqube server version:6.4

Below is the content of sonar Properties file.

**#Project identification **

sonar.projectKey=Aurora_B.0_Main_UI:Aurora_B.0_Main_UI
sonar.projectVersion=3.0
sonar.projectName=Aurora_B.0_Main_UI
sonar.host.url=http://ingbtcpic5dtn82:9000

sonar.scm.disabled=false

#Info required for Sonar

sonar.ts.excludeTypeDefinitionFiles=true
sonar.baseDir=.
sonar.ts.tslint.projectPath=.
sonar.ts.tslint.path=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/node_modules/tslint/bin/tslint
#sonar.ts.tslintpath=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/node_modules/tslint/bin/tslint
sonar.ts.tslint.projectpath=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/tsconfig.json
sonar.ts.tslint.configpath=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/tslint.json
sonar.ts.tslint.typecheck=false
sonar.ts.tslint.enabled=true

sonar.supportSourceFileDuplications=false
sonar.issuesReport.html.enable=true
sonar.issuesReport.console.enable=true

sonar.languages=ts,css,html,js
sonar.sourceEncoding=UTF-8

**sonar.login=admin **
sonar.password=admin

set SONAR_RUNNER_OPTS=-Xmx1536m -XX:MaxPermSize=5120m

sonar.sources=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/src

sonar.exclusions=src/assets/styles/jquery-ui.css,src/assets/scripts/jquery-ui.js,src/assets/styles/iThing.css

#sonar.test.inclusions=/.spec.ts**
sonar.test.inclusions=tests/ts//
.ts**
sonar.tests=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/src/app/reducer-specs
sonar.ts.lcov.reportpath=C:/jenkins/workspace/Aurora_B.0_Mainline_UI_Nightly_Sonar/UserInterface/Client/coverage/index.html

#sonar.typescript.lcov.reportPaths=C:/jenkins/workspace/Aurora_B.0_UI_Sonar/UserInterface/Client/coverage/lcov.info

# Exclusions Settings
#sonar.skippedModules=UnitTests

it just ignores the analysis.

WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/login.reducer.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/subscriptions.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/services/location.service.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/actions/login-actions.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/components/data-grid/data-grid.component.ts
WARN: TsLint reported issues against a file that wasn’t sent to it - will be ignored: src/app/reducers/column-filter.reducer.ts