ThibaultMontaufray/Droid-Image

View on GitHub

Showing 429 of 903 total issues

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

/*!
 * jQuery JavaScript Library v3.0.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 2 wks to fix

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

    /*!
     * jQuery JavaScript Library v2.1.1
     * http://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 2 wks to fix

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

      /*!
       * jQuery JavaScript Library v3.0.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector,-deprecated
       * https://jquery.com/
       *
       * Includes Sizzle.js
      Severity: Major
      Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 2 wks to fix

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

        (function( window ) {
        
        var i,
            support,
            Expr,
        Severity: Major
        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 1 wk to fix

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

          (function( window ) {
          
          var i,
              support,
              Expr,
          Severity: Major
          Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 1 wk to fix

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

            (function( window ) {
            
            var i,
                support,
                Expr,
            Severity: Major
            Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 6 days to fix

              File Interface_image.cs has 2090 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              using System;
              using System.IO;
              using System.Drawing.Imaging;
              using System.Drawing.Drawing2D;
              using System.Collections.Generic;
              Severity: Major
              Found in Project/Droid.Image.UI/Interface_image.cs - About 5 days to fix

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

                intellisense.annotate(jQuery.fn, {
                  'add': function() {
                    /// <signature>
                    ///   <summary>Add elements to the set of matched elements.</summary>
                    ///   <param name="selector" type="String">A string representing a selector expression to find additional elements to add to the set of matched elements.</param>
                Severity: Major
                Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.intellisense.js - About 3 days to fix

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

                  intellisense.annotate(jQuery.fn, {
                    'add': function() {
                      /// <signature>
                      ///   <summary>Add elements to the set of matched elements.</summary>
                      ///   <param name="selector" type="String">A string representing a selector expression to find additional elements to add to the set of matched elements.</param>
                  Severity: Major
                  Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.intellisense.js - About 3 days to fix

                    File Interface_image.cs has 1446 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    using System;
                    using System.IO;
                    using System.Drawing.Imaging;
                    using System.Drawing.Drawing2D;
                    using System.Collections.Generic;
                    Severity: Major
                    Found in Project/Droid.Image/Controler/Interface_image.cs - About 3 days to fix

                      Class Interface_image has 139 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                          public class Interface_image : GPInterface
                          {
                              #region Attributes
                              public static string WORKINGDIRECTORY = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Servodroid\Droid-Image";
                              public static Color THEME_COLOR = Color.DarkOrange;
                      Severity: Major
                      Found in Project/Droid.Image.UI/Interface_image.cs - About 2 days to fix

                        File ToolStripMenuIMG.cs has 879 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        using System;
                        using System.Windows.Forms;
                        using System.Collections.Generic;
                        using Tools.Utilities;
                        using System.Drawing;
                        Severity: Major
                        Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 2 days to fix

                          Class Interface_image has 92 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                              public class Interface_image : GPInterface
                              {
                                  #region Attributes
                                  public static string WORKINGDIRECTORY = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Servodroid\Droid-Image";
                                  public static Color THEME_COLOR = Color.DarkOrange;
                          Severity: Major
                          Found in Project/Droid.Image/Controler/Interface_image.cs - About 1 day to fix

                            Method KuwaharaBlur has a Cognitive Complexity of 99 (exceeds 20 allowed). Consider refactoring.
                            Open

                                    public static Bitmap KuwaharaBlur(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 1 day 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 KuwaharaBlur has a Cognitive Complexity of 99 (exceeds 20 allowed). Consider refactoring.
                            Open

                                    public static Bitmap KuwaharaBlur(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 1 day 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

                            File jquery-2.1.1.intellisense.js has 614 lines of code (exceeds 250 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 1 day to fix

                              File jquery-3.0.0.intellisense.js has 614 lines of code (exceeds 250 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 1 day to fix

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

                                  File ToolStripMenuIMG.cs has 578 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  using System;
                                  using System.Diagnostics.SymbolStore;
                                  using System.Runtime.InteropServices;
                                  using System.Windows.Forms;
                                  using System.Threading;
                                  Severity: Major
                                  Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs - About 1 day to fix

                                    Function ajax has 240 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 Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language