Version Cursor rules

Track .cursor/rules/ in git so coding conventions are shared
across the team. Everything else under .cursor/ stays ignored.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:10:39 +04:00
parent 58d3ba3823
commit 8f8f09008a
16 changed files with 687 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
---
description: Template file naming and conventions
globs: "**/*.tmpl"
alwaysApply: false
---
# Template files
See full guide: `contrib/claude/file-naming.md`
## Naming convention
Template files use the extension pattern `<name>.<output-ext>.tmpl`:
```
pkg/trust/sitemap.xml.tmpl
pkg/cookiebanner/prompts/tracker_identification.txt.tmpl
pkg/probo/templates/risk_list.json.tmpl
```
## Dynamic values over hardcoded lists
Never hardcode enum values or source-of-truth lists in template text. Use a placeholder and substitute at runtime:
```
Use one of: {{.Categories}}.
```
Use `strings.Replace` (single placeholder) or `text/template` (multiple).