#!/bin/bash -eux

git checkout -b issue-comments-ignore-generated

cat > generated.go <<EOF
// automatically generated - DO NOT EDIT
package foo
func Foo() {}  // expect golint exported without comment
EOF

mkdir testdata
cat > testdata/foo.go <<EOF
package foo
func Foo() {}  // expect golint exported without comment
EOF

mkdir vendor
cat > vendor/foo.go <<EOF
package foo
func Foo() {}  // expect golint exported without comment
EOF

git add .
git commit -m "commit"

git push -f -u origin HEAD

#!/bin/bash -eux

git checkout -b issue-comments-ignore-generated

cat > generated.go <<EOF
// Code generated by tool DO NOT EDIT.
package foo
func Foo() {}  // expect golint exported without comment
EOF

mkdir testdata
cat > testdata/foo.go <<EOF
package foo
func Foo() {}  // expect golint exported without comment
EOF

mkdir vendor
cat > vendor/foo.go <<EOF
package foo
func Foo() {}  // expect golint exported without comment
EOF

git add .
git commit -m "commit"

git push -f -u origin HEAD

Update integration test to use "Code generated .* DO NOT EDIT" syntax
Update integration test to use "Code generated .* DO NOT EDIT" syntax

isFileGenerated has been updated to use this new syntax in
https://github.com/gopherci/isFileGenerated/pull/2.
