yoheimuta/mobile-videoplayer.js

View on GitHub
src/controller.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function Controller has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

MVPlayer.Controller = (function() {
    var Controller = {};
    var Util = MVPlayer.Util;

    var _is_appear = false;
Severity: Major
Found in src/controller.js - About 3 hrs to fix

    Function _setupEvents has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function _setupEvents(element, player, loadElement, replayElement, doneElement) {
            (function(didComplete) {
                player.dispatcher.didComplete = function() {
                    didComplete.call(player.dispatcher);
    
    
    Severity: Minor
    Found in src/controller.js - About 1 hr to fix

      Function _setupEvents has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function _setupEvents(element, player, loadElement, replayElement, doneElement) {
      Severity: Minor
      Found in src/controller.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status