metamaps/metamaps

View on GitHub
frontend/src/Metamaps/Realtime/index.js

Summary

Maintainability
C
1 day
Test Coverage

File index.js has 392 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* global $ */

import SimpleWebRTC from 'simplewebrtc'
import SocketIoConnection from 'simplewebrtc/socketioconnection'

Severity: Minor
Found in frontend/src/Metamaps/Realtime/index.js - About 5 hrs to fix

Function init has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  init: function(serverData) {
    var self = Realtime

    self.addJuntoListeners()

Severity: Major
Found in frontend/src/Metamaps/Realtime/index.js - About 2 hrs to fix

Function positionVideos has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  positionVideos: function() {
    var self = Realtime
    var videoIds = Object.keys(self.room.videos)
    // var numOfVideos = videoIds.length
    // var numOfVideosToPosition = _.filter(videoIds, function(id) {
Severity: Minor
Found in frontend/src/Metamaps/Realtime/index.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status