New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it always report zero bug but running tslint separately will show a lot of issues #172

Open
greenlaw110 opened this Issue Aug 21, 2017 · 12 comments

Comments

Projects
None yet
8 participants
@greenlaw110

greenlaw110 commented Aug 21, 2017

Here is my sonar-project.properties:

sonar.projectKey=myproj
sonar.projectName=My Project
sonar.projectVersion=1.0.0

sonar.sources=src
sonar.sourceEncoding=UTF-8
sonar.language=ts

sonar.host.url=http://localhost:9000
sonar.login=<my-token>

My sonar-scanner version

INFO: Scanner configuration file: /opt/sonar/scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/myproj/.jenkins/jobs/UI-SIT-NEW/workspace/sonar-project.properties
INFO: SonarQube Scanner 3.0.3.778
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Linux 4.4.0-89-generic amd64

My sonarqube version is 5.6.3

Running sonar-scanner -X generated the following outputs:

08:11:44.084 INFO: Scanner configuration file: /opt/sonar/scanner/conf/sonar-scanner.properties
08:11:44.089 INFO: Project root configuration file: /home/myproj/.jenkins/jobs/UI-SIT-NEW/workspace/sonar-project.properties
08:11:44.107 INFO: SonarQube Scanner 3.0.3.778
08:11:44.107 INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
08:11:44.108 INFO: Linux 4.4.0-89-generic amd64
08:11:44.273 DEBUG: keyStore is : 
08:11:44.273 DEBUG: keyStore type is : jks
08:11:44.273 DEBUG: keyStore provider is : 
08:11:44.273 DEBUG: init keystore
08:11:44.273 DEBUG: init keymanager of type SunX509
08:11:44.365 INFO: User cache: /home/myproj/.sonar/cache
08:11:44.365 DEBUG: Extract sonar-scanner-api-batch in temp...
08:11:44.370 DEBUG: Get bootstrap index...
08:11:44.370 DEBUG: Download: http://localhost:9000/batch/index
08:11:44.425 DEBUG: Get bootstrap completed
08:11:44.426 DEBUG: Create isolated classloader...
08:11:44.433 DEBUG: Start temp cleaning...
08:11:44.450 DEBUG: Temp cleaning done
08:11:44.450 DEBUG: Execution getVersion
08:11:44.453 DEBUG: Execution start
08:11:44.634 DEBUG: Publish global mode
08:11:44.713 INFO: Load global repositories
08:11:44.767 DEBUG: GET 200 http://localhost:9000/batch/global | time=54ms
08:11:44.819 INFO: Load global repositories (done) | time=107ms
08:11:44.836 INFO: User cache: /home/myproj/.sonar/cache
08:11:44.969 INFO: Load plugins index
08:11:44.972 DEBUG: GET 200 http://localhost:9000/deploy/plugins/index.txt | time=3ms
08:11:44.972 INFO: Load plugins index (done) | time=3ms
08:11:44.973 DEBUG: Load plugins
08:11:44.996 DEBUG: Load plugins (done) | time=24ms
08:11:45.005 DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
08:11:45.006 DEBUG: API compatibility mode is enabled on plugin C# [csharp] (built with API lower than 5.2)
08:11:45.007 DEBUG: API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
08:11:45.007 DEBUG: API compatibility mode is enabled on plugin Checkstyle [checkstyle] (built with API lower than 5.2)
08:11:45.110 DEBUG: Plugins:
08:11:45.110 DEBUG:   * CSS 2.3 (css)
08:11:45.110 DEBUG:   * Bitbucket Authentication for SonarQube 1.0 (authbitbucket)
08:11:45.110 DEBUG:   * Sonargraph 3.5 (Sonargraph)
08:11:45.110 DEBUG:   * JSON 2.1 (JSON)
08:11:45.110 DEBUG:   * SVN 1.3 (scmsvn)
08:11:45.110 DEBUG:   * JavaScript 2.18.0.3454 (javascript)
08:11:45.111 DEBUG:   * Java Properties 2.4 (javaProperties)
08:11:45.111 DEBUG:   * C# 5.0 (csharp)
08:11:45.111 DEBUG:   * Java 4.2.1.6971 (java)
08:11:45.111 DEBUG:   * Git 1.2 (scmgit)
08:11:45.111 DEBUG:   * TypeScript 1.1.0 (typescript)
08:11:45.111 DEBUG:   * Checkstyle 2.4 (checkstyle)
08:11:45.139 DEBUG: Execution getVersion
08:11:45.139 INFO: SonarQube server 5.6.3
08:11:45.141 INFO: Default locale: "en_US", source code encoding: "UTF-8"
08:11:45.142 DEBUG: Work directory: /home/myproj/.jenkins/jobs/UI-SIT-NEW/workspace/.scannerwork
08:11:45.142 DEBUG: Execution getVersion
08:11:45.142 DEBUG: Execution execute
08:11:45.542 INFO: Process project properties
08:11:45.544 DEBUG: Process project properties (done) | time=4ms
08:11:45.797 INFO: Load project repositories
08:11:45.822 DEBUG: GET 200 http://localhost:9000/batch/project.protobuf?key=myproj-ui | time=24ms
08:11:45.958 INFO: Load project repositories (done) | time=161ms
08:11:46.044 DEBUG: Available languages:
08:11:46.044 DEBUG:   * CSS => "css"
08:11:46.044 DEBUG:   * Less => "less"
08:11:46.044 DEBUG:   * JSON => "json"
08:11:46.044 DEBUG:   * JavaScript => "js"
08:11:46.044 DEBUG:   * Java Properties => "jproperties"
08:11:46.045 DEBUG:   * C# => "cs"
08:11:46.046 DEBUG:   * Java => "java"
08:11:46.046 DEBUG:   * TypeScript => "ts"
08:11:46.048 INFO: Load quality profiles
08:11:46.085 DEBUG: GET 200 http://localhost:9000/api/qualityprofiles/search.protobuf?projectKey=myproj-ui | time=37ms
08:11:46.088 INFO: Load quality profiles (done) | time=40ms
08:11:46.097 INFO: Load active rules
08:11:46.145 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cs-sonar-way-64488&p=1&ps=500 | time=36ms
08:11:46.225 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=css-sonarqube-way-51237&p=1&ps=500 | time=44ms
08:11:46.407 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=java-mycomp-60010&p=1&ps=500 | time=175ms
08:11:46.445 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=jproperties-sonarqube-way-31711&p=1&ps=500 | time=28ms
08:11:46.529 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=js-sonar-way-47521&p=1&ps=500 | time=77ms
08:11:46.576 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=json-sonarqube-way-01717&p=1&ps=500 | time=38ms
08:11:46.640 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=less-sonarqube-way-72795&p=1&ps=500 | time=63ms
08:11:46.707 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=ts-mycomp-07377&p=1&ps=500 | time=58ms
08:11:46.732 INFO: Load active rules (done) | time=634ms
08:11:46.764 DEBUG: SCM Step is disabled by configuration
08:11:46.764 INFO: Publish mode
08:11:46.764 DEBUG: Start recursive analysis of project modules
08:11:46.772 INFO: -------------  Scan myproj UI
08:11:46.970 INFO: Language is forced to ts
08:11:46.971 INFO: Load server rules
08:11:47.094 DEBUG: GET 200 http://localhost:9000/api/rules/list.protobuf | time=123ms
08:11:47.126 INFO: Load server rules (done) | time=155ms
08:11:47.289 DEBUG: Initializers : 
08:11:47.289 INFO: Base dir: /home/myproj/.jenkins/jobs/UI-SIT-NEW/workspace
08:11:47.289 INFO: Working dir: /home/myproj/.jenkins/jobs/UI-SIT-NEW/workspace/.scannerwork
08:11:47.291 INFO: Source paths: src
08:11:47.291 INFO: Source encoding: UTF-8, default locale: en_US
08:11:47.291 INFO: Index files
08:11:47.300 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/*.css
08:11:47.300 DEBUG: Declared extensions of language Less were converted to sonar.lang.patterns.less : **/*.less
08:11:47.301 DEBUG: Declared extensions of language JSON were converted to sonar.lang.patterns.json : **/*.json
08:11:47.301 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js
08:11:47.301 DEBUG: Declared extensions of language Java Properties were converted to sonar.lang.patterns.jproperties : **/*.properties
08:11:47.301 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
08:11:47.301 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
08:11:47.301 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx
08:11:47.317 DEBUG: Language of file 'src/classes/property/property.ts' is detected to be 'ts'
08:11:47.352 DEBUG: Language of file 'src/classes/unit/unit.ts' is detected to be 'ts'
08:11:47.353 DEBUG: Language of file 'src/classes/enums/enums.ts' is detected to be 'ts'
08:11:47.354 DEBUG: Language of file 'src/classes/unit-enums/unit-enums.ts' is detected to be 'ts'
08:11:47.356 DEBUG: Language of file 'src/classes/company/company.ts' is detected to be 'ts'
08:11:47.356 DEBUG: Language of file 'src/classes/joint-owner/joint-owner.ts' is detected to be 'ts'
08:11:47.357 DEBUG: Language of file 'src/classes/tenant/tenant.ts' is detected to be 'ts'
08:11:47.369 DEBUG: Language of file 'src/classes/director/director.ts' is detected to be 'ts'
08:11:47.369 DEBUG: Language of file 'src/classes/user/user.ts' is detected to be 'ts'
08:11:47.370 DEBUG: Language of file 'src/classes/uploaded-docs/uploaded-docs.ts' is detected to be 'ts'
08:11:47.374 DEBUG: Language of file 'src/services/property/property-service.ts' is detected to be 'ts'
08:11:47.385 DEBUG: Language of file 'src/services/dashboard/dashboard-service.ts' is detected to be 'ts'
08:11:47.407 DEBUG: Language of file 'src/services/unit/unit-service.ts' is detected to be 'ts'
08:11:47.413 DEBUG: Language of file 'src/services/enums/enums-service.ts' is detected to be 'ts'
08:11:47.415 DEBUG: Language of file 'src/services/myproj-http-service.ts' is detected to be 'ts'
08:11:47.420 DEBUG: Language of file 'src/services/message/websocket-service.ts' is detected to be 'ts'
08:11:47.421 DEBUG: Language of file 'src/services/message/message-service.ts' is detected to be 'ts'
08:11:47.429 DEBUG: Language of file 'src/services/unit-enums/unit-enums-service.ts' is detected to be 'ts'
08:11:47.430 DEBUG: Language of file 'src/services/tenant/tenant-service.ts' is detected to be 'ts'
08:11:47.430 DEBUG: Language of file 'src/services/onboard/onboard-service.ts' is detected to be 'ts'
08:11:47.432 DEBUG: Language of file 'src/services/addressify/addressify-service.ts' is detected to be 'ts'
08:11:47.433 DEBUG: Language of file 'src/services/notification/notification-service.ts' is detected to be 'ts'
08:11:47.434 DEBUG: Language of file 'src/services/registration/registration.service.ts' is detected to be 'ts'
08:11:47.435 DEBUG: Language of file 'src/services/owner/owner-service.ts' is detected to be 'ts'
08:11:47.436 DEBUG: Language of file 'src/services/file/file.service.ts' is detected to be 'ts'
08:11:47.439 DEBUG: Language of file 'src/services/director/director-service.ts' is detected to be 'ts'
08:11:47.440 DEBUG: Language of file 'src/services/authentication/authentication.service.ts' is detected to be 'ts'
08:11:47.442 DEBUG: Language of file 'src/services/user/user.service.ts' is detected to be 'ts'
08:11:47.443 DEBUG: Language of file 'src/services/uploaded-docs/uploaded-docs-service.ts' is detected to be 'ts'
08:11:47.444 DEBUG: Language of file 'src/providers/config/config.ts' is detected to be 'ts'
08:11:47.444 DEBUG: Language of file 'src/providers/google-drive.ts' is detected to be 'ts'
08:11:47.445 DEBUG: Language of file 'src/providers/auth.ts' is detected to be 'ts'
08:11:47.447 DEBUG: Language of file 'src/providers/dropbox.ts' is detected to be 'ts'
08:11:47.461 DEBUG: Language of file 'src/components/accounts-scroller/accounts-scroller.ts' is detected to be 'ts'
08:11:47.461 DEBUG: Language of file 'src/components/ordinal-pipe.ts' is detected to be 'ts'
08:11:47.461 DEBUG: Language of file 'src/components/property-edit/property-edit.ts' is detected to be 'ts'
08:11:47.463 DEBUG: Language of file 'src/components/accounts-all/accounts-all.ts' is detected to be 'ts'
08:11:47.463 DEBUG: Language of file 'src/components/property-tab/property-tab.ts' is detected to be 'ts'
08:11:47.464 DEBUG: Language of file 'src/components/account-view/account-view.ts' is detected to be 'ts'
08:11:47.465 DEBUG: Language of file 'src/components/property-summary/property-summary.ts' is detected to be 'ts'
08:11:47.466 DEBUG: Language of file 'src/components/property-details/property-details.ts' is detected to be 'ts'
08:11:47.467 DEBUG: Language of file 'src/components/file-types/file-types.ts' is detected to be 'ts'
08:11:47.468 DEBUG: Language of file 'src/components/dynamic-form/question.service.ts' is detected to be 'ts'
08:11:47.471 DEBUG: Language of file 'src/components/dynamic-form/question-base.ts' is detected to be 'ts'
08:11:47.471 DEBUG: Language of file 'src/components/dynamic-form/question-textbox.ts' is detected to be 'ts'
08:11:47.473 DEBUG: Language of file 'src/components/dynamic-form/question-dropdown.ts' is detected to be 'ts'
08:11:47.474 DEBUG: Language of file 'src/components/dynamic-form/question-control.service.ts' is detected to be 'ts'
08:11:47.475 DEBUG: Language of file 'src/components/dynamic-form/dynamic-form-question.component.ts' is detected to be 'ts'
08:11:47.488 DEBUG: Language of file 'src/pages/lease-requirements-more/lease-requirements-more.ts' is detected to be 'ts'
08:11:47.489 DEBUG: Language of file 'src/pages/internal-features/internal-features.ts' is detected to be 'ts'
08:11:47.490 DEBUG: Language of file 'src/pages/floorplans/floorplans.ts' is detected to be 'ts'
08:11:47.493 DEBUG: Language of file 'src/pages/hmo-property-details/hmo-property-details.ts' is detected to be 'ts'
08:11:47.494 DEBUG: Language of file 'src/pages/link-bank-account/link-bank-account.ts' is detected to be 'ts'
08:11:47.495 DEBUG: Language of file 'src/pages/company-authority-warning/company-authority-warning.ts' is detected to be 'ts'
08:11:47.496 DEBUG: Language of file 'src/pages/nextsteps-professional-floorplan/nextsteps-professional-floorplan.ts' is detected to be 'ts'
08:11:47.498 DEBUG: Language of file 'src/pages/nextsteps-tenants/nextsteps-tenants.ts' is detected to be 'ts'
08:11:47.498 DEBUG: Language of file 'src/pages/location-specifics/location-specifics.ts' is detected to be 'ts'
08:11:47.500 DEBUG: Language of file 'src/pages/account-transfer/account-transfer.ts' is detected to be 'ts'
08:11:47.505 DEBUG: Language of file 'src/pages/jointtenant-email/jointtenant-email.ts' is detected to be 'ts'
08:11:47.508 DEBUG: Language of file 'src/pages/jointtenant-registered/jointtenant-registered.ts' is detected to be 'ts'
08:11:47.509 DEBUG: Language of file 'src/pages/account-withdraw/account-withdraw.ts' is detected to be 'ts'
08:11:47.511 DEBUG: Language of file 'src/pages/agency/agency.ts' is detected to be 'ts'
08:11:47.515 DEBUG: Language of file 'src/pages/documents/documents.ts' is detected to be 'ts'
08:11:47.516 DEBUG: Language of file 'src/pages/extra-service-summary/extra-service-summary.ts' is detected to be 'ts'
08:11:47.520 DEBUG: Language of file 'src/pages/dashboard/dashboard.ts' is detected to be 'ts'
08:11:47.527 DEBUG: Language of file 'src/pages/lease-details/lease-details.ts' is detected to be 'ts'
08:11:47.532 DEBUG: Language of file 'src/pages/hmo-details2/hmo-details2.ts' is detected to be 'ts'
08:11:47.533 DEBUG: Language of file 'src/pages/tabs/tabs.ts' is detected to be 'ts'
08:11:47.534 DEBUG: Language of file 'src/pages/property-type/property-type.ts' is detected to be 'ts'
08:11:47.540 DEBUG: Language of file 'src/pages/jointtenant-unregistered/jointtenant-unregistered.ts' is detected to be 'ts'
08:11:47.542 DEBUG: Language of file 'src/pages/leasehold-agreement/leasehold-agreement.ts' is detected to be 'ts'
08:11:47.556 DEBUG: Language of file 'src/pages/tenant-registered/tenant-registered.ts' is detected to be 'ts'
08:11:47.557 DEBUG: Language of file 'src/pages/check-address/check-address.ts' is detected to be 'ts'
08:11:47.562 DEBUG: Language of file 'src/pages/extra-service-concierge/extra-service-concierge.ts' is detected to be 'ts'
08:11:47.563 DEBUG: Language of file 'src/pages/account-cancel-payment/account-cancel-payment.ts' is detected to be 'ts'
08:11:47.564 DEBUG: Language of file 'src/pages/identity-verification-age/identity-verification-age.ts' is detected to be 'ts'
08:11:47.568 DEBUG: Language of file 'src/pages/reset/reset.ts' is detected to be 'ts'
08:11:47.568 DEBUG: Language of file 'src/pages/nextsteps-hmo/nextsteps-hmo.ts' is detected to be 'ts'
08:11:47.573 DEBUG: Language of file 'src/pages/let-type/let-type.ts' is detected to be 'ts'
08:11:47.577 DEBUG: Language of file 'src/pages/marketplace/marketplace.ts' is detected to be 'ts'
08:11:47.577 DEBUG: Language of file 'src/pages/external-features/external-features.ts' is detected to be 'ts'
08:11:47.578 DEBUG: Language of file 'src/pages/utilities-included/utilities-included.ts' is detected to be 'ts'
08:11:47.581 DEBUG: Language of file 'src/pages/maintenance-limit-input/maintenance-limit-input.ts' is detected to be 'ts'
08:11:47.587 DEBUG: Language of file 'src/pages/identity-verification-medicare/identity-verification-medicare.ts' is detected to be 'ts'
08:11:47.590 DEBUG: Language of file 'src/pages/leasehold/leasehold.ts' is detected to be 'ts'
08:11:47.592 DEBUG: Language of file 'src/pages/inspection-select-dates/inspection-select-dates.ts' is detected to be 'ts'
08:11:47.596 DEBUG: Language of file 'src/pages/locale/locale.ts' is detected to be 'ts'
08:11:47.597 DEBUG: Language of file 'src/pages/dropbox-view/dropbox-view.ts' is detected to be 'ts'
08:11:47.599 DEBUG: Language of file 'src/pages/let-need/let-need.ts' is detected to be 'ts'
08:11:47.602 DEBUG: Language of file 'src/pages/nextsteps-photos-needed/nextsteps-photos-needed.ts' is detected to be 'ts'
08:11:47.608 DEBUG: Language of file 'src/pages/inspection-summary/inspection-summary.ts' is detected to be 'ts'
08:11:47.611 DEBUG: Language of file 'src/pages/authorise-property/authorise-property.ts' is detected to be 'ts'
08:11:47.612 DEBUG: Language of file 'src/pages/professional-photography/professional-photography.ts' is detected to be 'ts'
08:11:47.613 DEBUG: Language of file 'src/pages/account-edit-payment/account-edit-payment.ts' is detected to be 'ts'
08:11:47.620 DEBUG: Language of file 'src/pages/let-details-hmo/let-details-hmo.ts' is detected to be 'ts'
08:11:47.622 DEBUG: Language of file 'src/pages/company/company.ts' is detected to be 'ts'
08:11:47.625 DEBUG: Language of file 'src/pages/property-management/property-management.ts' is detected to be 'ts'
08:11:47.626 DEBUG: Language of file 'src/pages/hmo-unit/hmo-unit.ts' is detected to be 'ts'
08:11:47.628 DEBUG: Language of file 'src/pages/listing-preview/listing-preview.ts' is detected to be 'ts'
08:11:47.638 DEBUG: Language of file 'src/pages/identity-verification-identification/identity-verification-identification.ts' is detected to be 'ts'
08:11:47.638 DEBUG: Language of file 'src/pages/extra-service-payment-options/extra-service-payment-options.ts' is detected to be 'ts'
08:11:47.639 DEBUG: Language of file 'src/pages/suburb-selection/suburb-selection.ts' is detected to be 'ts'
08:11:47.640 DEBUG: Language of file 'src/pages/verify-ownership/verify-ownership.ts' is detected to be 'ts'
08:11:47.642 DEBUG: Language of file 'src/pages/concierge-service/concierge-service.ts' is detected to be 'ts'
08:11:47.643 DEBUG: Language of file 'src/pages/activate/activate.ts' is detected to be 'ts'
08:11:47.643 DEBUG: Language of file 'src/pages/more/more.ts' is detected to be 'ts'
08:11:47.646 DEBUG: Language of file 'src/pages/notifications/notifications.ts' is detected to be 'ts'
08:11:47.647 DEBUG: Language of file 'src/pages/extra-service-payment-success/extra-service-payment-success.ts' is detected to be 'ts'
08:11:47.647 DEBUG: Language of file 'src/pages/extra-service-premium-listings/extra-service-premium-listings.ts' is detected to be 'ts'
08:11:47.648 DEBUG: Language of file 'src/pages/next-steps-no-tenants/next-steps-no-tenants.ts' is detected to be 'ts'
08:11:47.653 DEBUG: Language of file 'src/pages/account-topup/account-topup.ts' is detected to be 'ts'
08:11:47.655 DEBUG: Language of file 'src/pages/postcode/postcode.ts' is detected to be 'ts'
08:11:47.661 DEBUG: Language of file 'src/pages/nextsteps-professional-photographer/nextsteps-professional-photographer.ts' is detected to be 'ts'
08:11:47.662 DEBUG: Language of file 'src/pages/listing-demo/listing-demo.ts' is detected to be 'ts'
08:11:47.662 DEBUG: Language of file 'src/pages/address/address.ts' is detected to be 'ts'
08:11:47.665 DEBUG: Language of file 'src/pages/tenant-email/tenant-email.ts' is detected to be 'ts'
08:11:47.668 DEBUG: Language of file 'src/pages/lease-requirements/lease-requirements.ts' is detected to be 'ts'
08:11:47.669 DEBUG: Language of file 'src/pages/strata-details/strata-details.ts' is detected to be 'ts'
08:11:47.670 DEBUG: Language of file 'src/pages/nextsteps-directors/nextsteps-directors.ts' is detected to be 'ts'
08:11:47.673 DEBUG: Language of file 'src/pages/nextsteps-professional-upload/nextsteps-professional-upload.ts' is detected to be 'ts'
08:11:47.674 DEBUG: Language of file 'src/pages/nextsteps-get-listed/nextsteps-get-listed.ts' is detected to be 'ts'
08:11:47.675 DEBUG: Language of file 'src/pages/register/register.ts' is detected to be 'ts'
08:11:47.679 DEBUG: Language of file 'src/pages/company-unregistered/company-unregistered.ts' is detected to be 'ts'
08:11:47.680 DEBUG: Language of file 'src/pages/property-exists/property-exists.ts' is detected to be 'ts'
08:11:47.680 DEBUG: Language of file 'src/pages/professional-floorplans/professional-floorplans.ts' is detected to be 'ts'
08:11:47.683 DEBUG: Language of file 'src/pages/property-heating/property-heating.ts' is detected to be 'ts'
08:11:47.684 DEBUG: Language of file 'src/pages/edit-property/editpropertydetails.ts' is detected to be 'ts'
08:11:47.689 DEBUG: Language of file 'src/pages/edit-property/propertydetails.ts' is detected to be 'ts'
08:11:47.692 DEBUG: Language of file 'src/pages/sole-ownership/sole-ownership.ts' is detected to be 'ts'
08:11:47.694 DEBUG: Language of file 'src/pages/ownership/ownership.ts' is detected to be 'ts'
08:11:47.694 DEBUG: Language of file 'src/pages/identity-verification-postcode/identity-verification-postcode.ts' is detected to be 'ts'
08:11:47.706 DEBUG: Language of file 'src/pages/authority/authority.ts' is detected to be 'ts'
08:11:47.706 DEBUG: Language of file 'src/pages/login/login.ts' is detected to be 'ts'
08:11:47.708 DEBUG: Language of file 'src/pages/company-authority/company-authority.ts' is detected to be 'ts'
08:11:47.708 DEBUG: Language of file 'src/pages/next-steps/next-steps.ts' is detected to be 'ts'
08:11:47.709 DEBUG: Language of file 'src/pages/director-unregistered/director-unregistered.ts' is detected to be 'ts'
08:11:47.717 DEBUG: Language of file 'src/pages/tenant-add-confirmation/tenant-add-confirmation.ts' is detected to be 'ts'
08:11:47.722 DEBUG: Language of file 'src/pages/forgot-password/forgot-password.ts' is detected to be 'ts'
08:11:47.722 DEBUG: Language of file 'src/pages/tenant-unregistered/tenant-unregistered.ts' is detected to be 'ts'
08:11:47.723 DEBUG: Language of file 'src/pages/company-owned/company-owned.ts' is detected to be 'ts'
08:11:47.724 DEBUG: Language of file 'src/pages/extra-service-bank-account/extra-service-bank-account.ts' is detected to be 'ts'
08:11:47.724 DEBUG: Language of file 'src/pages/inspection-introduction/inspection-introduction.ts' is detected to be 'ts'
08:11:47.725 DEBUG: Language of file 'src/pages/identity-verification-passport/identity-verification-passport.ts' is detected to be 'ts'
08:11:47.734 DEBUG: Language of file 'src/pages/identity-verification-drivers-licence/identity-verification-drivers-licence.ts' is detected to be 'ts'
08:11:47.735 DEBUG: Language of file 'src/pages/hmo-unit-another/hmo-unit-another.ts' is detected to be 'ts'
08:11:47.735 DEBUG: Language of file 'src/pages/issues/issues.ts' is detected to be 'ts'
08:11:47.736 DEBUG: Language of file 'src/pages/extra-service-large-signs/extra-service-large-signs.ts' is detected to be 'ts'
08:11:47.736 DEBUG: Language of file 'src/pages/identity-verification-suburb/identity-verification-suburb.ts' is detected to be 'ts'
08:11:47.737 DEBUG: Language of file 'src/pages/company-registered/company-registered.ts' is detected to be 'ts'
08:11:47.742 DEBUG: Language of file 'src/pages/unlink-bank-account/unlink-bank-account.ts' is detected to be 'ts'
08:11:47.747 DEBUG: Language of file 'src/pages/identity-verification-address/identity-verification-address.ts' is detected to be 'ts'
08:11:47.748 DEBUG: Language of file 'src/pages/google-drive-view/google-drive-view.ts' is detected to be 'ts'
08:11:47.749 DEBUG: Language of file 'src/pages/let-details/let-details.ts' is detected to be 'ts'
08:11:47.749 DEBUG: Language of file 'src/pages/maintenance-limit/maintenance-limit.ts' is detected to be 'ts'
08:11:47.750 DEBUG: Language of file 'src/pages/identity-verification-done/identity-verification-done.ts' is detected to be 'ts'
08:11:47.751 DEBUG: Language of file 'src/pages/register-success/register-success.ts' is detected to be 'ts'
08:11:47.751 DEBUG: Language of file 'src/pages/hmo-details1/hmo-details1.ts' is detected to be 'ts'
08:11:47.751 DEBUG: Language of file 'src/pages/nextsteps-professional-both/nextsteps-professional-both.ts' is detected to be 'ts'
08:11:47.752 DEBUG: Language of file 'src/pages/confirm-address/confirm-address.ts' is detected to be 'ts'
08:11:47.753 DEBUG: Language of file 'src/pages/base-page.ts' is detected to be 'ts'
08:11:47.754 DEBUG: Language of file 'src/pages/photographs/photographs.ts' is detected to be 'ts'
08:11:47.767 DEBUG: Language of file 'src/pages/inspection-select-days/inspection-select-days.ts' is detected to be 'ts'
08:11:47.768 DEBUG: Language of file 'src/pages/extra-service-credit-card/extra-service-credit-card.ts' is detected to be 'ts'
08:11:47.768 DEBUG: Language of file 'src/pages/director-email/director-email.ts' is detected to be 'ts'
08:11:47.769 DEBUG: Language of file 'src/pages/property-description/property-description.ts' is detected to be 'ts'
08:11:47.770 DEBUG: Language of file 'src/pages/strata-title/strata-title.ts' is detected to be 'ts'
08:11:47.776 DEBUG: Language of file 'src/pages/file-upload/file-upload.ts' is detected to be 'ts'
08:11:47.776 DEBUG: Language of file 'src/pages/outgoing-services/outgoing-services.ts' is detected to be 'ts'
08:11:47.777 DEBUG: Language of file 'src/pages/lease-details-hmo/lease-details-hmo.ts' is detected to be 'ts'
08:11:47.778 DEBUG: Language of file 'src/pages/nextsteps-owners/nextsteps-owners.ts' is detected to be 'ts'
08:11:47.778 DEBUG: Language of file 'src/pages/director-registered/director-registered.ts' is detected to be 'ts'
08:11:47.779 DEBUG: Language of file 'src/declarations.d.ts' is detected to be 'ts'
08:11:47.779 DEBUG: Language of file 'src/app/app.component.ts' is detected to be 'ts'
08:11:47.780 DEBUG: Language of file 'src/app/app.module.ts' is detected to be 'ts'
08:11:47.783 DEBUG: Language of file 'src/app/main.ts' is detected to be 'ts'
08:11:47.783 INFO: 175 files indexed
08:11:47.801 INFO: Quality profile for ts: mycomp
08:11:47.867 DEBUG: Code colorizer, supported languages: cs
08:11:49.678 DEBUG: 'CSS Analyzer Sensor' skipped because there is no related file in current project
08:11:49.678 DEBUG: 'Less Analyzer Sensor' skipped because there is no related file in current project
08:11:49.678 DEBUG: 'JSON Squid Sensor' skipped because there is no related file in current project
08:11:49.678 DEBUG: 'JavaScript Squid Sensor' skipped because there is no related file in current project
08:11:49.679 DEBUG: 'Java Properties Squid Sensor' skipped because there is no related file in current project
08:11:49.679 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
08:11:49.679 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project
08:11:49.679 DEBUG: 'JaCoCoItSensor' skipped because there is no related file in current project
08:11:49.679 DEBUG: 'JaCoCoOverallSensor' skipped because there is no related file in current project
08:11:49.679 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
08:11:49.684 DEBUG: Sensors : Lines Sensor (wrapped) -> Sonar-Sonargraph-Plugin [3.5] -> SCM Sensor (wrapped) -> Embedded CSS Analyzer Sensor (wrapped) -> XmlFileSensor (wrapped) -> Linting sensor for TypeScript files (wrapped) -> Combined LCOV and LOC sensor (wrapped) -> Zero Coverage Sensor (wrapped) -> Code Colorizer Sensor (wrapped) -> CPD Block Indexer (wrapped)
08:11:49.684 INFO: Sensor Lines Sensor (wrapped)
08:11:49.733 INFO: Sensor Lines Sensor (wrapped) (done) | time=49ms
08:11:49.733 INFO: Sensor Sonar-Sonargraph-Plugin [3.5]
08:11:49.734 INFO: ----------------------------------------------------------------
08:11:49.735 INFO: Sonargraph: Skipping project myproj UI [myproj-ui], since no Sonargraph rules are activated in current SonarQube quality profile.
08:11:49.735 INFO: ----------------------------------------------------------------
08:11:49.735 INFO: Sensor Sonar-Sonargraph-Plugin [3.5] (done) | time=2ms
08:11:49.735 INFO: Sensor SCM Sensor (wrapped)
08:11:49.735 INFO: SCM Publisher is disabled
08:11:49.735 INFO: Sensor SCM Sensor (wrapped) (done) | time=0ms
08:11:49.735 INFO: Sensor Embedded CSS Analyzer Sensor (wrapped)
08:11:49.785 INFO: 0 source files to be analyzed
08:11:49.788 INFO: Sensor Embedded CSS Analyzer Sensor (wrapped) (done) | time=53ms
08:11:49.788 INFO: Sensor XmlFileSensor (wrapped)
08:11:49.789 INFO: Sensor XmlFileSensor (wrapped) (done) | time=1ms
08:11:49.789 INFO: Sensor Linting sensor for TypeScript files (wrapped)
08:11:49.789 DEBUG: Found sonar.ts.tslint.path path to be 'node_modules/tslint/bin'
08:11:49.789 DEBUG: Found sonar.ts.tslint.configPath path to be 'tslint.json'
08:11:49.789 DEBUG: Path sonar.ts.tslint.rulesDir not specified, falling back to null
08:11:49.790 DEBUG: Found sonar.ts.tslint.projectPath path to be 'src'
08:11:49.790 DEBUG: Path sonar.ts.tslint.outputPath not specified, falling back to null
08:11:49.793 INFO: 0/0 source files have been analyzed
08:11:49.793 DEBUG: Using a temporary path for TsLint output: /home/myproj/.jenkins/jobs/UI-SIT-NEW/workspace/.scannerwork/.sonartmp/233830398609777846.tmp
08:11:49.794 DEBUG: Running against a single project JSON file
08:11:50.125 INFO: Sensor Linting sensor for TypeScript files (wrapped) (done) | time=336ms
08:11:50.125 INFO: Sensor Combined LCOV and LOC sensor (wrapped)
08:11:50.297 INFO: Sensor Combined LCOV and LOC sensor (wrapped) (done) | time=172ms
08:11:50.297 INFO: Sensor Zero Coverage Sensor (wrapped)
08:11:50.363 INFO: Sensor Zero Coverage Sensor (wrapped) (done) | time=66ms
08:11:50.368 INFO: Sensor Code Colorizer Sensor (wrapped)
08:11:50.374 INFO: Sensor Code Colorizer Sensor (wrapped) (done) | time=7ms
08:11:50.374 INFO: Sensor CPD Block Indexer (wrapped)
08:11:50.374 INFO: DefaultCpdBlockIndexer is used for ts
08:11:50.375 DEBUG: No CpdMapping for language ts
08:11:50.375 INFO: Sensor CPD Block Indexer (wrapped) (done) | time=1ms
08:11:50.375 INFO: Calculating CPD for 0 files
08:11:50.378 INFO: CPD calculation finished
08:11:50.635 INFO: Analysis report generated in 238ms, dir size=543 KB
08:11:50.800 INFO: Analysis reports compressed in 165ms, zip size=299 KB
08:11:50.801 INFO: Analysis report generated in /home/myproj/.jenkins/jobs/UI-SIT-NEW/workspace/.scannerwork/batch-report
08:11:50.801 DEBUG: Upload report
08:11:50.834 DEBUG: POST 200 http://localhost:9000/api/ce/submit?projectKey=myproj-ui&projectName=myproj%20UI | time=33ms
08:11:50.836 INFO: Analysis report uploaded in 35ms
08:11:50.836 INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/myproj-ui
08:11:50.836 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
08:11:50.836 INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AV4G2huo0tAasvTDfZQY
08:11:50.840 DEBUG: Report metadata written to /home/myproj/.jenkins/jobs/UI-SIT-NEW/workspace/.scannerwork/report-task.txt
08:11:50.841 DEBUG: Post-jobs : 
08:11:50.843 INFO: ------------------------------------------------------------------------
08:11:50.843 INFO: EXECUTION SUCCESS
08:11:50.843 INFO: ------------------------------------------------------------------------
08:11:50.843 INFO: Total time: 6.779s
08:11:50.937 INFO: Final Memory: 45M/249M
08:11:50.937 INFO: ------------------------------------------------------------------------
08:11:50.937 DEBUG: Execution getVersion
08:11:50.938 DEBUG: Execution stop
@greenlaw110

This comment has been minimized.

Show comment
Hide comment
@greenlaw110

greenlaw110 Aug 23, 2017

Further finding, I have replaced the shell based sonar-scanner with Jenkins' integrated SonarQuebe scanner:

image

And I can see a huge amount of tslint warnings in the jenkins job log:
image

However in the Sonar server there is still no bugs, no vulnerabilities and no smells:
image

greenlaw110 commented Aug 23, 2017

Further finding, I have replaced the shell based sonar-scanner with Jenkins' integrated SonarQuebe scanner:

image

And I can see a huge amount of tslint warnings in the jenkins job log:
image

However in the Sonar server there is still no bugs, no vulnerabilities and no smells:
image

@Pablissimo

This comment has been minimized.

Show comment
Hide comment
@Pablissimo

Pablissimo Aug 23, 2017

Owner

You've set a project path in your sonar-project.properties, it seems from the log? i.e. you'll have a key somewhere

sonar.ts.tslint.projectPath=src

If you're specifying projectPath, you need to specify the full path to the project's tsconfig.json file rather than just the path to the containing folder - you may find that sorts things. Seems there's a bug when using a project file that it doesn't log the command line being sent to tslint which is making diagnosis a bit trickier but my guess is the above.

Owner

Pablissimo commented Aug 23, 2017

You've set a project path in your sonar-project.properties, it seems from the log? i.e. you'll have a key somewhere

sonar.ts.tslint.projectPath=src

If you're specifying projectPath, you need to specify the full path to the project's tsconfig.json file rather than just the path to the containing folder - you may find that sorts things. Seems there's a bug when using a project file that it doesn't log the command line being sent to tslint which is making diagnosis a bit trickier but my guess is the above.

@greenlaw110

This comment has been minimized.

Show comment
Hide comment
@greenlaw110

greenlaw110 Aug 23, 2017

Here is my sonar-project.properties file content:

  1 sonar.projectKey=myproj
  2 sonar.projectName=My Project
  3 sonar.projectVersion=2.0.0
  4 
  5 sonar.sources=src
  6 sonar.sourceEncoding=UTF-8
  7 sonar.language=ts
  8 
  9 sonar.host.url=http://localhost:9000
 10 sonar.login=<the-sonar-token>
 11 
 12 sonar.scm.disabled=true
 13 sonar.ts.tslint.path=node_modules/tslint/bin
 14 sonar.ts.tslint.projectPath=src

Now I have commented out the sonar.ts.tslint.projectPath=src line:

image

The result is still the same:

image

greenlaw110 commented Aug 23, 2017

Here is my sonar-project.properties file content:

  1 sonar.projectKey=myproj
  2 sonar.projectName=My Project
  3 sonar.projectVersion=2.0.0
  4 
  5 sonar.sources=src
  6 sonar.sourceEncoding=UTF-8
  7 sonar.language=ts
  8 
  9 sonar.host.url=http://localhost:9000
 10 sonar.login=<the-sonar-token>
 11 
 12 sonar.scm.disabled=true
 13 sonar.ts.tslint.path=node_modules/tslint/bin
 14 sonar.ts.tslint.projectPath=src

Now I have commented out the sonar.ts.tslint.projectPath=src line:

image

The result is still the same:

image

@greenlaw110

This comment has been minimized.

Show comment
Hide comment

greenlaw110 commented Aug 23, 2017

@Jeferex

This comment has been minimized.

Show comment
Hide comment
@Jeferex

Jeferex Aug 28, 2017

I am experiencing the same result. My sonarqube version is 5.6.6 and sonar scanner version is 3.0.3.778.

Any help would be appreciated.

Jeferex commented Aug 28, 2017

I am experiencing the same result. My sonarqube version is 5.6.6 and sonar scanner version is 3.0.3.778.

Any help would be appreciated.

@sebastienbonami

This comment has been minimized.

Show comment
Hide comment
@sebastienbonami

sebastienbonami Aug 31, 2017

Same problem here with same versions than @Jeferex.

sebastienbonami commented Aug 31, 2017

Same problem here with same versions than @Jeferex.

@tschmidt01

This comment has been minimized.

Show comment
Hide comment
@tschmidt01

tschmidt01 Sep 13, 2017

Any updates on this? Facing the same problem.

tschmidt01 commented Sep 13, 2017

Any updates on this? Facing the same problem.

@CINJ

This comment has been minimized.

Show comment
Hide comment
@CINJ

CINJ Sep 29, 2017

The solution I found to this was the following:

  1. use tslint directly from the command line in your project directory with the 'i' option (see tslint documentation https://palantir.github.io/tslint/usage/cli/) to create a new tslint.json file, it turned out that tslint silently fails when some legacy tslint.json files are used.
  2. make sure that in the sonar-project.properties you change the path to the binary itself for node and tslint, not just the directory contained by it. After spending some time investigating the behavior of the path resolver, I found this was the most reliable way to make the TsPlugin work 100% of the time.

Example snip of sonar-project.properties:

sonar.scm.disabled=true
sonar.ts.tslint.path=node_modules/tslint/bin/tslint
sonar.ts.tslint.projectPath=src
sonar.ts.tslint.nodePath=/usr/bin/nodejs
sonar.ts.tslint.enabled=true
sonar.ts.tslint.rulesDir=node_modules/tslint-eslint-rules/dist/rules
sonar.ts.tslint.outputPath=

In the above example, I am using a linux install and I am pointing to the actual binary for nodejs and tslint.

CINJ commented Sep 29, 2017

The solution I found to this was the following:

  1. use tslint directly from the command line in your project directory with the 'i' option (see tslint documentation https://palantir.github.io/tslint/usage/cli/) to create a new tslint.json file, it turned out that tslint silently fails when some legacy tslint.json files are used.
  2. make sure that in the sonar-project.properties you change the path to the binary itself for node and tslint, not just the directory contained by it. After spending some time investigating the behavior of the path resolver, I found this was the most reliable way to make the TsPlugin work 100% of the time.

Example snip of sonar-project.properties:

sonar.scm.disabled=true
sonar.ts.tslint.path=node_modules/tslint/bin/tslint
sonar.ts.tslint.projectPath=src
sonar.ts.tslint.nodePath=/usr/bin/nodejs
sonar.ts.tslint.enabled=true
sonar.ts.tslint.rulesDir=node_modules/tslint-eslint-rules/dist/rules
sonar.ts.tslint.outputPath=

In the above example, I am using a linux install and I am pointing to the actual binary for nodejs and tslint.

@sebastienbonami

This comment has been minimized.

Show comment
Hide comment
@sebastienbonami

sebastienbonami Sep 29, 2017

@CINJ I followed your instructions, but it still doesn't work for me. It's like there are no files being analysed. Here's the part about typescript in my console when running in debug mode:

14:40:22.404 INFO: Sensor Linting sensor for TypeScript files (wrapped)
14:40:22.404 DEBUG: Found sonar.ts.tslint.path path to be 'web/node_modules/tslint/bin/tslint'
14:40:22.404 DEBUG: Found sonar.ts.tslint.configPath path to be 'tslint.json'
14:40:22.404 DEBUG: Found sonar.ts.tslint.rulesDir path to be 'web/node_modules/tslint-eslint-rules/dist/rules'
14:40:22.404 DEBUG: Found sonar.ts.tslint.projectPath path to be 'web/srcReact'
14:40:22.404 DEBUG: Path sonar.ts.tslint.outputPath not specified, falling back to null
14:40:22.414 DEBUG: Using a temporary path for TsLint output: /tmp/jenkins/workspace/UTIL - Run SonarQube Analysis (test)/.scannerwork/.sonartmp/634329673450925242.tmp
14:40:22.415 DEBUG: Running against a single project JSON file
14:40:23.159 INFO: Sensor Linting sensor for TypeScript files (wrapped) (done) | time=755ms

sebastienbonami commented Sep 29, 2017

@CINJ I followed your instructions, but it still doesn't work for me. It's like there are no files being analysed. Here's the part about typescript in my console when running in debug mode:

14:40:22.404 INFO: Sensor Linting sensor for TypeScript files (wrapped)
14:40:22.404 DEBUG: Found sonar.ts.tslint.path path to be 'web/node_modules/tslint/bin/tslint'
14:40:22.404 DEBUG: Found sonar.ts.tslint.configPath path to be 'tslint.json'
14:40:22.404 DEBUG: Found sonar.ts.tslint.rulesDir path to be 'web/node_modules/tslint-eslint-rules/dist/rules'
14:40:22.404 DEBUG: Found sonar.ts.tslint.projectPath path to be 'web/srcReact'
14:40:22.404 DEBUG: Path sonar.ts.tslint.outputPath not specified, falling back to null
14:40:22.414 DEBUG: Using a temporary path for TsLint output: /tmp/jenkins/workspace/UTIL - Run SonarQube Analysis (test)/.scannerwork/.sonartmp/634329673450925242.tmp
14:40:22.415 DEBUG: Running against a single project JSON file
14:40:23.159 INFO: Sensor Linting sensor for TypeScript files (wrapped) (done) | time=755ms

@mdcorriveau

This comment has been minimized.

Show comment
Hide comment
@mdcorriveau

mdcorriveau Oct 11, 2017

Same here, @CINJ solution did'nt worked as expected.

mdcorriveau commented Oct 11, 2017

Same here, @CINJ solution did'nt worked as expected.

@CINJ

This comment has been minimized.

Show comment
Hide comment
@CINJ

CINJ Oct 12, 2017

You need to post your tslint.json file, your sonar-project properties file to help me understand the problem.

The issues I faced were twofold:

  1. TSLINT misconfiguration - and I showed you how to reset the config in my post above
  2. SONAR misconfiguration

To help debug the issues yourself, see if you can run TSLINT directly from the command line on your project. If that works perperly, then you can move back up the chain to the sonar-plugin and make sure it's configuration is correct.

Regards
Joe

CINJ commented Oct 12, 2017

You need to post your tslint.json file, your sonar-project properties file to help me understand the problem.

The issues I faced were twofold:

  1. TSLINT misconfiguration - and I showed you how to reset the config in my post above
  2. SONAR misconfiguration

To help debug the issues yourself, see if you can run TSLINT directly from the command line on your project. If that works perperly, then you can move back up the chain to the sonar-plugin and make sure it's configuration is correct.

Regards
Joe

@wOOx92

This comment has been minimized.

Show comment
Hide comment
@wOOx92

wOOx92 Apr 3, 2018

I've got the same problem. I try to run sonar-scanner with (tslint: v5.8.0, tslint-sonarts: v1.6.0 and sonarqube-scanner: v2.0.2) - and it seems that no tslint rules have been checked.

If I run tslint separately from command-line, broken rules can be found. Here's the relevant snipped of my sonar-project.properties

sonar.sourceEncoding=UTF-8
sonar.sources=src
sonar.ts.tslint.projectPath=tsconfig.json
sonar.ts.tslint.typeCheck=true
sonar.ts.tslint.enabled=true

I already tried to set the following paths explicit but still no errors:

sonar.ts.tslint.path=node_modules\tslint\bin\tslint
sonar.ts.tslint.nodePath=C:\Program Files\nodejs\node.exe

sonar-scanner -X says:
13:35:41.334 DEBUG: Analyzing 98 typescript file(s) with the following configuration file C:\Projekte\Repositories\Encory\Dealerfrontend\trunk\tsconfig.json
So I think my configuration is ok?

What am I doing wrong?

wOOx92 commented Apr 3, 2018

I've got the same problem. I try to run sonar-scanner with (tslint: v5.8.0, tslint-sonarts: v1.6.0 and sonarqube-scanner: v2.0.2) - and it seems that no tslint rules have been checked.

If I run tslint separately from command-line, broken rules can be found. Here's the relevant snipped of my sonar-project.properties

sonar.sourceEncoding=UTF-8
sonar.sources=src
sonar.ts.tslint.projectPath=tsconfig.json
sonar.ts.tslint.typeCheck=true
sonar.ts.tslint.enabled=true

I already tried to set the following paths explicit but still no errors:

sonar.ts.tslint.path=node_modules\tslint\bin\tslint
sonar.ts.tslint.nodePath=C:\Program Files\nodejs\node.exe

sonar-scanner -X says:
13:35:41.334 DEBUG: Analyzing 98 typescript file(s) with the following configuration file C:\Projekte\Repositories\Encory\Dealerfrontend\trunk\tsconfig.json
So I think my configuration is ok?

What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment