Skip to content

Commit c1ec02f

Browse files
barckcodeclaude
andcommitted
Fix CI lint: remove unused type and install golangci-lint from source
Remove unused resourceLike struct flagged by golangci-lint. Build golangci-lint from source with Go 1.25 since the pre-built binary (compiled with Go 1.24) is incompatible with go.mod targeting 1.25. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a9046b9 commit c1ec02f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

internal/report/json.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -414,19 +414,6 @@ func GenerateCompareJSON(outputPath string, data *analysis.CompareResult, curren
414414

415415
// GenerateResourcesJSON writes discovered resources as JSON.
416416
func GenerateResourcesJSON(outputPath string, resources interface{}) error {
417-
// Accept []store.Resource via interface to avoid circular import
418-
type resourceLike struct {
419-
Service string
420-
ResourceType string
421-
ResourceID string
422-
Name interface{ Valid() bool; StringVal() string }
423-
Region interface{ Valid() bool; StringVal() string }
424-
State interface{ Valid() bool; StringVal() string }
425-
AccountID string
426-
Spec interface{ Valid() bool; StringVal() string }
427-
Tags interface{ Valid() bool; StringVal() string }
428-
}
429-
430417
report := JSONResourcesReport{
431418
ReportType: "resources",
432419
GeneratedAt: nowISO(),

0 commit comments

Comments
 (0)