1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:04:44 -07:00
go/refactor
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
..
eg refactor/eg: Add support for multi line after statements to eg. 2018-03-19 17:51:41 +00:00
importgraph refactor/importgraph: document that graphs are cyclic 2016-03-03 22:47:59 +00:00
rename refactor/rename: allow Force to make edits within autogenerated files. 2018-06-14 20:28:06 +00:00
satisfy refactor/...: remove go1.8-tagged files 2016-11-04 21:29:48 +00:00
README go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00

golang.org/x/tools/refactor: libraries for refactoring tools.