Skip to content

Commit eccd4a2

Browse files
authored
fix: Linter rule package_directory_match (#155)
1 parent e98c42d commit eccd4a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/rules/package_directory_match.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func (d *PackageDirectoryMatch) Validate(protoInfo core.ProtoInfo) ([]core.Issue
2424
var res []core.Issue
2525

2626
preparePath := filepath.Dir(strings.TrimPrefix(protoInfo.Path, d.Root))
27+
preparePath = filepath.ToSlash(preparePath)
2728
expectedPackage := strings.ReplaceAll(preparePath, "/", ".")
2829

2930
for _, pkgInfo := range protoInfo.Info.ProtoBody.Packages {

0 commit comments

Comments
 (0)