Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

No linting Error and showing passed in sonar Qube #163

Open
Nikhilkapoor20 opened this issue Jul 25, 2017 · 1 comment
Open

No linting Error and showing passed in sonar Qube #163

Nikhilkapoor20 opened this issue Jul 25, 2017 · 1 comment

Comments

@Nikhilkapoor20
Copy link

My Sonar-scanner is
..abc\sonar-scanner-cli-3.0.3.778-windows\sonar-scanner-3.0.3.778-windows\bin
and my Project is in
xyz dir
i am running scanner with this command
sonar-scanner.bat -X -Dsonar.projectBaseDir=xyz
but i am getting
11:33:57.129 INFO: CLI cmd /C call node "C:\Users\nikhil.kapoor.IND-DEL\AppData\Roaming\npm\node_modules\tslint\bin\tslint" --config "D:\intershop\icp_admin_07_21\icp_admin_architecture_refactor\icp_admin.scannerwork\tslint.json" --format json -f "D:\intershop\icp_admin_07_21\icp_admin_architecture_refactor\icp_admin\src\app\theme\theme.config.ts"
11:33:57.129 DEBUG: Got
11:33:57.129 INFO: TsLint executing for D:\intershop\icp_admin_07_21\icp_admin_architecture_refactor\icp_admin\src\app\theme\theme.configProvider.ts
11:33:57.514 ERROR: TsLint Err:
11:33:57.514 ERROR: TsLint Err: error: unknown option -f' 11:33:57.514 ERROR: TsLint Err: 11:33:57.514 INFO: Exit code 1 11:33:57.514 INFO: CLI cmd /C call node "C:\Users\nikhil.kapoor.IND-DEL\AppData\Roaming\npm\node_modules\tslint\bin\tslint" --config "D:\intershop\icp_admin_07_21\icp_admin_architecture_refactor\icp_admin\.scannerwork\tslint.json" --format json -f "D:\intershop\icp_admin_07_21\icp_admin_architecture_refactor\icp_admin\src\app\theme\theme.configProvider.ts" 11:33:57.514 DEBUG: Got 11:33:57.514 INFO: TsLint executing for D:\intershop\icp_admin_07_21\icp_admin_architecture_refactor\icp_admin\src\app\theme\theme.constants.ts 11:33:57.898 ERROR: TsLint Err: 11:33:57.898 ERROR: TsLint Err: error: unknown option -f'
11:33:57.899 ERROR: TsLint Err:
11:33:57.905 INFO: Exit code 1
11:33:57.906 INFO: CLI cmd /C call node "C:\Users\nikhil.kapoor.IND-DEL\AppData\Roaming\npm\node_modules\tslint\bin\tslint" --config "D:\intershop\icp_admin_07_21\icp_admin_architecture_refactor\icp_admin.scannerwork\tslint.json" --format json -f "D:\intershop\icp_admin_07_21\icp_admin_architecture_refactor\icp_admin\src\app\theme\theme.constants.ts"
11:33:57.908 DEBUG: Got

for all .ts files can you please help me out

this is my properties in project folder
sonar.projectKey=company:intershop
sonar.projectName=intershop
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.sources=src/app
sonar.exclusions=/node_modules/,/*.spec.ts
sonar.tests=src/app
sonar.test.inclusions=
/*.spec.ts

sonar.ts.tslint.configPath=tslint.json

@Pablissimo
Copy link
Owner

What version of the plugin and tslint are you using? The -f flag hasn't been supplied to tslint for a good while now, so just upgrading the plugin might help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants