U
U
uuushka2017-05-03 14:03:50
JavaScript
uuushka, 2017-05-03 14:03:50

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

If each path is written on a separate line
sonar.exclusions=src/blabla/**
sonar.exclusions=src/blabla2/**

then nothing works, apparently the syntax is different. Tell me, please, how is it right? I couldn't find it on the docks..

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question