Remove empty functions
ProprietaryRemove unexported free functions with empty bodies and no return type. main in package main and init are preserved because the runtime invokes them rather than other code. Methods with receivers are preserved because they may implement an interface. Exported functions are preserved because removing one breaks importers.
org. openrewrite. golang. codequality. RemoveEmptyFunctionmod run . --recipe= org. openrewrite. golang. codequality. RemoveEmptyFunctionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.