Does SonarQube exclude TypeScript declaration files (.d.ts) automatically?
I am analyzing a TypeScript project which contains many .d.ts files but they don’t show up in SonarQube. From the configuration point of view (source inclusions and exclusion etc.), I’d say they should show up (regular .ts and .spec.ts show up). SonarQube also analzyes the corresponding tsconfig.json file and then reports
INFO: Analyzed 33 file(s) with current program
which is exactly the number of all .ts files minus the .d.ts files.
The issue with this is that I want to import ESLint issues but the issue on .d.ts files are skipped with warnings like this:
WARN: No input file found for /path/to/project/src/some/path/file.d.ts. No ESLint issues will be imported on this file.
SonarQube version 184.108.40.206531
Scanner version 220.127.116.1147
we thought that they are usually not written by hand, but generated