ENVY/QA User Guide : Code Formatter : Formatting Line Breaks : Blank Line before body of method
Blank Line before body of method
If this option is enabled, there will be a single blank line before the method body; otherwise blank lines preceding the method body will be removed.
OFF
(do not insert a blank line)
sample
"A sample method"
<myPragma: 3>
| sampleVariable |
^self size
ON
(insert a blank line)
sample
"A sample method"
<myPragma: 3>
| sampleVariable |
 
^self size
 
Blank Line before Method Comment
 
If this option is enabled, there will be a single blank line before the method comment; otherwise blank lines preceding the method comment will be removed.
OFF
(do not insert a blank line)
sample
"A sample method"
<myPragma: 3>
| sampleVariable |
^self size
ON
(insert a blank line)
Sample
 
"A sample method"
<myPragma: 3>
| sampleVariable |
 
^self size
Blank line before pragmas
If this option is enabled, there will be a single blank line before the pragmas; otherwise blank lines preceeding the pragmas will be removed.
Note: Due to the way pragmas are parsed, all pragmas in a method will appear after the method comment and before any temporary variables.
OFF
(do not insert a blank line)
sample
"A sample method"
<myPragma: 3>
| sampleVariable |
^self size
ON
(insert a blank line)
sample
"A sample method"
 
<myPragma: 3>
| sampleVariable |
^self size
Blank line before temps
If this option is enabled, there will be a single blank line before the temporary variables; otherwise blank lines preceeding the temporary variables will be removed.
OFF
(do not insert a blank line)
sample
"A sample method"
<myPragma: 3>
| sampleVariable |
^self size
ON
(insert a blank line)
sample
"A sample method"
<myPragma: 3>
 
| sampleVariable |
^self size
Retain Existing Blank Lines
If this option is enabled, blank lines that would otherwise be removed based on the other Line Break rules are retained.
OFF
(do not retain blank lines)
sample
self location: 2.
^self size
ON
(retain blank lines)
sample
self location: 2.
 
^self size
 
Last modified date: 08/14/2015