Files
computer-playbook/roles/web-app-nextcloud/meta/addons/deck.yml
kevinveenbirkenbachandClaude Opus 4.8 6b7c79edb1 test(lint): forbid addon 'enabled' deriving from group_names
An addon's enabled flag must defer to the owning role's service flag
(lookup config services.<x>.enabled), a literal true/false, or api lookups —
never a raw '<role>' in group_names test. group_names belongs in
meta/services.yml (the SPOT); addons read the resolved flag so one source
decides partner presence. New lint scans roles/*/meta/addons/*.yml (87 files)
with a '# nocheck: addon-enabled-group-names' escape.

deck.yml is the one legitimate exception (anti-dependency on web-app-taiga,
which has no nextcloud service flag) and is nochecked accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 06:03:19 +02:00

7 lines
234 B
YAML

---
# nocheck: addon-enabled-group-names: anti-dependency on web-app-taiga, which has no nextcloud service flag to defer to
enabled: "{{ 'web-app-taiga' not in group_names | lower }}"
required: true
mechanism: plugin
source: upstream