ThibaultMontaufray/Droid-Image

View on GitHub

Showing 429 of 903 total issues

Function setDocument has 225 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 Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 1 day to fix

    Function setDocument has 225 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 Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 1 day to fix

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

      setDocument = Sizzle.setDocument = function( node ) {
          var hasCompare,
              doc = node ? node.ownerDocument || node : preferredDoc,
              parent = doc.defaultView;
      
      
      Severity: Major
      Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 day to fix

        `` has 52 functions (exceeds 20 allowed). Consider refactoring.
        Open

        intellisense.annotate(jQuery, {
          'ajax': function() {
            /// <signature>
            ///   <summary>Perform an asynchronous HTTP (Ajax) request.</summary>
            ///   <param name="url" type="String">A string containing the URL to which the request is sent.</param>
        Severity: Major
        Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.intellisense.js - About 7 hrs to fix

          `` has 52 functions (exceeds 20 allowed). Consider refactoring.
          Open

          intellisense.annotate(jQuery, {
            'ajax': function() {
              /// <signature>
              ///   <summary>Perform an asynchronous HTTP (Ajax) request.</summary>
              ///   <param name="url" type="String">A string containing the URL to which the request is sent.</param>
          Severity: Major
          Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.intellisense.js - About 7 hrs to fix

            Function Deferred has 176 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 Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 7 hrs to fix

              Function Deferred has 176 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 Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 7 hrs to fix

                File ImageHandler.cs has 411 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                using System;
                using System.Collections.Generic;
                using System.Text;
                using System.Drawing;
                using System.Drawing.Drawing2D;
                Severity: Minor
                Found in Project/Droid.Image/Controler/ImageHandler.cs - About 5 hrs to fix

                  Method Dilate has a Cognitive Complexity of 52 (exceeds 20 allowed). Consider refactoring.
                  Open

                          public static Bitmap Dilate(Bitmap img, int Size)
                          {
                              Bitmap TempBitmap = new Bitmap(img);
                              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 5 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 Dilate has a Cognitive Complexity of 52 (exceeds 20 allowed). Consider refactoring.
                  Open

                          public static Bitmap Dilate(Bitmap img, int Size)
                          {
                              Bitmap TempBitmap = new Bitmap(img);
                              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 5 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 GoAction has 137 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          public override void GoAction(string action)
                          {
                              if (!string.IsNullOrEmpty(action))
                              {
                                  switch (action.ToLower())
                  Severity: Major
                  Found in Project/Droid.Image.UI/Interface_image.cs - About 5 hrs to fix

                    Function Callbacks has 128 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 Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 5 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if ( event.pageX == null && original.clientX != null ) {
                                      eventDoc = event.target.ownerDocument || document;
                                      doc = eventDoc.documentElement;
                                      body = eventDoc.body;
                      
                      
                      Severity: Critical
                      Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 5 hrs to fix

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

                        function defaultPrefilter( elem, props, opts ) {
                            /* jshint validthis: true */
                            var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
                                isBox = "width" in props || "height" in props,
                                anim = this,
                        Severity: Major
                        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.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 Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.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 Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 4 hrs to fix

                              Class ToolStripMenuIMG has 37 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                                  public class ToolStripMenuIMG : ToolStripMenuManager
                                  {
                                      #region Attributes
                                      private GUI gui;
                              
                              
                              Severity: Minor
                              Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs - About 4 hrs to fix

                                Method DrawSelection has a Cognitive Complexity of 46 (exceeds 20 allowed). Consider refactoring.
                                Open

                                        private void DrawSelection()
                                        {
                                            if (_panelSelection != null)
                                            {
                                                bool changed = false;
                                Severity: Minor
                                Found in Project/Droid.Image.UI/Interface_image.cs - About 4 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 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 Project/Droid.Image.UI/Scripts/jquery-3.0.0.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 Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 4 hrs to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language