MiniDigger/Hangar

View on GitHub
ore/public/javascripts/channelManage.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function initChannelManager has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function initChannelManager(toggle, channelName, channelHex, title, call, method, submit, nonReviewed) {
    $(toggle).off('click'); // Unbind previous click handlers
    $(toggle).click(function() {
        var modal = getModal();
        var preview = modal.find('.preview');
Severity: Minor
Found in ore/public/javascripts/channelManage.js - About 1 hr to fix

    Function initColorPicker has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function initColorPicker() {
        var modal = getModal();
        // Initialize popover to stay opened when hovered over
        modal.find(".color-picker").popover({
            html: true,
    Severity: Minor
    Found in ore/public/javascripts/channelManage.js - About 1 hr to fix

      Function initChannelManager has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function initChannelManager(toggle, channelName, channelHex, title, call, method, submit, nonReviewed) {
      Severity: Major
      Found in ore/public/javascripts/channelManage.js - About 1 hr to fix

        Function onCustomSubmit has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        var onCustomSubmit = function(toggle, channelName, channelHex, title, submit, nonReviewed) {
        Severity: Minor
        Found in ore/public/javascripts/channelManage.js - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status