mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-22 06:20:10 +00:00
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.
This commit is contained in:
@@ -125,7 +125,7 @@ go list -f '{{.ImportPath}} -> {{.Imports}}' ./...
|
|||||||
- Use interfaces to break the cycle
|
- Use interfaces to break the cycle
|
||||||
- Restructure package dependencies
|
- Restructure package dependencies
|
||||||
|
|
||||||
```
|
```text
|
||||||
# Before (cycle)
|
# Before (cycle)
|
||||||
package/a -> package/b -> package/a
|
package/a -> package/b -> package/a
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ x = x // Remove pointless assignment
|
|||||||
|
|
||||||
## Resolution Workflow
|
## Resolution Workflow
|
||||||
|
|
||||||
```
|
```text
|
||||||
1. go build ./...
|
1. go build ./...
|
||||||
↓ Error?
|
↓ Error?
|
||||||
2. Parse error message
|
2. Parse error message
|
||||||
@@ -340,7 +340,7 @@ Stop and report if:
|
|||||||
|
|
||||||
After each fix attempt:
|
After each fix attempt:
|
||||||
|
|
||||||
```
|
```text
|
||||||
[FIXED] internal/handler/user.go:42
|
[FIXED] internal/handler/user.go:42
|
||||||
Error: undefined: UserService
|
Error: undefined: UserService
|
||||||
Fix: Added import "project/internal/service"
|
Fix: Added import "project/internal/service"
|
||||||
@@ -349,7 +349,7 @@ Remaining errors: 3
|
|||||||
```
|
```
|
||||||
|
|
||||||
Final summary:
|
Final summary:
|
||||||
```
|
```text
|
||||||
Build Status: SUCCESS/FAILED
|
Build Status: SUCCESS/FAILED
|
||||||
Errors Fixed: N
|
Errors Fixed: N
|
||||||
Vet Warnings Fixed: N
|
Vet Warnings Fixed: N
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ When invoked:
|
|||||||
## Review Output Format
|
## Review Output Format
|
||||||
|
|
||||||
For each issue:
|
For each issue:
|
||||||
```
|
```text
|
||||||
[CRITICAL] SQL Injection vulnerability
|
[CRITICAL] SQL Injection vulnerability
|
||||||
File: internal/repository/user.go:42
|
File: internal/repository/user.go:42
|
||||||
Issue: User input directly concatenated into SQL query
|
Issue: User input directly concatenated into SQL query
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ go mod tidy -v
|
|||||||
|
|
||||||
## Example Session
|
## Example Session
|
||||||
|
|
||||||
```
|
```text
|
||||||
User: /go-build
|
User: /go-build
|
||||||
|
|
||||||
Agent:
|
Agent:
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ govulncheck ./...
|
|||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```text
|
||||||
User: /go-review
|
User: /go-review
|
||||||
|
|
||||||
Agent:
|
Agent:
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ REPEAT → Next test case
|
|||||||
|
|
||||||
## Example Session
|
## Example Session
|
||||||
|
|
||||||
```
|
```text
|
||||||
User: /go-test I need a function to validate email addresses
|
User: /go-test I need a function to validate email addresses
|
||||||
|
|
||||||
Agent:
|
Agent:
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ func WriteAndFlush(w io.Writer, data []byte) error {
|
|||||||
|
|
||||||
### Standard Project Layout
|
### Standard Project Layout
|
||||||
|
|
||||||
```
|
```text
|
||||||
myproject/
|
myproject/
|
||||||
├── cmd/
|
├── cmd/
|
||||||
│ └── myapp/
|
│ └── myapp/
|
||||||
|
|||||||
Reference in New Issue
Block a user