style(*): add numerous JSCS rules to unify code-styles in the tree

Changes:

  - add rule requireSpaceBeforeBlockStatements (require space before brace when opening block statement)
  - add operators to rule disallowSpaceAfterPrefixUnaryOperators (no space after prefix inc/dec ops)
  - add rule disallowSpaceBeforePostfixUnaryOperators (no space before postfix inc/dec ops)
  - add rule disallowSpacesInsideArrayBrackets (array literals no longer padded with spaces)
  - add rule requireCommaBeforeLineBreak (line can't start with comma token)
  - add rule validateLineBreaks (require LF linebreaks)

Closes #9792
This commit is contained in:
Henry Zhu
2014-10-24 19:42:48 -04:00
committed by Caitlin Potter
parent 2a0254e181
commit 030101a43a
736 changed files with 757 additions and 752 deletions

View File

@@ -224,7 +224,7 @@ function outputLocale(localeInfo, localeID) {
getDecimals + getVF + getWT +
'$provide.value("$locale", ';
var suffix = ');\n}]);';
var suffix = ');\n}]);\n';
return prefix + content + suffix;
}