ioquatix/fingerprint

View on GitHub

Showing 257 of 503 total issues

File jquery.js has 6902 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v3.5.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in docs/_components/jquery/jquery.js - About 2 wks to fix

    File jquery.slim.js has 5520 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery JavaScript Library v3.5.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector
     * https://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in docs/_components/jquery/jquery.slim.js - About 2 wks to fix

      Function Sizzle has 1510 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      ( function( window ) {
      var i,
          support,
          Expr,
          getText,
      Severity: Major
      Found in docs/_components/jquery/jquery.slim.js - About 1 wk to fix

        Function Sizzle has 1510 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        ( function( window ) {
        var i,
            support,
            Expr,
            getText,
        Severity: Major
        Found in docs/_components/jquery/jquery.js - About 1 wk to fix

          Function setDocument has 262 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          setDocument = Sizzle.setDocument = function( node ) {
              var hasCompare, subWindow,
                  doc = node ? node.ownerDocument || node : preferredDoc;
          
              // Return early if doc is invalid or already selected
          Severity: Major
          Found in docs/_components/jquery/jquery.js - About 1 day to fix

            Function setDocument has 262 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            setDocument = Sizzle.setDocument = function( node ) {
                var hasCompare, subWindow,
                    doc = node ? node.ownerDocument || node : preferredDoc;
            
                // Return early if doc is invalid or already selected
            Severity: Major
            Found in docs/_components/jquery/jquery.slim.js - About 1 day to fix

              Function ajax has 257 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  ajax: function( url, options ) {
              
                      // If url is an object, simulate pre-1.5 signature
                      if ( typeof url === "object" ) {
                          options = url;
              Severity: Major
              Found in docs/_components/jquery/jquery.js - About 1 day to fix

                Method scan has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring.
                Open

                        def scan(recordset)
                            excluded_count = 0
                            processed_count = 0
                            processed_size = 0
                            directory_count = 0
                Severity: Minor
                Found in lib/fingerprint/scanner.rb - About 7 hrs 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 Deferred has 178 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    Deferred: function( func ) {
                        var tuples = [
                
                                // action, add listener, callbacks,
                                // ... .then handlers, argument index, [final state]
                Severity: Major
                Found in docs/_components/jquery/jquery.js - About 7 hrs to fix

                  Function Deferred has 178 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      Deferred: function( func ) {
                          var tuples = [
                  
                                  // action, add listener, callbacks,
                                  // ... .then handlers, argument index, [final state]
                  Severity: Major
                  Found in docs/_components/jquery/jquery.slim.js - About 7 hrs to fix

                    Function defaultPrefilter has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function defaultPrefilter( elem, props, opts ) {
                        var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
                            isBox = "width" in props || "height" in props,
                            anim = this,
                            orig = {},
                    Severity: Major
                    Found in docs/_components/jquery/jquery.js - About 4 hrs to fix

                      Function Callbacks has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      jQuery.Callbacks = function( options ) {
                      
                          // Convert options from String-formatted to Object-formatted if needed
                          // (we check in cache first)
                          options = typeof options === "string" ?
                      Severity: Major
                      Found in docs/_components/jquery/jquery.js - About 4 hrs to fix

                        Function Callbacks has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        jQuery.Callbacks = function( options ) {
                        
                            // Convert options from String-formatted to Object-formatted if needed
                            // (we check in cache first)
                            options = typeof options === "string" ?
                        Severity: Major
                        Found in docs/_components/jquery/jquery.slim.js - About 4 hrs to fix

                          Function then has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                          then: function( onFulfilled, onRejected, onProgress ) {
                                              var maxDepth = 0;
                                              function resolve( depth, deferred, handler, special ) {
                                                  return function() {
                                                      var that = this,
                          Severity: Major
                          Found in docs/_components/jquery/jquery.js - About 4 hrs to fix

                            Function then has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                            then: function( onFulfilled, onRejected, onProgress ) {
                                                var maxDepth = 0;
                                                function resolve( depth, deferred, handler, special ) {
                                                    return function() {
                                                        var that = this,
                            Severity: Major
                            Found in docs/_components/jquery/jquery.slim.js - About 4 hrs to fix

                              Function Animation has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function Animation( elem, properties, options ) {
                                  var result,
                                      stopped,
                                      index = 0,
                                      length = Animation.prefilters.length,
                              Severity: Major
                              Found in docs/_components/jquery/jquery.js - About 3 hrs to fix

                                Function trigger has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    trigger: function( event, data, elem, onlyHandlers ) {
                                
                                        var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
                                            eventPath = [ elem || document ],
                                            type = hasOwn.call( event, "type" ) ? event.type : event,
                                Severity: Major
                                Found in docs/_components/jquery/jquery.js - About 3 hrs to fix

                                  Function trigger has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      trigger: function( event, data, elem, onlyHandlers ) {
                                  
                                          var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
                                              eventPath = [ elem || document ],
                                              type = hasOwn.call( event, "type" ) ? event.type : event,
                                  Severity: Major
                                  Found in docs/_components/jquery/jquery.slim.js - About 3 hrs to fix

                                    Method call has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                                def call
                                                    @options[:output] = @parent.output
                                                    
                                                    @duplicates_recordset = RecordSet.new
                                                    results = RecordSetPrinter.new(duplicates_recordset, @options[:output])
                                    Severity: Minor
                                    Found in lib/fingerprint/command/duplicates.rb - About 3 hrs 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

                                    Method check has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                            def check(&block)
                                                # For every file in the src, we check that it exists
                                                # in the destination:
                                                total_count = @master.records.count
                                                processed_size = 0
                                    Severity: Minor
                                    Found in lib/fingerprint/checker.rb - About 3 hrs 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

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language