From c6c32cdc7acfdc005807ba1d4d3498148a825ad9 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Jan 2026 09:35:43 +0000 Subject: [PATCH] fix: add language labels to fenced code blocks for MD040 compliance Add `text` language identifier to unlabeled fenced code blocks to satisfy markdownlint MD040 rule across Go documentation files. --- agents/go-build-resolver.md | 8 ++++---- agents/go-reviewer.md | 2 +- commands/go-build.md | 2 +- commands/go-review.md | 2 +- commands/go-test.md | 2 +- skills/golang-patterns/SKILL.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/agents/go-build-resolver.md b/agents/go-build-resolver.md index 0825fbb..78cf531 100644 --- a/agents/go-build-resolver.md +++ b/agents/go-build-resolver.md @@ -125,7 +125,7 @@ go list -f '{{.ImportPath}} -> {{.Imports}}' ./... - Use interfaces to break the cycle - Restructure package dependencies -``` +```text # Before (cycle) package/a -> package/b -> package/a @@ -305,7 +305,7 @@ x = x // Remove pointless assignment ## Resolution Workflow -``` +```text 1. go build ./... ↓ Error? 2. Parse error message @@ -340,7 +340,7 @@ Stop and report if: After each fix attempt: -``` +```text [FIXED] internal/handler/user.go:42 Error: undefined: UserService Fix: Added import "project/internal/service" @@ -349,7 +349,7 @@ Remaining errors: 3 ``` Final summary: -``` +```text Build Status: SUCCESS/FAILED Errors Fixed: N Vet Warnings Fixed: N diff --git a/agents/go-reviewer.md b/agents/go-reviewer.md index c498d1a..031a5bd 100644 --- a/agents/go-reviewer.md +++ b/agents/go-reviewer.md @@ -224,7 +224,7 @@ When invoked: ## Review Output Format For each issue: -``` +```text [CRITICAL] SQL Injection vulnerability File: internal/repository/user.go:42 Issue: User input directly concatenated into SQL query diff --git a/commands/go-build.md b/commands/go-build.md index 94be32e..bf32689 100644 --- a/commands/go-build.md +++ b/commands/go-build.md @@ -43,7 +43,7 @@ go mod tidy -v ## Example Session -``` +```text User: /go-build Agent: diff --git a/commands/go-review.md b/commands/go-review.md index 62bdce0..9aedaf1 100644 --- a/commands/go-review.md +++ b/commands/go-review.md @@ -68,7 +68,7 @@ govulncheck ./... ## Example Usage -``` +```text User: /go-review Agent: diff --git a/commands/go-test.md b/commands/go-test.md index 779062a..94c8726 100644 --- a/commands/go-test.md +++ b/commands/go-test.md @@ -35,7 +35,7 @@ REPEAT → Next test case ## Example Session -``` +```text User: /go-test I need a function to validate email addresses Agent: diff --git a/skills/golang-patterns/SKILL.md b/skills/golang-patterns/SKILL.md index 713c8eb..86b21a7 100644 --- a/skills/golang-patterns/SKILL.md +++ b/skills/golang-patterns/SKILL.md @@ -364,7 +364,7 @@ func WriteAndFlush(w io.Writer, data []byte) error { ### Standard Project Layout -``` +```text myproject/ ├── cmd/ │ └── myapp/