From 4ba52d246d23cf907d75ec3f5eeb10667a2b8457 Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Tue, 28 May 2024 10:46:04 +0200 Subject: [PATCH 1/2] Add more files to exclude list --- Magefile.go | 1 + pkg/llmvalidate/llmvalidate.go | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Magefile.go b/Magefile.go index a51fea21..e11e42f1 100644 --- a/Magefile.go +++ b/Magefile.go @@ -273,6 +273,7 @@ func (Run) V2Local(ctx context.Context, path string, sourceCodePath string) erro } if !strings.HasPrefix(sourceCodePath, "http://") && + !strings.HasPrefix(sourceCodePath, "https://") && !strings.HasPrefix(sourceCodePath, "file://") { sourceCodePath = "file://" + sourceCodePath } diff --git a/pkg/llmvalidate/llmvalidate.go b/pkg/llmvalidate/llmvalidate.go index 77ba28d2..33a48541 100644 --- a/pkg/llmvalidate/llmvalidate.go +++ b/pkg/llmvalidate/llmvalidate.go @@ -22,6 +22,7 @@ import ( var ignoreList = []string{ // hidden files "**/.**", + ".**", //dependencies "node_modules/**", @@ -40,8 +41,12 @@ var ignoreList = []string{ "**/test-**", "**/__mocks__/**", "**/*.test.*", + "**/*.spec.*", "**/*_test.go", + "tests/**", + "mocks/**", "server-*", + "cypress/**", // config "jest.config.*", @@ -51,7 +56,7 @@ var ignoreList = []string{ "vite.config.*", "**/tsconfig.*", "Gruntfile.*", - "**/webpack.config.*", + "webpack.config.*", "rollup.config.*", } @@ -274,6 +279,8 @@ func getPromptContentForFile(codePath, relFile string) string { return "" } + logme.DebugFln("Including file %s", relFile) + if len(content) == 0 { return "" } From 7a40bc56ca51037561efaa89936806dd9b5e4d33 Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Tue, 28 May 2024 10:47:08 +0200 Subject: [PATCH 2/2] Improve logging --- pkg/llmvalidate/llmvalidate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/llmvalidate/llmvalidate.go b/pkg/llmvalidate/llmvalidate.go index 33a48541..105a6585 100644 --- a/pkg/llmvalidate/llmvalidate.go +++ b/pkg/llmvalidate/llmvalidate.go @@ -279,7 +279,7 @@ func getPromptContentForFile(codePath, relFile string) string { return "" } - logme.DebugFln("Including file %s", relFile) + logme.DebugFln("llmvalidate: Including file %s", relFile) if len(content) == 0 { return ""