Any way to turn off the 'Expression following 'return' is treated as an argument of the 'return'' warning?

i rarely find this warning helpful, and the recommended fixit to indent the closure or collection literal following the return just wastes valuable horizontal space. is there a way to disable it globally across an entire project?

1 Like

While I think that what you want to achieve "wastes valuable space" in the other dimension, it's not the job of the compiler to be your style-enforcing linter. The warning not providing an actual Fix-It, and not suggesting the standard K&R styling, are also problems.

1 Like