-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsonar-project.properties
More file actions
24 lines (22 loc) · 1.23 KB
/
Copy pathsonar-project.properties
File metadata and controls
24 lines (22 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SonarCloud project config.
#
# We deliberately keep the EN and DE landings as separate Nunjucks
# templates (`site/src/<lang>/index.njk`) so each is fully indexable
# under its own `hreflang` and serves as a static, self-contained
# entry point. That makes them structural mirrors by design — every
# locale addition multiplies the duplication score even though the
# only meaningful difference is the language attribute and the
# locale lookup. Excluding the per-locale `index.njk` files from the
# copy-paste detector reflects that intent without lowering the
# global duplication ceiling for actual code.
#
# All shared logic that does land on those pages (install-mode
# switcher, search form, skill-card iteration) is factored into
# partials/macros under `site/src/_includes/`, which remain in scope.
sonar.cpd.exclusions=site/src/*/index.njk,site/src/_data/installMethods.js
# `_data/installMethods.js` is the central per-method record set
# (`{id, labels.{en,de}, hint.{en,de}, command}` × N methods). The records
# are structurally similar by design — they describe the same shape four
# times over. Excluding the file from the copy-paste detector keeps the
# config single-source without flattening into harder-to-maintain
# parallel arrays.