Skip to content

Commit

Permalink
Detect generated files using github.com/cheekybits/genny
Browse files Browse the repository at this point in the history
  • Loading branch information
zaibon committed Dec 15, 2022
1 parent 0a02b8b commit adb904c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@ func IsGeneratedFileByComment(in string) bool {
const (
genCodeGenerated = "code generated"
genDoNotEdit = "do not edit"
genAutoFile = "autogenerated file" // easyjson
genAutoFile = "autogenerated file" // easyjson
genAutoGenerated = "automatically generated" // genny
)

markers := []string{genCodeGenerated, genDoNotEdit, genAutoFile}
markers := []string{genCodeGenerated, genDoNotEdit, genAutoFile, genAutoGenerated}
in = strings.ToLower(in)
for _, marker := range markers {
if strings.Contains(in, marker) {
Expand Down

0 comments on commit adb904c

Please sign in to comment.