Skip to content

Commit 22802fd

Browse files
committed
Improve struct naming
1 parent 5d34dbf commit 22802fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/extractor/configurebaseline/configurebaseline.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func isGolangVendorDirectory(dirPath string) bool {
1919
return path.Base(dirPath) == "vendor" && fileExists(path.Join(dirPath, "modules.txt"))
2020
}
2121

22-
type PathsIgnoreStruct struct {
22+
type BaselineConfig struct {
2323
PathsIgnore []string `json:"paths-ignore"`
2424
}
2525

@@ -43,6 +43,6 @@ func GetConfigBaselineAsJSON(rootDir string) ([]byte, error) {
4343
})
4444
}
4545

46-
outputStruct := PathsIgnoreStruct{PathsIgnore: vendorDirs}
46+
outputStruct := BaselineConfig{PathsIgnore: vendorDirs}
4747
return json.Marshal(outputStruct)
4848
}

0 commit comments

Comments
 (0)