ThibaultMontaufray/Droid-Image

View on GitHub

Showing 429 of 903 total issues

Method parsePictureCode has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private async void parsePictureCode()
        {
            try
            {
                ZXing.MultiFormatReader reader = new ZXing.MultiFormatReader();
Severity: Minor
Found in Project/Droid.Image/Controler/Interface_image.cs - About 1 hr to fix

    Method LaunchRecognition has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            private void LaunchRecognition()
            {
                _pictureByte = imageToByteArray(_currentImage);
                List<ParsingPicture.DetectZone> detection = ParsingPicture.ProcessAll(_pictureByte);
                if (detection != null && detection.Count > 0) Console.WriteLine("found");
    Severity: Minor
    Found in Project/Droid.Image.UI/Interface_image.cs - About 1 hr to fix

      Method parsePictureCode has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              private async void parsePictureCode()
              {
                  try
                  {
                      ZXing.MultiFormatReader reader = new ZXing.MultiFormatReader();
      Severity: Minor
      Found in Project/Droid.Image.UI/Interface_image.cs - About 1 hr to fix

        Method GetImage has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public static byte[] GetImage(string url)
                {
                    try
                    {
                        if (!string.IsNullOrEmpty(url))
        Severity: Minor
        Found in Project/Droid.Image/Controler/WebGoogleImage.cs - About 1 hr to fix

          Method LaunchApplyMask has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  private void LaunchApplyMask()
                  {
                      if (_currentImage != null && _mask != null)
                      {
                          Bitmap original = new Bitmap(_currentImage); ;
          Severity: Minor
          Found in Project/Droid.Image.UI/Interface_image.cs - About 1 hr to fix

            Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                attr: function( elem, name, value ) {
                    var hooks, ret,
                        nType = elem.nodeType;
            
                    // don't get/set attributes on text, comment and attribute nodes
            Severity: Minor
            Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 hr to fix

              Function handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  handlers: function( event, handlers ) {
                      var i, matches, sel, handleObj,
                          handlerQueue = [],
                          delegateCount = handlers.delegateCount,
                          cur = event.target;
              Severity: Minor
              Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 hr to fix

                Method AddImage has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        private void AddImage()
                        {
                            try
                            {
                                if (CurrentImage != null)
                Severity: Minor
                Found in Project/Droid.Image/Controler/Interface_image.cs - About 1 hr to fix

                  Method OffsetToImage has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          private static Point OffsetToImage(PictureBox pbox, Point p)
                          {
                              // Calculer les taux d'étirement/compression de l'image 
                              double xRatio = 1;
                              double yRatio = 1;
                  Severity: Minor
                  Found in Project/Droid.Image.UI/Interface_image.cs - About 1 hr to fix

                    Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        toggleClass: function( value, stateVal ) {
                            var type = typeof value;
                    
                            if ( typeof stateVal === "boolean" && type === "string" ) {
                                return stateVal ? this.addClass( value ) : this.removeClass( value );
                    Severity: Minor
                    Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 hr to fix

                      Function attr has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          attr: function( elem, name, value ) {
                              var ret, hooks,
                                  nType = elem.nodeType;
                      
                              // Don't get/set attributes on text, comment and attribute nodes
                      Severity: Minor
                      Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 1 hr to fix

                        Function attr has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            attr: function( elem, name, value ) {
                                var ret, hooks,
                                    nType = elem.nodeType;
                        
                                // Don't get/set attributes on text, comment and attribute nodes
                        Severity: Minor
                        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 1 hr to fix

                          Method BuildPanelParsing has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  private void BuildPanelParsing()
                                  {
                                      _ts_code_qr = new RibbonButton("QR code");
                                      _ts_code_qr.Click += new EventHandler(tsb_Click);
                                      _ts_code_qr.Image = Tools.Utilities.Resources.ResourceIconSet32Default.qrcode;
                          Severity: Minor
                          Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 1 hr to fix

                            Method LaunchRecognition has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    private void LaunchRecognition()
                                    {
                                        _pictureByte = imageToByteArray(_currentImage);
                                        List<ParsingPicture.DetectZone> detection = ParsingPicture.ProcessAll(_pictureByte);
                                        if (detection != null && detection.Count > 0) Console.WriteLine("found");
                            Severity: Minor
                            Found in Project/Droid.Image/Controler/Interface_image.cs - About 1 hr to fix

                              Method tsb_Click has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      private void tsb_Click(object sender, EventArgs e)
                                      {
                                          try
                                          {
                                              if (sender.GetType().Name.Equals("RibbonButton"))
                              Severity: Minor
                              Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 1 hr to fix

                                Method Generate has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        public static Bitmap Generate(int Width, int Height, int MaxRGBValue, int MinRGBValue, float Frequency, float Amplitude, float Persistance, int Octaves, int Seed)
                                Severity: Major
                                Found in Project/Droid.Image/Controler/PerlinNoise.cs - About 1 hr to fix

                                  Method GetValue has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          private static float GetValue(int X, int Y, int Width, int Height, float Frequency, float Amplitude, float Persistance, int Octaves, float[,] Noise)
                                  Severity: Major
                                  Found in Project/Droid.Image/Controler/PerlinNoise.cs - About 1 hr to fix

                                    Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        finish: function( type ) {
                                            if ( type !== false ) {
                                                type = type || "fx";
                                            }
                                            return this.each(function() {
                                    Severity: Minor
                                    Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 hr to fix

                                      Function getWidthOrHeight has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function getWidthOrHeight( elem, name, extra ) {
                                      
                                          // Start with offset property, which is equivalent to the border-box value
                                          var val,
                                              valueIsBorderBox = true,
                                      Severity: Minor
                                      Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 1 hr to fix

                                        Function parseHTML has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        jQuery.parseHTML = function( data, context, keepScripts ) {
                                            if ( typeof data !== "string" ) {
                                                return [];
                                            }
                                            if ( typeof context === "boolean" ) {
                                        Severity: Minor
                                        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language