tslint.json config not found on Windows when in subfolder
The usual pathing syntax in the sonar-project.properties is:
sonar.param = something/in/there
Even in Windows, where there is an initial comment in the file saying Replace "\" by "/" on Windows..
It is not working for the tslnint config path, you have to put instead two backslashes:
sonar.ts.tslintconfigpath=something\\in\\there
The plugin should accept the former too, and throw an exception when not found.
By default, it would be nice if it can search for the tslint.json in the current folder.
So - and I can't believe I didn't reply to this for so long so I do apologise:
- tslint.json should be sought by default now, if you don't specify the property. You can obviously override it in your project properties to set it to a specific path relative to the properties
- tslint not finding tslint.json if it's specified with forward slashes on Windows (or requiring escaped backslashes) might be something we can fix on the fly for Windows users - will see about it
I can confirm. If tslint is in a subfolder, it doesn't work. In the root folder it works fine!
I tried:
sonar.ts.tslint.configPath=App/tslint.json
sonar.ts.tslint.configPath=App\tslint.json
sonar.ts.tslint.configPath=**/tslint.json
sonar.ts.tslint.configPath=**\tslint.json
sonar.ts.tslint.configPath=App//tslint.json
sonar.ts.tslint.configPath=App\\tslint.json
None of those worked.
Any idea how to solve this?