1
0
mirror of https://github.com/golang/go synced 2024-11-05 19:56:11 -07:00
go/refactor/rename
Paul Jolly c6269430a5 refactor/rename: allow Force to make edits within autogenerated files.
Currently, as documented, gorename fails if it would cause an edit to an
autogenerated file:

- detect and reject edits to autogenerated files (cgo, protobufs)

There are times when refactoring code where such an edit is necessary.
This CL enables such edits if Force is set (which corresponds to
gorename -force).

Change-Id: If21249ae50d61fb5b59ee6e1ecf7157aaae0260a
Reviewed-on: https://go-review.googlesource.com/118975
Reviewed-by: Alan Donovan <adonovan@google.com>
2018-06-14 20:28:06 +00:00
..
check.go refactor/...: remove go1.8-tagged files 2016-11-04 21:29:48 +00:00
mvpkg_test.go cmd/gomvpkg: Only process paths that are children 2018-01-17 19:58:32 +00:00
mvpkg.go cmd/gomvpkg: Only process paths that are children 2018-01-17 19:58:32 +00:00
rename_test.go refactor/rename: fix test failures in TestRewrites. 2017-11-06 20:20:52 +00:00
rename.go refactor/rename: allow Force to make edits within autogenerated files. 2018-06-14 20:28:06 +00:00
spec.go refactor/rename: fail cleanly when attempting to rename cgo files 2017-06-23 01:23:57 +00:00
util.go refactor/...: remove go1.8-tagged files 2016-11-04 21:29:48 +00:00