-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for binary operator separated by spaces #128
- Loading branch information
1 parent
757bf2a
commit a29b8b5
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
7 changes: 3 additions & 4 deletions
7
...cks/src/main/resources/org/sonar/l10n/esql/rules/esql/BinaryOperatorSeparatedBySpace.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<p>Binary operators should always be separated by spaces.</p> | ||
<p>A blank space should follow each comma in any ESQL statement that makes use of commas outside of a string literal.</p> | ||
|
||
<h2>Noncompliant Code Example</h2> | ||
<pre> | ||
DECLARE myInt,myInt3 INTEGER 1; | ||
WHEN versionRef<1.2 THEN | ||
</pre> | ||
<h2>Compliant Solution</h2> | ||
<pre> | ||
DECLARE myInt, myInt3 INTEGER 1; | ||
</pre> | ||
WHEN versionRef < 1.2 THEN | ||
</pre> |