Skip to content

Commit

Permalink
fix: Exclude 'main' suffices from version checks. (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sneeringer authored Jul 15, 2020
1 parent e957f2a commit dc24c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/aip0215/versioned_packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var versionedPackages = &lint.FileRule{
}

// Exempt anything ending in .type, or .v1master, .v2master, .master, etc.
if last := p[len(p)-1]; last == "type" || strings.HasSuffix(last, "master") {
if last := p[len(p)-1]; last == "type" || strings.HasSuffix(last, "master") || strings.HasSuffix(last, "main") {
return false
}

Expand Down

0 comments on commit dc24c16

Please sign in to comment.