Enabled whitespace/operators rule for cpplint.

Enabled whitespace/operators rule for cpplint, which covers the following:
You should always have whitespace around binary operators.
Missing spaces around <, >, or =
We allow no-spaces around << when used like this: 10<<20, but
not otherwise (particularly, not when used as streams)
There shouldn't be space around unary operators

Review: https://reviews.apache.org/r/19967


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/eaf703ab
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/eaf703ab
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/eaf703ab

Branch: refs/heads/master
Commit: eaf703abcbd9720eedf53bc2e4fa2d84c80e4abc
Parents: 68959c5
Author: Adam B <[email protected]>
Authored: Mon Oct 13 22:54:24 2014 -0700
Committer: Adam B <[email protected]>
Committed: Mon Oct 13 22:54:24 2014 -0700

----------------------------------------------------------------------
 support/mesos-style.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/eaf703ab/support/mesos-style.py
----------------------------------------------------------------------
diff --git a/support/mesos-style.py b/support/mesos-style.py
index 68d31ff..e87388f 100755
--- a/support/mesos-style.py
+++ b/support/mesos-style.py
@@ -22,6 +22,7 @@ active_rules = ['build/class',
                 'whitespace/forcolon',
                 'whitespace/indent',
                 'whitespace/line_length',
+                'whitespace/operators',
                 'whitespace/semicolon',
                 'whitespace/tab',
                 'whitespace/todo']

Reply via email to