ThibaultMontaufray/Droid-Image

View on GitHub

Showing 429 of 903 total issues

Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        superMatcher = function( seed, context, xml, results, outermost ) {
            var elem, j, matcher,
                matchedCount = 0,
                i = "0",
                unmatched = seed && [],
Severity: Major
Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

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

        Deferred: function( func ) {
            var tuples = [
                    // action, add listener, listener list, final state
                    [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                    [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
    Severity: Major
    Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

      Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              "CHILD": function( type, what, argument, first, last ) {
                  var simple = type.slice( 0, 3 ) !== "nth",
                      forward = type.slice( -4 ) !== "last",
                      ofType = what === "of-type";
      
      
      Severity: Major
      Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

        Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function ajaxConvert( s, response, jqXHR, isSuccess ) {
            var conv2, current, conv, tmp, prev,
                converters = {},
        
                // Work with a copy of dataTypes in case we need to modify it for conversion
        Severity: Major
        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 2 hrs to fix

          Consider simplifying this complex logical expression.
          Open

                                  if ( forward && useCache ) {
                                      // Seek `elem` from a previously-cached index
                                      outerCache = parent[ expando ] || (parent[ expando ] = {});
                                      cache = outerCache[ type ] || [];
                                      nodeIndex = cache[0] === dirruns && cache[1];
          Severity: Critical
          Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

            Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                domManip: function( args, callback ) {
            
                    // Flatten any nested arrays
                    args = concat.apply( [], args );
            
            
            Severity: Major
            Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

              Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function domManip( collection, args, callback, ignored ) {
              
                  // Flatten any nested arrays
                  args = concat.apply( [], args );
              
              
              Severity: Major
              Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 2 hrs to fix

                Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function domManip( collection, args, callback, ignored ) {
                
                    // Flatten any nested arrays
                    args = concat.apply( [], args );
                
                
                Severity: Major
                Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 2 hrs to fix

                  Function init has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      init = jQuery.fn.init = function( selector, context ) {
                          var match, elem;
                  
                          // HANDLE: $(""), $(null), $(undefined), $(false)
                          if ( !selector ) {
                  Severity: Major
                  Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

                    Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function ajaxConvert( s, response, jqXHR, isSuccess ) {
                        var conv2, current, conv, tmp, prev,
                            converters = {},
                            // Work with a copy of dataTypes in case we need to modify it for conversion
                            dataTypes = s.dataTypes.slice();
                    Severity: Major
                    Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

                      Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          init = jQuery.fn.init = function( selector, context, root ) {
                              var match, elem;
                      
                              // HANDLE: $(""), $(null), $(undefined), $(false)
                              if ( !selector ) {
                      Severity: Major
                      Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 2 hrs to fix

                        Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            init = jQuery.fn.init = function( selector, context, root ) {
                                var match, elem;
                        
                                // HANDLE: $(""), $(null), $(undefined), $(false)
                                if ( !selector ) {
                        Severity: Major
                        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 2 hrs to fix

                          Function data has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              data: function( key, value ) {
                                  var i, name, data,
                                      elem = this[ 0 ],
                                      attrs = elem && elem.attributes;
                          
                          
                          Severity: Major
                          Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

                            Function send has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        send: function( headers, complete ) {
                                            var i,
                                                xhr = options.xhr(),
                                                id = ++xhrId;
                            
                            
                            Severity: Major
                            Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 hrs to fix

                              Method BuildPanelDrawing has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      private void BuildPanelDrawing()
                                      {
                                          _ts_undo = new RibbonButton("Undo");
                                          _ts_undo.ToolTip = "Undo";
                                          _ts_undo.Click += new EventHandler(tsb_Click);
                              Severity: Major
                              Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 2 hrs to fix

                                Method OnCustomCommand has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        protected override void OnCustomCommand(int command)
                                        {
                                            try
                                            {
                                                _eventLog.WriteEntry("Command code : " + command, EventLogEntryType.SuccessAudit, eventId++);
                                Severity: Major
                                Found in Project/Droid.Image.UI/Service/Service.cs - About 2 hrs to fix

                                  Method MedianFilter has a Cognitive Complexity of 31 (exceeds 20 allowed). Consider refactoring.
                                  Open

                                          public static Bitmap MedianFilter(Bitmap Image, int Size)
                                          {
                                              Bitmap TempBitmap = Image;
                                              Bitmap NewBitmap = new Bitmap(TempBitmap.Width, TempBitmap.Height);
                                              Graphics NewGraphics = Graphics.FromImage(NewBitmap);
                                  Severity: Minor
                                  Found in Project/Droid.Image.UI/Interface_image.cs - About 2 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 MedianFilter has a Cognitive Complexity of 31 (exceeds 20 allowed). Consider refactoring.
                                  Open

                                          public static Bitmap MedianFilter(Bitmap Image, int Size)
                                          {
                                              Bitmap TempBitmap = Image;
                                              Bitmap NewBitmap = new Bitmap(TempBitmap.Width, TempBitmap.Height);
                                              Graphics NewGraphics = Graphics.FromImage(NewBitmap);
                                  Severity: Minor
                                  Found in Project/Droid.Image/Controler/Interface_image.cs - About 2 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 remove has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      remove: function( elem, types, handler, selector, mappedTypes ) {
                                  
                                          var j, origCount, tmp,
                                              events, t, handleObj,
                                              special, handlers, type, namespaces, origType,
                                  Severity: Major
                                  Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 2 hrs to fix

                                    Function remove has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        remove: function( elem, types, handler, selector, mappedTypes ) {
                                    
                                            var j, origCount, tmp,
                                                events, t, handleObj,
                                                special, handlers, type, namespaces, origType,
                                    Severity: Major
                                    Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 2 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language