Skip to content
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

TS sonar options supported? #33

Open
cherihung opened this issue Dec 19, 2017 · 0 comments
Open

TS sonar options supported? #33

cherihung opened this issue Dec 19, 2017 · 0 comments

Comments

@cherihung
Copy link

i am using gulp-sonar to run on typescript files.
Are there ways for me to use options such as ts.tslint.typeCheck and ts.tslint.projectPath?
for example

sonar: { 
ts: {
              tslintpath: TSLINTPATH,
              tslint: {
                projectPath: 'tsconfig.json',
                configPath: 'tslint.json',
                typeCheck: true
              },
....

the projectPath, configPath and typeCheck options are used as SonarTsPlugin described to resolve a warning issue with a TS rule. Pablissimo/SonarTsPlugin#158

I see the debug info when I run gulp-sonar is that the command to execute tslint is:
Executing TsLint with command: /node_modules/tslint/bin/tslint --format json --config tslint.json followed by the list of files. So it seems to be ignoring the ts.tslint rules I have.

The expected/preferred command to run with those parameters defined would be:
/node_modules/tslint/bin/tslint --type-check --project tsconfig.json -c tslint.json

anyway I can achieve this using gulp-sonar still?

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

No branches or pull requests

1 participant