mena-devs/tilde

View on GitHub

Showing 1,457 of 1,457 total issues

File timepicker.js has 8547 lines of code (exceeds 250 allowed). Consider refactoring.
Open

//! moment.js
//! version : 2.9.0
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
Severity: Major
Found in app/assets/javascripts/components/timepicker.js - About 3 wks to fix

    File functions.js has 3165 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    var $ = jQuery.noConflict();
     
    $.fn.inlineStyle = function (prop) {
    return this.prop("style")[$.camelCase(prop)];
    };
    Severity: Major
    Found in app/assets/javascripts/functions.js - About 1 wk to fix

      File typehead.js has 2441 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
      * typeahead.js 0.11.1
      * https://github.com/twitter/typeahead.js
      * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
      */
      Severity: Major
      Found in app/assets/javascripts/components/typehead.js - About 6 days to fix

        File moment.js has 2359 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        //! moment.js
        //! version : 2.10.6
        //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
        //! license : MIT
        //! momentjs.com
        Severity: Major
        Found in app/assets/javascripts/components/moment.js - About 6 days to fix

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          var _ = function() {
          "use strict";
          return {
          isMsie: function() {
          return /(msie|trident)/i.test(navigator.userAgent) ? navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2] : false;
          Severity: Major
          Found in app/assets/javascripts/components/typehead.js and 1 other location - About 6 days to fix
          app/assets/javascripts/components/typehead.js on lines 931..1066

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          var _ = function() {
          "use strict";
          return {
          isMsie: function() {
          return /(msie|trident)/i.test(navigator.userAgent) ? navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2] : false;
          Severity: Major
          Found in app/assets/javascripts/components/typehead.js and 1 other location - About 6 days to fix
          app/assets/javascripts/components/typehead.js on lines 18..153

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          (function (factory) {
          factory(moment);
          }(function (moment) {
          function translate(number, withoutSuffix, key) {
          var result = number + ' ';
          Severity: Major
          Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 4 days to fix
          app/assets/javascripts/components/timepicker.js on lines 4038..4166

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          (function (factory) {
          factory(moment);
          }(function (moment) {
          function translate(number, withoutSuffix, key) {
          var result = number + ' ';
          Severity: Major
          Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 4 days to fix
          app/assets/javascripts/components/timepicker.js on lines 5907..6035

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          (function (factory) {
          factory(moment);
          }(function (moment) {
          var translator = {
          words: { //Different grammatical cases
          Severity: Major
          Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 3 days to fix
          app/assets/javascripts/components/timepicker.js on lines 8594..8690

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          (function (factory) {
          factory(moment);
          }(function (moment) {
          var translator = {
          words: { //Different grammatical cases
          Severity: Major
          Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 3 days to fix
          app/assets/javascripts/components/timepicker.js on lines 8695..8791

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          (function (factory) {
          factory(moment);
          }(function (moment) {
          return moment.defineLocale('bg', {
          months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
          Severity: Major
          Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
          app/assets/javascripts/components/timepicker.js on lines 7103..7180

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          (function (factory) {
          factory(moment);
          }(function (moment) {
          return moment.defineLocale('mk', {
          months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
          Severity: Major
          Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
          app/assets/javascripts/components/timepicker.js on lines 3645..3722

          File daterangepicker.js has 1124 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
          * @version: 2.1.17
          * @author: Dan Grossman http://www.dangrossman.info/
          * @copyright: Copyright (c) 2012-2015 Dan Grossman. All rights reserved.
          * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
          Severity: Major
          Found in app/assets/javascripts/components/daterangepicker.js - About 2 days to fix

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            return moment.defineLocale('sk', {
            months : months,
            monthsShort : monthsShort,
            monthsParse : (function (months, monthsShort) {
            var i, _monthsParse = [];
            Severity: Major
            Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
            app/assets/javascripts/components/timepicker.js on lines 4305..4387

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            return moment.defineLocale('cs', {
            months : months,
            monthsShort : monthsShort,
            monthsParse : (function (months, monthsShort) {
            var i, _monthsParse = [];
            Severity: Major
            Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
            app/assets/javascripts/components/timepicker.js on lines 8305..8387

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            (function (factory) {
            factory(moment);
            }(function (moment) {
            return moment.defineLocale('id', {
            months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
            Severity: Major
            Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
            app/assets/javascripts/components/timepicker.js on lines 7362..7431

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            (function (factory) {
            factory(moment);
            }(function (moment) {
            return moment.defineLocale('ms-my', {
            months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
            Severity: Major
            Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
            app/assets/javascripts/components/timepicker.js on lines 6258..6327

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            (function (factory) {
            factory(moment);
            }(function (moment) {
            function processRelativeTime(number, withoutSuffix, key, isFuture) {
            var format = {
            Severity: Major
            Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
            app/assets/javascripts/components/timepicker.js on lines 4642..4703

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            (function (factory) {
            factory(moment);
            }(function (moment) {
            function processRelativeTime(number, withoutSuffix, key, isFuture) {
            var format = {
            Severity: Major
            Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
            app/assets/javascripts/components/timepicker.js on lines 4575..4636

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            function dayOfYearFromWeekInfo(config) {
            var w, weekYear, week, weekday, dow, doy, temp;
             
            w = config._w;
            if (w.GG != null || w.W != null || w.E != null) {
            Severity: Major
            Found in app/assets/javascripts/components/timepicker.js and 1 other location - About 2 days to fix
            app/assets/javascripts/components/moment.js on lines 1117..1157
            Severity
            Category
            Status
            Source
            Language