Skip to content

Commit c256a69

Browse files
SimplyLizclaude
andcommitted
fix: Fix non-CGO build for v8.2.0 release
- Add missing `path` parameter to complexity.AnalyzeSource stub to match the CGO implementation signature - Remove unused "time" import from review_bugpatterns_stub.go Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8d7c179 commit c256a69

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

internal/complexity/stub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (a *Analyzer) AnalyzeFile(ctx context.Context, path string) (*FileComplexit
2828

2929
// AnalyzeSource analyzes source code bytes.
3030
// Stub implementation returns an error.
31-
func (a *Analyzer) AnalyzeSource(ctx context.Context, source []byte, lang Language) (*FileComplexity, error) {
31+
func (a *Analyzer) AnalyzeSource(ctx context.Context, path string, source []byte, lang Language) (*FileComplexity, error) {
3232
return nil, ErrNoCGO
3333
}
3434

internal/query/review_bugpatterns_stub.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package query
44

55
import (
66
"context"
7-
"time"
87
)
98

109
// checkBugPatterns is a stub for non-CGO builds.

0 commit comments

Comments
 (0)