Skip to content

Commit 4d9d5f6

Browse files
committed
revert: remove operator spacing rule from AGENTS.md
gofumpt actively normalizes operator spacing inside function call arguments and its decisions are inconsistent. Since the formatter owns this, a manual rule is unenforceable.
1 parent b0f1942 commit 4d9d5f6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

AGENTS.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,6 @@ It's very likely another agent has been working and just run out of context.
253253

254254
These have been repeatedly requested. Violating them wastes the user's time.
255255

256-
- **Spaces around operators**: Always put spaces around binary operators
257-
(`+`, `==`, `&&`, etc.) in Go code, including inside function call
258-
arguments. `gofumpt` (via `golines`) may strip spaces in some contexts
259-
and leave them in others -- accept whatever the formatter produces
260-
after a commit, but always write new code with spaces.
261256
- **No `cd`**: You are already in the workspace directory. Never prepend `cd
262257
/path && ...` to shell commands. Use the `working_directory` parameter if you
263258
need a different directory.

0 commit comments

Comments
 (0)