Summary
Complete Go scanner integration into the scanner registry with comprehensive test coverage and production hardening.
Background
Part of Epic #128: Go Language Support
Depends on: #129 (Core Scanner), #130 (Methods & Generics)
Tasks
Registry Integration
Generated File Handling
Test Coverage (Target: 90%+)
Documentation
Edge Cases
Acceptance Criteria
Test File Structure
packages/core/src/scanner/
├── go.ts # GoScanner implementation
├── go.test.ts # Comprehensive test suite
├── __fixtures__/
│ └── go/
│ ├── simple.go # Basic functions, structs
│ ├── methods.go # Receiver methods
│ ├── generics.go # Generic types and functions
│ ├── generated.go # Should be skipped
│ └── edge-cases.go # Build tags, init, embedded
References
- TypeScript scanner coverage: 94.94%
- Scanner test patterns:
packages/core/src/scanner/scanner.test.ts
Summary
Complete Go scanner integration into the scanner registry with comprehensive test coverage and production hardening.
Background
Part of Epic #128: Go Language Support
Depends on: #129 (Core Scanner), #130 (Methods & Generics)
Tasks
Registry Integration
GoScannerincreateDefaultRegistry().goto supported extensions listpackages/core/src/scanner/index.tsGenerated File Handling
// Code generatedvendor/directorybin/,dist/)isGenerateddetection helperTest Coverage (Target: 90%+)
*_test.go→isTest: true)Documentation
packages/core/src/scanner/README.mdwith Go sectionEdge Cases
//go:build linuxvar _ Interface = (*Impl)(nil)func init() {}var a, b, c intAcceptance Criteria
dev index .works on Go repositories out of the box.gen.go,.pb.go) are skippedTest File Structure
References
packages/core/src/scanner/scanner.test.ts