Skip to content

Commit 1732ca1

Browse files
authored
fix: Ignore hidden files (#56)
So that we can put the config in cli/ and not worry about .golangci.yml Co-authored-by: Kemal Hadimli <[email protected]>
1 parent 6723465 commit 1732ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/spec_reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func NewSpecReader(directory string) (*SpecReader, error) {
2424
}
2525

2626
for _, file := range files {
27-
if !file.IsDir() && strings.HasSuffix(file.Name(), ".yml") {
27+
if !file.IsDir() && !strings.HasPrefix(file.Name(), ".") && strings.HasSuffix(file.Name(), ".yml") {
2828
data, err := os.ReadFile(filepath.Join(directory, file.Name()))
2929
if err != nil {
3030
return nil, fmt.Errorf("failed to read file %s: %w", file.Name(), err)

0 commit comments

Comments
 (0)