We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e98c42d commit eccd4a2Copy full SHA for eccd4a2
internal/rules/package_directory_match.go
@@ -24,6 +24,7 @@ func (d *PackageDirectoryMatch) Validate(protoInfo core.ProtoInfo) ([]core.Issue
24
var res []core.Issue
25
26
preparePath := filepath.Dir(strings.TrimPrefix(protoInfo.Path, d.Root))
27
+ preparePath = filepath.ToSlash(preparePath)
28
expectedPackage := strings.ReplaceAll(preparePath, "/", ".")
29
30
for _, pkgInfo := range protoInfo.Info.ProtoBody.Packages {
0 commit comments