onesupercoder/rack-livereload

View on GitHub
js/web_socket.js

Summary

Maintainability
A
3 hrs
Test Coverage

File web_socket.js has 251 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// License: New BSD License
// Reference: http://dev.w3.org/html5/websockets/
// Reference: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10

Severity: Minor
Found in js/web_socket.js - About 2 hrs to fix

    Function __initialize has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      WebSocket.__initialize = function() {
        if (WebSocket.__flash) return;
        
        if (WebSocket.__swfLocation) {
          // For backword compatibility.
    Severity: Minor
    Found in js/web_socket.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status