cyberbit/modation

View on GitHub

Showing 77 of 1,299 total issues

Function getCaretPosition has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getCaretPosition: function() {
            var cal = calculator, self = this, element = self[0], elementOffset = self.offset();

            // IE has easy way to get caret offset position
            if ($.browser.msie && $.browser.version <= 9) {
Severity: Minor
Found in src/js/jquery.caretposition.custom.js - About 1 hr to fix

Function enumerateTrackList has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function enumerateTrackList() {
    var allTracks = [];
    for (var i = 1; i < tracks.length; i++) {
        allTracks = allTracks.concat(tracks[i]);
    }
Severity: Minor
Found in src/js/newoptions.js - About 1 hr to fix

Function refresh_watchlist has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function refresh_watchlist() {
    var email = $('#email').val();
    
    crapi.clone(function(d) {        
        var watchlist = d[email]["watchlist"] || {};
Severity: Minor
Found in src/js/newoptions.js - About 1 hr to fix

Function enumerateTrackList has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function enumerateTrackList() {
    var allTracks = [];
    for (var i = 1; i < tracks.length; i++) {
        allTracks = allTracks.concat(tracks[i]);
    }
Severity: Minor
Found in src/js/options.js - About 1 hr to fix

Function parseWatchlistItem has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function parseWatchlistItem(link, html, type) {
        type = type || watchlistItemType(link);
        
        // Enforce watchlist model
        var updates = global.watchlistModel[type];
Severity: Minor
Found in src/js/eventPage.js - About 1 hr to fix

Function initOptions has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function initOptions() {
        // Clone storage
        crapi.clone("options", function(d) {
            var options = d.options;
            
Severity: Minor
Found in src/js/uioptions.js - About 1 hr to fix

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

function loadOptions() {
    /**
     * This block probably needs to be in eventPage.js
     *
     * Enforcing storage model:
Severity: Minor
Found in src/js/newoptions.js - About 1 hr to fix

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

  Opentip.prototype.reposition = function() {
    var position, stem, _ref,
      _this = this;
    position = this.getPosition();
    if (position == null) {
Severity: Minor
Found in src/js/opentip-jquery.custom.js - About 1 hr to fix

Function initCookies has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function initCookies() {
        var options = localJSON("options");
        
        //console.log("initCookies: %o", JSON.stringify(options));
        
Severity: Minor
Found in src/js/eventPage.js - About 1 hr to fix

Function initLinks has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function initLinks() {
        var $options = $(".options");
        var $showNotifs = $(".show-notifs");
        var $clearNotifs = $(".clear-notifs");
        var $openMessages = $(".open-messages");
Severity: Minor
Found in src/js/newpopup.js - About 1 hr to fix

Function getDataUri has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getDataUri(url, overlayUrl, callback) {
    if (typeof callback == "undefined") {
        callback = overlayUrl;
        overlayUrl = false;
    }
Severity: Minor
Found in src/js/crapi.js - About 1 hr to fix

Function restore_options has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function restore_options() {
    var email = $("#email").val();
    
    crapi.clone(function(d) {
        //Initialize user, if needed
Severity: Minor
Found in src/js/newoptions.js - About 1 hr to fix

Function restore_options has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function restore_options() {
    var email = $("#email").val();
    
    crapi.clone(function(d) {
        //Initialize user, if needed
Severity: Minor
Found in src/js/options.js - About 1 hr to fix

Function findElements has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Opentip.findElements = function() {
  var adapter, content, element, optionName, optionValue, options, _i, _len, _ref, _results;
  adapter = Opentip.adapter;
  _ref = adapter.findAll(document.body, "[data-ot]");
  _results = [];
Severity: Minor
Found in src/js/opentip-jquery.custom.js - About 1 hr to fix

Function getTracks has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getTracks() {
    $(".track").fadeOut(400, function() { $(this).remove(); });
    $("#track-filter, #filter-result").fadeOut();
    $('#tab-tracks aside').fadeOut(400, function() {
        $('#tab-tracks .aside-cover').fadeOut(200);
Severity: Minor
Found in src/js/newoptions.js - About 1 hr to fix

Function getTracks has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getTracks() {
    $(".track").fadeOut(400, function() { $(this).remove(); });
    $("#track-filter, #filter-result").fadeOut();
    $('#tab-tracks aside').fadeOut(400, function() {
        $('#tab-tracks .aside-cover').fadeOut(200);
Severity: Minor
Found in src/js/options.js - About 1 hr to fix

Function _buildElements has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Opentip.prototype._buildElements = function() {
    var headerElement, titleElement;
    this.tooltipElement = this.adapter.create("<div class=\"" + this["class"].opentip + "\"><div class=\"" + this["class"].header + "\"></div><div class=\"" + this["class"].content + "\"></div></div>");
    this.backgroundCanvas = this.adapter.wrap(document.createElement("canvas"));
    this.adapter.css(this.backgroundCanvas, {
Severity: Minor
Found in src/js/opentip-jquery.custom.js - About 1 hr to fix

Function _continue has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                                function _continue(blob) {
                                    //Set up notification
                                    var notif = {
                                        type: "basic",
                                        iconUrl: blob,
Severity: Minor
Found in src/js/eventPage.js - About 1 hr to fix

Function setCss3Style has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Opentip.prototype.setCss3Style = function(element, styles) {
  var prop, value, vendor, vendorProp, _results;
  element = this.adapter.unwrap(element);
  _results = [];
  for (prop in styles) {
Severity: Minor
Found in src/js/opentip-jquery.custom.js - About 1 hr to fix

Function initGroups has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function initGroups() {
        var $groupList = $(".main .group-list");
        var $groupFilter = _factory(".modation-factory", ".modation-group-filter");
        var $filter = $groupFilter.find(".filter");
        
Severity: Minor
Found in src/js/content.js - About 1 hr to fix
Severity
Category
Status
Source
Language