Skip generated files

Ensure it skips for both check only mode and modification mode.

Fixes #39
This commit is contained in:
Marc-Antoine Ruel
2020-05-24 12:51:43 -04:00
parent df58acafd6
commit 541722a254
3 changed files with 35 additions and 5 deletions

7
testdata/expected/file_generated.go vendored Normal file
View File

@@ -0,0 +1,7 @@
// Code generated by "stringer -type foo"; DO NOT EDIT.
package main
func (f Foo) String() string {
return "foo"
}

7
testdata/initial/file_generated.go vendored Normal file
View File

@@ -0,0 +1,7 @@
// Code generated by "stringer -type foo"; DO NOT EDIT.
package main
func (f Foo) String() string {
return "foo"
}