Indent function bodies on the root level of a file.
Priority
Recommended
Severity level
10
Description
Bodies of all functions (at any level) shall be indented. By default, only method bodies in a classdef file and nested functions are indented. This can be changed in the MATLAB preferences under Editor/Debugger / Language / Indenting by setting the Function indenting format to Indent all functions.
Rationale
This helps maintain the consistency with all other blocks in MATLAB.