Skip to content

Commit

Permalink
Added whitespace-after-comma rule
Browse files Browse the repository at this point in the history
  • Loading branch information
claesjac committed Jan 16, 2012
1 parent 3b8da17 commit bcf5588
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions rules/whitespace.pcs
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ token "whitespace-after-operator" {
followed-by: WHITESPACE, CLOSE_PAREN;
};

token "whitespace-after-comma" {
type: COMMA;
followed-by: WHITESPACE;
};
2 changes: 1 addition & 1 deletion test.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
select COUNT(*), x*y, SUM(CASE WHEN Foo IS NOT NULL THEN 1 ELSE 0 END)
select COUNT(*), x*y,SUM(CASE WHEN Foo IS NOT NULL THEN 1 ELSE 0 END)
FROM Bar
WHERE Quax = $1 and Datestamp>=now() -'1 hour'::interval;

0 comments on commit bcf5588

Please sign in to comment.