You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,14 @@ When generating code for this project, please ensure compliance with the followi
14
14
15
15
### Linting Compliance
16
16
-**golangci-lint**: All generated code must pass our golangci-lint configuration
17
+
-**Verify before committing**: Run `make lint` to check for linting issues locally
17
18
-**Common lint rules to follow**:
18
19
- No unused variables or imports
19
20
- Proper error handling (never ignore errors)
20
21
- Use `require` for error assertions in tests, `assert` for other validations
21
22
- Avoid useless assertions (comparing variables to themselves)
22
23
- Add proper context to error messages
24
+
-**Fix issues promptly**: Address all linting issues before submitting code
23
25
24
26
### Testing Standards
25
27
-**Test naming**: Use `Test<FunctionName>` pattern
@@ -141,4 +143,20 @@ lgr.Info().
141
143
- Validate all required configuration at startup
142
144
- Provide sensible defaults where appropriate
143
145
146
+
## Development Workflow
147
+
148
+
### Before Committing Code
149
+
1.**Format**: Run `gofmt -s -w .` to format code
150
+
2.**Lint**: Run `make lint` to verify code passes all linting rules
151
+
3.**Test**: Run `make test` to ensure all tests pass
152
+
4.**Build**: Run `make build` to verify the application builds successfully
153
+
154
+
### Available Make Targets
155
+
-`make lint` - Run golangci-lint to check for code quality issues
156
+
-`make test` - Run all unit tests
157
+
-`make ci-coverage` - Run tests with coverage reporting
158
+
-`make build` - Build the application binary
159
+
-`make docker-build` - Build the Docker image
160
+
-`make docker-start` - Build and run the application in Docker
161
+
144
162
When generating code, please ensure it follows these patterns and will pass both our linting rules and maintain consistency with the existing codebase architecture.
0 commit comments