Answer the question
In order to leave comments, you need to log in
How to exclude files and directories in sonar?
Good afternoon!
Please tell me how to manage sonar configs.
There is a project on TypeScript + React.
There are files that I want to exclude from the calculation of test coverage in Sonar
sonar.sources=src
sonar.exclusions=src/myfolder/*.tsx,src/myfolder/**/*.tsx,src/**/*-test.ts,src/**/*-test.tsx,src/interfaces/*.ts,src/**/constant.ts,src/components/**/Interface*.ts,src/**/**/*.module.scss.d.ts,src/**/**/*.module.css.d.ts
sonar.ts.lcov.reportpath=coverage/lcov-report/lcov.info
sonar.ts.tslintconfigpath=tslint.json
sonar.sourceEncoding=UTF-8
sonar.exclusions=src/blabla/**
sonar.exclusions=src/blabla2/**
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question