Title: Properly configure `SonarQube` source dir when tests and source dir overlap · Issue #1090 · usethis-python/usethis-python · GitHub
Open Graph Title: Properly configure `SonarQube` source dir when tests and source dir overlap · Issue #1090 · usethis-python/usethis-python
X Title: Properly configure `SonarQube` source dir when tests and source dir overlap · Issue #1090 · usethis-python/usethis-python
Description: These directories need to be disjoint. When using src layout, this works fine: sonar.sources=./src sonar.tests=./tests But if we have a flat layout, this doesn't work, because files get indexed twice: sonar.sources=./ sonar.tests=./tests...
Open Graph Description: These directories need to be disjoint. When using src layout, this works fine: sonar.sources=./src sonar.tests=./tests But if we have a flat layout, this doesn't work, because files get indexed twi...
X Description: These directories need to be disjoint. When using src layout, this works fine: sonar.sources=./src sonar.tests=./tests But if we have a flat layout, this doesn't work, because files get indexed...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1090
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Properly configure `SonarQube` source dir when tests and source dir overlap","articleBody":"These directories need to be disjoint. When using `src` layout, this works fine:\n\n```\n sonar.sources=./src\n sonar.tests=./tests\n```\n\nBut if we have a flat layout, this doesn't work, because files get indexed twice:\n\n```\n sonar.sources=./\n sonar.tests=./tests\n```\n\nThe exclusions should simply be set/augmented to always include `./tests` via comma separation and this will fix the issue.\n\nTest strategy is probably just regression-style unit tests to make sure the config contents are sound, and then I'll test them manually on a live pipeline.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-11-05T10:53:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1090/usethis-python/issues/1090"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b11df476-6519-cc1c-5b5c-57c38e7e649b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9BA:BDC69:124610F:18D1F23:6A4D6CF2 |
| html-safe-nonce | b276ac11e3f3c038a91fc058332168f5551d2c30cf299c9adfbaf8ca9a78570b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUJBOkJEQzY5OjEyNDYxMEY6MThEMUYyMzo2QTRENkNGMiIsInZpc2l0b3JfaWQiOiI1MDYxMzgxNDMxMjQ4MTIxMDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5a75bddc012cff5b62d7ea0dab11c06cd0abd6baaaba256832e10ddc1dfe1a9b |
| hovercard-subject-tag | issue:3590431557 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/usethis-python/usethis-python/1090/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ecced25ac998be47e28dff82e9529ddd3bb362184d8c2b8c25a0c40eae1961d/usethis-python/usethis-python/issues/1090 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ecced25ac998be47e28dff82e9529ddd3bb362184d8c2b8c25a0c40eae1961d/usethis-python/usethis-python/issues/1090 |
| og:image:alt | These directories need to be disjoint. When using src layout, this works fine: sonar.sources=./src sonar.tests=./tests But if we have a flat layout, this doesn't work, because files get indexed twi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathanjmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7db3950e3f59095e20a9789440c3dd554efc62d434882ead06ae05b5815605b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd8f6a71db61d6012a0cbb134be844fdbe9b8a45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width