1
0
mirror of https://github.com/mgechev/revive.git synced 2025-04-02 22:05:32 +02:00

12 lines
338 B
Go
Raw Normal View History

package ifelse
// PreserveScope is a configuration argument that prevents suggestions
// that would enlarge variable scope
const PreserveScope = "preserveScope"
// Args contains arguments common to the early-return, indent-error-flow
// and superfluous-else rules (currently just preserveScope)
type Args struct {
PreserveScope bool
}