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..105a6585 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("llmvalidate: Including file %s", relFile) + if len(content) == 0 { return "" }