ThibaultMontaufray/Droid-Image

View on GitHub

Showing 429 of 903 total issues

Avoid deeply nested control flow statements.
Open

                    if ( !selector ) {
                        push.apply( results, seed );
                        return results;
                    }
Severity: Major
Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        for ( conv2 in converters ) {
    
                            // If conv2 outputs current
                            tmp = conv2.split( " " );
                            if ( tmp[ 1 ] === current ) {
    Severity: Major
    Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if ( matches[ sel ] === undefined ) {
                                  matches[ sel ] = handleObj.needsContext ?
                                      jQuery( sel, this ).index( cur ) > -1 :
                                      jQuery.find( sel, this, null, [ cur ] ).length;
                              }
      Severity: Major
      Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if ( (elem = matcherOut[i]) ) {
                                    // Restore matcherIn since elem is not yet a final match
                                    temp.push( (matcherIn[i] = elem) );
                                }
        Severity: Major
        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if ( Expr.relative[ tokens[j].type ] ) {
                                  break;
                              }
          Severity: Major
          Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 45 mins to fix

            Method SetContrast has a Cognitive Complexity of 23 (exceeds 20 allowed). Consider refactoring.
            Open

                    public void SetContrast(double contrast)
                    {
                        Bitmap bmap = new Bitmap(_currentBitmap.Width, _currentBitmap.Height);
                        if (contrast < -100) contrast = -100;
                        if (contrast > 100) contrast = 100;
            Severity: Minor
            Found in Project/Droid.Image/Controler/ImageHandler.cs - About 45 mins 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

            Avoid deeply nested control flow statements.
            Open

                                if ( conv && s.throws ) {
                                    response = conv( response );
                                } else {
                                    try {
                                        response = conv( response );
            Severity: Major
            Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 45 mins to fix

              Method InsertShape has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      public void InsertShape(string shapeType, int xPosition, int yPosition, int width, int height, string colorName)
              Severity: Minor
              Found in Project/Droid.Image/Controler/ImageHandler.cs - About 45 mins to fix

                Consider simplifying this complex logical expression.
                Open

                            if ( matcher[ expando ] ) {
                                // Find the next relative operator (if any) for proper handling
                                j = ++i;
                                for ( ; j < len; j++ ) {
                                    if ( Expr.relative[ tokens[j].type ] ) {
                Severity: Major
                Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if ( s.crossDomain == null ) {
                              parts = rurl.exec( s.url.toLowerCase() );
                              s.crossDomain = !!( parts &&
                                  ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                                      ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
                  Severity: Major
                  Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ( delegateCount && cur.nodeType &&
                                ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
                    
                                for ( ; cur !== this; cur = cur.parentNode || this ) {
                    
                    
                    Severity: Major
                    Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                          if ( support.matchesSelector && documentIsHTML &&
                              ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                              ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                      
                              try {
                      Severity: Major
                      Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if ( matcher[ expando ] ) {
                                        // Find the next relative operator (if any) for proper handling
                                        j = ++i;
                                        for ( ; j < len; j++ ) {
                                            if ( Expr.relative[ tokens[j].type ] ) {
                        Severity: Major
                        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                      if ( matcher[ expando ] ) {
                                          // Find the next relative operator (if any) for proper handling
                                          j = ++i;
                                          for ( ; j < len; j++ ) {
                                              if ( Expr.relative[ tokens[j].type ] ) {
                          Severity: Major
                          Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if ( delegateCount && cur.nodeType &&
                                        ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
                            
                                        for ( ; cur !== this; cur = cur.parentNode || this ) {
                            
                            
                            Severity: Major
                            Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 40 mins to fix

                              Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              function condense( unmatched, map, filter, context, xml ) {
                              Severity: Minor
                              Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 35 mins to fix

                                Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                function Tween( elem, options, prop, end, easing ) {
                                Severity: Minor
                                Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 35 mins to fix

                                  Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          superMatcher = function( seed, context, xml, results, outermost ) {
                                  Severity: Minor
                                  Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 35 mins to fix

                                    Function on has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                    Severity: Minor
                                    Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 35 mins to fix

                                      Function augmentWidthOrHeight has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
                                      Severity: Minor
                                      Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 35 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language