We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6723465 commit 1732ca1Copy full SHA for 1732ca1
1 file changed
specs/spec_reader.go
@@ -24,7 +24,7 @@ func NewSpecReader(directory string) (*SpecReader, error) {
24
}
25
26
for _, file := range files {
27
- if !file.IsDir() && strings.HasSuffix(file.Name(), ".yml") {
+ if !file.IsDir() && !strings.HasPrefix(file.Name(), ".") && strings.HasSuffix(file.Name(), ".yml") {
28
data, err := os.ReadFile(filepath.Join(directory, file.Name()))
29
if err != nil {
30
return nil, fmt.Errorf("failed to read file %s: %w", file.Name(), err)
0 commit comments