-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrules-config.yaml
More file actions
81 lines (72 loc) · 2.13 KB
/
rules-config.yaml
File metadata and controls
81 lines (72 loc) · 2.13 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Cursor Rules Configuration
# This file defines how each rule file should be attached and when it should be applied
rules:
- file: .cursor/rules/README.mdc
attach: agent
description: "README.mdc: Core project documentation and general coding practices. Always loaded for context."
glob: []
- file: .cursor/rules/workflow-rules.mdc
attach: agent
description: "workflow-rules.mdc: Development workflow guidelines. Always loaded for context."
glob: []
- file: .cursor/rules/frontend-rules.mdc
attach: auto
description: "frontend-rules.mdc: Frontend development guidelines for Rails views, JavaScript, and CSS."
glob:
- "app/views/**/*"
- "app/javascript/**/*"
- "app/assets/**/*"
- "frontend/**/*"
- "*.js"
- "*.jsx"
- "*.ts"
- "*.tsx"
- "*.css"
- "*.scss"
- "*.haml"
- "*.erb"
- file: .cursor/rules/backend-rules.mdc
attach: auto
description: "backend-rules.mdc: Backend development guidelines for Ruby on Rails models, controllers, and services."
glob:
- "app/models/**/*"
- "app/controllers/**/*"
- "app/services/**/*"
- "app/workers/**/*"
- "app/jobs/**/*"
- "lib/**/*"
- "*.rb"
- "*.rake"
- file: .cursor/rules/api-documentation.mdc
attach: auto
description: "api-documentation.mdc: API documentation standards for OpenAPI/Swagger specifications."
glob:
- "public/swagger.yaml"
- "public/v*/openapi.yaml"
- "docs/api/**/*"
- "app/controllers/api/**/*"
- file: .cursor/rules/checklists.mdc
attach: agent
description: "checklists.mdc: General development and code review checklists. Always loaded for context."
glob: []
# Directory-specific rules
directories:
frontend:
attach: auto
glob:
- "app/views/**/*"
- "app/javascript/**/*"
- "app/assets/**/*"
- "frontend/**/*"
backend:
attach: auto
glob:
- "app/models/**/*"
- "app/controllers/**/*"
- "app/services/**/*"
- "app/workers/**/*"
- "app/jobs/**/*"
- "lib/**/*"
workflow:
attach: agent
glob: []