Commit ec00259
committed
Fix Reason error format and update AGENTS.md with gating checks
Change error messages in Reason.Validate() and Reason.MarshalJSON()
to use %d instead of %q. Reason is an integer type, and %q prints the
value as a rune character rather than its integer representation, making
the error message misleading.
Add a dedicated "Gating Checks" section to AGENTS.md that lists the
three mandatory pre-submit commands: gofmt, go test, and golangci-lint.
Remove the now-redundant guidelines that mentioned running tests and
following Go conventions, and merge the remaining numbered list.1 parent 48323d0 commit ec00259
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
| |||
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 176 | + | |
171 | 177 | | |
172 | 178 | | |
173 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| |||
0 commit comments