[tor-commits] [snowflake/master] Enforce cake linting in CI

arlo at torproject.org arlo at torproject.org
Thu Jan 28 06:11:57 UTC 2016


commit cb505b62029de0752ed5269b15e409fe28127a38
Author: Arlo Breault <arlolra at gmail.com>
Date:   Wed Jan 27 22:09:43 2016 -0800

    Enforce cake linting in CI
---
 .travis.yml            |    6 ++++--
 proxy/snowflake.coffee |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 68c2493..c860b37 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,9 +4,11 @@ go:
     - 1.5
 
 before_script:
-    npm install -g coffee-script
+    npm install -g coffee-script coffeelint
 
 script:
     - make check
     - go test -v -race ./broker
-    - cd proxy && cake test
\ No newline at end of file
+    - cd proxy
+    - cake lint
+    - cake test
diff --git a/proxy/snowflake.coffee b/proxy/snowflake.coffee
index 582de39..7ecbdb8 100644
--- a/proxy/snowflake.coffee
+++ b/proxy/snowflake.coffee
@@ -82,7 +82,8 @@ class Snowflake
                                        RATE_LIMIT_HISTORY)
 
   # TODO: Should potentially fetch from broker later.
-  # Set the target relay address spec, which is expected to be a websocket relay.
+  # Set the target relay address spec, which is expected to be a websocket
+  # relay.
   setRelayAddr: (relayAddr) ->
     @relayAddr = relayAddr
     log 'Using ' + relayAddr.host + ':' + relayAddr.port + ' as Relay.'



More information about the tor-commits mailing list