-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcursor.mdc
More file actions
29 lines (25 loc) · 1.06 KB
/
cursor.mdc
File metadata and controls
29 lines (25 loc) · 1.06 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
---
description:
globs:
alwaysApply: true
---
# Your rule content
## Key Rules
- avoid code copy pasting and duplication, refactor to function eagerly when possible
- use fulnames like e.g. feature, instaed of feat
- run go build after each code modification to see if app compiles
- remove dead unused code
- look for constants like file permissons in `constants` folder
## Code Style Guidelines
- **Imports**: Standard lib first, external packages second, internal last
- **Naming**: PascalCase for exported (public), camelCase for unexported (private)
- **Error handling**: Return errors as last value, check with `if err != nil`
- **Testing**: Use testify/assert package for assertions
- **Package organization**: Keep related functionality in dedicated packages
- **Documentation**: Document all exported functions, types, and packages
- **Commit messages**: Start with verb, be concise and descriptive
## Project Structure
- `cmd/`: CLI command implementations
- `config/`: Configuration handling
- `tools/`: Tool-specific implementations
- `utils/`: Utility functions