ThibaultMontaufray/Droid-Image

View on GitHub

Showing 429 of 903 total issues

Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function on( elem, types, selector, data, fn, one ) {
    var origFn, type;

    // Types can be a map of types/handlers
    if ( typeof types === "object" ) {
Severity: Minor
Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 1 hr to fix

    Method SetColorFilter has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public void SetColorFilter(ColorFilterTypes colorFilterType)
            {
                Bitmap bmap = new Bitmap(_currentBitmap.Width, _currentBitmap.Height);
                Color c;
                for (int i = 0; i < _currentBitmap.Width; i++)
    Severity: Minor
    Found in Project/Droid.Image/Controler/ImageHandler.cs - About 1 hr to fix

      Function addCombinator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function addCombinator( matcher, combinator, base ) {
          var dir = combinator.dir,
              checkNonElements = base && dir === "parentNode",
              doneName = done++;
      
      
      Severity: Minor
      Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 hr to fix

        Function access has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
            var i = 0,
                len = elems.length,
                bulk = key == null;
        
        
        Severity: Minor
        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 1 hr to fix

          Function toggleClass has 39 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-3.0.0.slim.js - About 1 hr to fix

            Function toggleClass has 39 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-3.0.0.js - About 1 hr to fix

              Function access has 39 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                  var i = 0,
                      len = elems.length,
                      bulk = key == null;
              
              
              Severity: Minor
              Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 1 hr to fix

                Method SwitchMode has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        public void SwitchMode()
                        {
                            _modeView.Image = Tools.Utilities.Resources.ResourceIconSet32Default.shape_square;
                            _modeView.SmallImage = Tools.Utilities.Resources.ResourceIconSet16Default.shape_square;
                            _modeEdition.Image = Tools.Utilities.Resources.ResourceIconSet32Default.shape_square;
                Severity: Minor
                Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 1 hr to fix

                  Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      each: function( obj, callback, args ) {
                          var value,
                              i = 0,
                              length = obj.length,
                              isArray = isArraylike( obj );
                  Severity: Minor
                  Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 hr to fix

                    Function dispatch has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        dispatch: function( nativeEvent ) {
                    
                            // Make a writable jQuery.Event from the native event object
                            var event = jQuery.event.fix( nativeEvent );
                    
                    
                    Severity: Minor
                    Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.slim.js - About 1 hr to fix

                      Function dispatch has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          dispatch: function( nativeEvent ) {
                      
                              // Make a writable jQuery.Event from the native event object
                              var event = jQuery.event.fix( nativeEvent );
                      
                      
                      Severity: Minor
                      Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 1 hr to fix

                        Method BuildToolsSize has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                private void BuildToolsSize()
                                {
                                    _ts_resize = new RibbonButton("Resize");
                                    _ts_resize.Click += new EventHandler(tsb_Click);
                                    _ts_resize.SmallImage = Tools.Utilities.Resources.ResourceIconSet16Default.layer_to_image_size;
                        Severity: Minor
                        Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 1 hr to fix

                          Method BuildToolsReturn has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  private void BuildToolsReturn()
                                  {
                                      _ts_returnH = new RibbonButton("Return horizontal");
                                      _ts_returnH.MinSizeMode = RibbonElementSizeMode.Compact;
                                      _ts_returnH.Style = RibbonButtonStyle.Normal;
                          Severity: Minor
                          Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 1 hr to fix

                            Method BhattacharyyaDifference has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    public static float BhattacharyyaDifference(this System.Drawing.Bitmap img1, System.Drawing.Bitmap img2)
                                    {
                                        byte[,] img1GrayscaleValues = img1.GetGrayScaleValues();
                                        byte[,] img2GrayscaleValues = img2.GetGrayScaleValues();
                            
                            
                            Severity: Minor
                            Found in Project/Droid.Image.Comparison/ExtensionMethods.cs - About 1 hr to fix

                              Method BuildPanelView has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      private void BuildPanelView()
                                      {          
                                          _ts_tool_addImage = new RibbonButton("Insert image");
                                          _ts_tool_addImage.Click += new EventHandler(tsb_Click);
                                          _ts_tool_addImage.SmallImage = Tools.Utilities.Resources.ResourceIconSet16Default.insert_object;
                              Severity: Minor
                              Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 1 hr to fix

                                Method SetContrast has 38 lines of code (exceeds 25 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 1 hr to fix

                                  Method BuildPanelNavigation has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          private void BuildPanelNavigation()
                                          {
                                              _ts_fullscreen = new RibbonButton("Full screen");
                                              _ts_fullscreen.ToolTip = "Full screen";
                                              _ts_fullscreen.Click += new EventHandler(tsb_Click);
                                  Severity: Minor
                                  Found in Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs - About 1 hr to fix

                                    Method ResizeAndDisplayImage has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            private void ResizeAndDisplayImage()
                                            {
                                                // Set the backcolor of the pictureboxes
                                                _picturebox.BackColor = _backColor;
                                                //pictureboxmini.BackColor = BackColor;
                                    Severity: Minor
                                    Found in Project/Droid.Image.UI/Interface_image.cs - About 1 hr to fix

                                      Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function ajaxHandleResponses( s, jqXHR, responses ) {
                                      
                                          var ct, type, finalDataType, firstDataType,
                                              contents = s.contents,
                                              dataTypes = s.dataTypes;
                                      Severity: Minor
                                      Found in Project/Droid.Image.UI/Scripts/jquery-2.1.1.js - About 1 hr to fix

                                        Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function ajaxHandleResponses( s, jqXHR, responses ) {
                                        
                                            var ct, type, finalDataType, firstDataType,
                                                contents = s.contents,
                                                dataTypes = s.dataTypes;
                                        Severity: Minor
                                        Found in Project/Droid.Image.UI/Scripts/jquery-3.0.0.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language