Spacing Binary Operators
Categories:
Created by Microsoft, Described by waldo
Description
There must be exactly one space character on each side of a binary operator such as = + - AND OR =. The parameter comma operator however, should have a space after the comma.
Example 1
Bad code
"Line Discount %" := "Line Discount Amount"/"Line Value"*100;
Good code
"Line Discount %" := "Line Discount Amount" / "Line Value" * 100;
Example 2
Bad code
StartDate := CalcDate('<+'+Format(Days+i)+'D\>',StartDate);
Good code
StartDate := CalcDate('<+' + Format(Days + i) + 'D\>', StartDate);
Example 3
Bad code
StartDate:=0D; // Initialize
Good code
StartDate := 0D; // Initialize
Last modified October 9, 2023: Merge pull request #235 from microsoft/dependabot/npm_and_yarn/postcss-8.4.31 (8c58628)
by Jeremy Vyska