codefirst/AsakusaSatellite

View on GitHub

Showing 209 of 252 total issues

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

    val: function( value ) {
        var ret, hooks, isFunction,
            elem = this[0];

        if ( !arguments.length ) {
Severity: Minor
Found in app/assets/javascripts/jquery.js - About 1 hr to fix

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

        stop: function( type, clearQueue, gotoEnd ) {
            var stopQueue = function( hooks ) {
                var stop = hooks.stop;
                delete hooks.stop;
                stop( gotoEnd );
    Severity: Minor
    Found in app/assets/javascripts/jquery.js - About 1 hr to fix

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

      jQuery.extend = jQuery.fn.extend = function() {
          var src, copyIsArray, copy, name, options, clone,
              target = arguments[0] || {},
              i = 1,
              length = arguments.length,
      Severity: Minor
      Found in app/assets/javascripts/jquery.js - About 1 hr to fix

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

            on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                var type, origFn;
        
                // Types can be a map of types/handlers
                if ( typeof types === "object" ) {
        Severity: Minor
        Found in app/assets/javascripts/jquery.js - About 1 hr to fix

          Method load_dirs has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
          Open

                def self.load_dirs(dirs)
                  $: << "#{File.dirname(__FILE__)}/../../.."
                  dirs.each do |dir|
                    next unless File.directory?(dir)
          
          
          Severity: Minor
          Found in lib/asakusa_satellite/filter/loader.rb - About 1 hr to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

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

            _require_scripts: function(scripts, callback) {
          
              var scripts_count = 0;
              var handle_script_loaded;
          
          
          Severity: Minor
          Found in public/socky/v0.5.0/socky.js - About 1 hr to fix

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

                each: function( obj, callback, args ) {
                    var value,
                        i = 0,
                        length = obj.length,
                        isArray = isArraylike( obj );
            Severity: Minor
            Found in app/assets/javascripts/jquery.js - About 1 hr to fix

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

                  function desktopNotify(options) {
                      var defaults = {
                          picture : "",
                          title : "",
                          text : "",

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

                function showHide( elements, show ) {
                    var display, elem, hidden,
                        values = [],
                        index = 0,
                        length = elements.length;
                Severity: Minor
                Found in app/assets/javascripts/jquery.js - About 1 hr to fix

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

                  function ajaxHandleResponses( s, jqXHR, responses ) {
                      var firstDataType, ct, finalDataType, type,
                          contents = s.contents,
                          dataTypes = s.dataTypes;
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/jquery.js - About 1 hr to fix

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

                    function done() {
                        config.autorun = true;
                    
                        // Log the last module results
                        if ( config.currentModule ) {
                    Severity: Minor
                    Found in qunit/lib/qunit/qunit.js - About 1 hr to fix

                      Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          when: function( subordinate /* , ..., subordinateN */ ) {
                              var i = 0,
                                  resolveValues = core_slice.call( arguments ),
                                  length = resolveValues.length,
                      
                      
                      Severity: Minor
                      Found in app/assets/javascripts/jquery.js - About 1 hr to fix

                        Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                var i = 0,
                                    length = elems.length,
                                    bulk = key == null;
                        
                        
                        Severity: Minor
                        Found in app/assets/javascripts/jquery.js - About 1 hr to fix

                          Function clone has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                  var destElements, node, clone, i, srcElements,
                                      inPage = jQuery.contains( elem.ownerDocument, elem );
                          
                                  if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
                          Severity: Minor
                          Found in app/assets/javascripts/jquery.js - About 1 hr to fix

                            Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                dispatch: function( event ) {
                            
                                    // Make a writable jQuery.Event from the native event object
                                    event = jQuery.event.fix( event );
                            
                            
                            Severity: Minor
                            Found in app/assets/javascripts/jquery.js - About 1 hr to fix

                              Function setup has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  setup: function() {
                                      if (this.module != config.previousModule) {
                                          if ( config.previousModule ) {
                                              QUnit.moduleDone( {
                                                  name: config.previousModule,
                              Severity: Minor
                              Found in qunit/lib/qunit/qunit.js - About 1 hr to fix

                                Method process has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    def process(message, room)
                                      all_process ||= @filter_config.filters.map{|c|
                                        @plugins.find{|p|
                                          p.class.name.underscore.split('/')[-1] == c['name']
                                        }
                                Severity: Minor
                                Found in lib/asakusa_satellite/filter.rb - About 1 hr to fix

                                  Function style has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      style: function( elem, name, value, extra ) {
                                          // Don't set styles on text and comment nodes
                                          if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                              return;
                                          }
                                  Severity: Minor
                                  Found in app/assets/javascripts/jquery.js - About 1 hr to fix

                                    Function parse has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            JSON.parse = function (text, reviver) {
                                    
                                    // The parse method takes a text and an optional reviver function, and returns
                                    // a JavaScript value if the text is a valid JSON text.
                                    
                                    
                                    Severity: Minor
                                    Found in public/socky/v0.5.0/assets/json2.js - About 1 hr to fix

                                      Function cleanData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          cleanData: function( elems, /* internal */ acceptData ) {
                                              var elem, type, id, data,
                                                  i = 0,
                                                  internalKey = jQuery.expando,
                                                  cache = jQuery.cache,
                                      Severity: Minor
                                      Found in app/assets/javascripts/jquery.js - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language