From 269faa65468791d9e3b16273b6d8d4f9f81a3b5d Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sat, 28 Mar 2026 17:37:11 +0000 Subject: [PATCH] fix(cmd): remove misplaced analyze command addition - Remove `rootCmd.AddCommand(analyzeCmd)` from `cmd/analyze.go` init func - Add empty `Linters` array for Rexx in `internal/linter/linter.go` with comment for analyze support --- cmd/analyze.go | 2 -- internal/linter/linter.go | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/analyze.go b/cmd/analyze.go index 5755c61..80cc5a3 100644 --- a/cmd/analyze.go +++ b/cmd/analyze.go @@ -129,8 +129,6 @@ func init() { analyzeCmd.Flags().String("dir", ".", "Repository root to analyze") analyzeCmd.Flags().StringP("output", "o", "analyze.md", "Output file (use - for stdout)") analyzeCmd.Flags().BoolP("yes", "y", false, "Skip confirmation prompt") - - rootCmd.AddCommand(analyzeCmd) } // discoverSourceFiles walks the directory and collects all supported source files. diff --git a/internal/linter/linter.go b/internal/linter/linter.go index 32cec92..876e38f 100644 --- a/internal/linter/linter.go +++ b/internal/linter/linter.go @@ -173,6 +173,7 @@ var languages = []Language{ { Name: "Rexx", Extensions: []string{".rx", ".rex", ".rexlib", ".rexx", ".cls"}, + Linters: []Linter{}, // No traditional linter; used primarily by `grokkit analyze` }, }