berict/Tapad

View on GitHub
app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java

Summary

Maintainability
F
2 wks
Test Coverage

File AnimateHelper.java has 979 lines of code (exceeds 250 allowed). Consider refactoring.
Open

package com.bedrock.padder.helper;

import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
Severity: Major
Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 2 days to fix

    AnimateHelper has 93 methods (exceeds 20 allowed). Consider refactoring.
    Open

    @TargetApi(14)
    public class AnimateHelper {
        private WindowHelper window = new WindowHelper();
    
        static String TAG = "AnimateHelper";
    Severity: Major
    Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 day to fix

      Method fade has 73 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void fade(final int id, final float startAlpha, final float endAlpha, final int delay, final long duration, String handlerName, Activity activity) {
              final AlphaAnimation fade = new AlphaAnimation(startAlpha, endAlpha);
              final View view = activity.findViewById(id);
              PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
      
      
      Severity: Major
      Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 2 hrs to fix

        Method fadeOut has 48 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public void fadeOut(final int id, final int delay, final long duration, Activity activity) {
                final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                final View view = activity.findViewById(id);
        
                if (view.getVisibility() == View.VISIBLE) {
        Severity: Minor
        Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

          Method fadeOut has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public void fadeOut(final View view, final int delay, final long duration, Activity activity) {
                  final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
          
                  if (view.getVisibility() == View.VISIBLE) {
                      PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
          Severity: Minor
          Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

            Method fadeOut has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public void fadeOut(final int id, final int delay, final long duration, View parentView, Activity activity) {
                    final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                    final View view = parentView.findViewById(id);
                    PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
            
            
            Severity: Minor
            Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

              Method fadeIn has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public void fadeIn(final int id, final int delay, final long duration, String handlerName, View parentView, Activity activity) {
                      final AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);
                      final View view = parentView.findViewById(id);
                      view.setVisibility(View.INVISIBLE);
                      PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
              Severity: Minor
              Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                Method fadeIn has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public void fadeIn(final int id, final int delay, final long duration, String handlerName, Activity activity) {
                        final AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);
                        final View view = activity.findViewById(id);
                        view.setVisibility(View.INVISIBLE);
                        PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                Severity: Minor
                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                  Method fadeIn has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public void fadeIn(final View view, final int delay, final long duration, String handlerName, Activity activity) {
                          final AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);
                          view.setVisibility(View.INVISIBLE);
                          PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                  
                  
                  Severity: Minor
                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                    Method moveXYinDP has 14 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        public void moveXYinDP(View view,
                                               int fromX, int toX,
                                               int durationX, int delayX, TimeInterpolator intX,
                                               int fromY, int toY,
                                               int durationY, int delayY, TimeInterpolator intY,
                    Severity: Major
                    Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                      Method moveXYinDP has 14 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public void moveXYinDP(int view,
                                                 int fromX, int toX,
                                                 int durationX, int delayX, TimeInterpolator intX,
                                                 int fromY, int toY,
                                                 int durationY, int delayY, TimeInterpolator intY,
                      Severity: Major
                      Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                        Method moveXYinPX has 14 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public void moveXYinPX(int view,
                                                   int fromX, int toX,
                                                   int durationX, int delayX, TimeInterpolator intX,
                                                   int fromY, int toY,
                                                   int durationY, int delayY, TimeInterpolator intY,
                        Severity: Major
                        Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                          Method moveXYinPX has 13 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public void moveXYinPX(View view,
                                                     int fromX, int toX,
                                                     int durationX, int delayX, TimeInterpolator intX,
                                                     int fromY, int toY,
                                                     int durationY, int delayY, TimeInterpolator intY,
                          Severity: Major
                          Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                            Method fadeOut has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public void fadeOut(final int id, final int delay, final long duration, Activity activity) {
                                    final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                                    final View view = activity.findViewById(id);
                            
                                    if (view.getVisibility() == View.VISIBLE) {
                            Severity: Minor
                            Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr 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 fadeOut has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public void fadeOut(final View view, final int delay, final long duration, Activity activity) {
                                    final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                            
                                    if (view.getVisibility() == View.VISIBLE) {
                                        PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                            Severity: Minor
                            Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr 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 fadeOutInvisible has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public void fadeOutInvisible(final int id, final int delay, final long duration, View parentView, Activity activity) {
                                    final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                                    final View view = parentView.findViewById(id);
                                    PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                            
                            
                            Severity: Minor
                            Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                              Method fadeOutInvisible has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public void fadeOutInvisible(final int id, final int delay, final long duration, Activity activity) {
                                      final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                                      final View view = activity.findViewById(id);
                                      PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                              
                              
                              Severity: Minor
                              Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                                Method circularRevealAnimator has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public Animator circularRevealAnimator(int view,
                                                                           int centerX, int centerY,
                                                                           int startRad, int endRad, TimeInterpolator interpolator,
                                                                           int duration, int delay, Activity activity) {
                                
                                
                                Severity: Minor
                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                                  Method circularRevealInPx has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public void circularRevealInPx(int view,
                                                                     int centerX, int centerY,
                                                                     int startRad, int endRad, TimeInterpolator interpolator,
                                                                     int duration, int delay, Activity activity) {
                                  
                                  
                                  Severity: Minor
                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                                    Method circularRevealinDP has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public void circularRevealinDP(int view,
                                                                       int centerX, int centerY,
                                                                       int startRad, int endRad, TimeInterpolator interpolator,
                                                                       int duration, int delay, Activity activity) {
                                    
                                    
                                    Severity: Minor
                                    Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

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

                                          public void scaleOut(final int id, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                              final View view = activity.findViewById(id);
                                              float x = touchX / window.getWindowWidthPx(activity);
                                              float y = touchY / window.getWindowHeightPx(activity);
                                              final ScaleAnimation scaleOut = new ScaleAnimation(1, 0, 1, 0, Animation.ABSOLUTE, x, Animation.ABSOLUTE, y);
                                      Severity: Minor
                                      Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

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

                                            public void scaleIn(final int id, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                final View view = activity.findViewById(id);
                                                float x = touchX / window.getWindowWidthPx(activity);
                                                float y = touchY / window.getWindowHeightPx(activity);
                                                final ScaleAnimation scaleOut = new ScaleAnimation(0, 1, 0, 1, Animation.ABSOLUTE, x, Animation.ABSOLUTE, y);
                                        Severity: Minor
                                        Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

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

                                              public void circularRevealInPx(int view,
                                                                             int centerX, int centerY,
                                                                             int startRad, int endRad, TimeInterpolator interpolator,
                                                                             int duration, int delay, Activity activity) {
                                          Severity: Major
                                          Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

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

                                                public Animator circularRevealAnimator(int view,
                                                                                       int centerX, int centerY,
                                                                                       int startRad, int endRad, TimeInterpolator interpolator,
                                                                                       int duration, int delay, Activity activity) {
                                            Severity: Major
                                            Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

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

                                                  public void circularRevealinDP(int view,
                                                                                 int centerX, int centerY,
                                                                                 int startRad, int endRad, TimeInterpolator interpolator,
                                                                                 int duration, int delay, Activity activity) {
                                              Severity: Major
                                              Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                                                Method scaleOut has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    public void scaleOut(final View view, final int delay, final long duration, String handlerName) {
                                                        final ScaleAnimation scaleOut = new ScaleAnimation(1, 0, 1, 0, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
                                                
                                                        scaleOut.setInterpolator(new AccelerateDecelerateInterpolator());
                                                
                                                
                                                Severity: Minor
                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 1 hr to fix

                                                  Method fadeIn has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public void fadeIn(final int id, final int delay, final long duration, String handlerName, View parentView, Activity activity) {
                                                          final AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);
                                                          final View view = parentView.findViewById(id);
                                                          view.setVisibility(View.INVISIBLE);
                                                          PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                  Severity: Minor
                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 55 mins 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 fadeOutInvisible has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public void fadeOutInvisible(final int id, final int delay, final long duration, View parentView, Activity activity) {
                                                          final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                                                          final View view = parentView.findViewById(id);
                                                          PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                  
                                                  
                                                  Severity: Minor
                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 55 mins 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 fadeOut has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public void fadeOut(final int id, final int delay, final long duration, View parentView, Activity activity) {
                                                          final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                                                          final View view = parentView.findViewById(id);
                                                          PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                  
                                                  
                                                  Severity: Minor
                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 55 mins 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 fade has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public void fade(final int id, final float startAlpha, final float endAlpha, final int delay, final long duration, String handlerName, Activity activity) {
                                                          final AlphaAnimation fade = new AlphaAnimation(startAlpha, endAlpha);
                                                          final View view = activity.findViewById(id);
                                                          PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                  
                                                  
                                                  Severity: Minor
                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 55 mins 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 fadeIn has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public void fadeIn(final int id, final int delay, final long duration, String handlerName, Activity activity) {
                                                          final AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);
                                                          final View view = activity.findViewById(id);
                                                          view.setVisibility(View.INVISIBLE);
                                                          PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                  Severity: Minor
                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 55 mins 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 fadeOutInvisible has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public void fadeOutInvisible(final int id, final int delay, final long duration, Activity activity) {
                                                          final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                                                          final View view = activity.findViewById(id);
                                                          PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                  
                                                  
                                                  Severity: Minor
                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 55 mins 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 fadeIn has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public void fadeIn(final View view, final int delay, final long duration, String handlerName, Activity activity) {
                                                          final AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);
                                                          view.setVisibility(View.INVISIBLE);
                                                          PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                  
                                                  
                                                  Severity: Minor
                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 55 mins 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 circularRevealTouch has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                      public void circularRevealTouch(View touch_view, final int reveal_view,
                                                                                      final TimeInterpolator interpolator, final Runnable onClick,
                                                                                      final int duration, final int delay, final Activity activity) {
                                                  Severity: Major
                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 50 mins to fix

                                                    Method scaleOut has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                        public void scaleOut(final int id, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                    Severity: Major
                                                    Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 50 mins to fix

                                                      Method scaleIn has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                          public void scaleIn(final int id, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                      Severity: Major
                                                      Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 50 mins to fix

                                                        Method scaleOut has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            public void scaleOut(final View view, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                        Severity: Major
                                                        Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 50 mins to fix

                                                          Method scaleIn has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                          Open

                                                              public void scaleIn(final View view, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                          Severity: Major
                                                          Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 50 mins to fix

                                                            Method fade has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                            Open

                                                                public void fade(final int id, final float startAlpha, final float endAlpha, final int delay, final long duration, String handlerName, Activity activity) {
                                                            Severity: Major
                                                            Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 50 mins to fix

                                                              Method circularRevealTouch has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                              Open

                                                                  public void circularRevealTouch(int touch_view, final int reveal_view,
                                                                                                  final TimeInterpolator interpolator, final Runnable onClick,
                                                                                                  final int duration, final int delay, final Activity activity) {
                                                              Severity: Major
                                                              Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 50 mins to fix

                                                                Method circularRevealInPx has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                Open

                                                                    public void circularRevealInPx(int view,
                                                                                                   int centerX, int centerY,
                                                                                                   int startRad, int endRad, TimeInterpolator interpolator,
                                                                                                   int duration, int delay, Activity activity) {
                                                                
                                                                
                                                                Severity: Minor
                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 45 mins 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 fadeIn has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                Open

                                                                    public void fadeIn(final int id, final int delay, final long duration, String handlerName, View parentView, Activity activity) {
                                                                Severity: Minor
                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 45 mins to fix

                                                                  Method scaleInOverShoot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                      public void scaleInOverShoot(final int view_id, final int delay, final long duration, String handlerName, final Activity activity) {
                                                                  Severity: Minor
                                                                  Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins to fix

                                                                    Method scaleIn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                    Open

                                                                        public void scaleIn(final int id, final int delay, final long duration, String handlerName, Activity activity) {
                                                                    Severity: Minor
                                                                    Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins to fix

                                                                      Method fadeOut has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                      Open

                                                                          public void fadeOut(final int id, final int delay, final long duration, View parentView, Activity activity) {
                                                                      Severity: Minor
                                                                      Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins to fix

                                                                        Method fadeIn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                        Open

                                                                            public void fadeIn(final int id, final int delay, final long duration, String handlerName, Activity activity) {
                                                                        Severity: Minor
                                                                        Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins to fix

                                                                          Method scaleOut has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                          Open

                                                                              public void scaleOut(final int id, final int delay, final long duration, String handlerName, Activity activity) {
                                                                          Severity: Minor
                                                                          Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins to fix

                                                                            Method fadeOutInvisible has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                            Open

                                                                                public void fadeOutInvisible(final int id, final int delay, final long duration, View parentView, Activity activity) {
                                                                            Severity: Minor
                                                                            Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins to fix

                                                                              Method fadeIn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                              Open

                                                                                  public void fadeIn(final View view, final int delay, final long duration, String handlerName, Activity activity) {
                                                                              Severity: Minor
                                                                              Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins to fix

                                                                                Method circularRevealinDP has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                Open

                                                                                    public void circularRevealinDP(int view,
                                                                                                                   int centerX, int centerY,
                                                                                                                   int startRad, int endRad, TimeInterpolator interpolator,
                                                                                                                   int duration, int delay, Activity activity) {
                                                                                
                                                                                
                                                                                Severity: Minor
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins 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 circularRevealAnimator has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                Open

                                                                                    public Animator circularRevealAnimator(int view,
                                                                                                                           int centerX, int centerY,
                                                                                                                           int startRad, int endRad, TimeInterpolator interpolator,
                                                                                                                           int duration, int delay, Activity activity) {
                                                                                
                                                                                
                                                                                Severity: Minor
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java - About 35 mins 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

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                        if (view.getVisibility() == View.VISIBLE) {
                                                                                            PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                                                
                                                                                            if (Build.VERSION.SDK_INT >= 21 && powerManager.isPowerSaveMode()) {
                                                                                                // power save mode on
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 314..366

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 368.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                        if (view.getVisibility() == View.VISIBLE) {
                                                                                            PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                                                
                                                                                            if (Build.VERSION.SDK_INT >= 21 && powerManager.isPowerSaveMode()) {
                                                                                                // power save mode on
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 372..424

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 368.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                    public void fadeIn(final int id, final int delay, final long duration, String handlerName, View parentView, Activity activity) {
                                                                                        final AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);
                                                                                        final View view = parentView.findViewById(id);
                                                                                        view.setVisibility(View.INVISIBLE);
                                                                                        PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 137..193

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 349.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                    public void fadeIn(final int id, final int delay, final long duration, String handlerName, Activity activity) {
                                                                                        final AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);
                                                                                        final View view = activity.findViewById(id);
                                                                                        view.setVisibility(View.INVISIBLE);
                                                                                        PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 252..308

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 349.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                    public void fadeOutInvisible(final int id, final int delay, final long duration, Activity activity) {
                                                                                        final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                                                                                        final View view = activity.findViewById(id);
                                                                                        PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                                                
                                                                                
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 529..573

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 335.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                    public void fadeOutInvisible(final int id, final int delay, final long duration, View parentView, Activity activity) {
                                                                                        final AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);
                                                                                        final View view = parentView.findViewById(id);
                                                                                        PowerManager powerManager = (PowerManager) activity.getSystemService(POWER_SERVICE);
                                                                                
                                                                                
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 483..527

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 335.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                    public void scaleOut(final int id, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                                                        final View view = activity.findViewById(id);
                                                                                        float x = touchX / window.getWindowWidthPx(activity);
                                                                                        float y = touchY / window.getWindowHeightPx(activity);
                                                                                        final ScaleAnimation scaleOut = new ScaleAnimation(1, 0, 1, 0, Animation.ABSOLUTE, x, Animation.ABSOLUTE, y);
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 810..846

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 288.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                    public void scaleIn(final int id, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                                                        final View view = activity.findViewById(id);
                                                                                        float x = touchX / window.getWindowWidthPx(activity);
                                                                                        float y = touchY / window.getWindowHeightPx(activity);
                                                                                        final ScaleAnimation scaleOut = new ScaleAnimation(0, 1, 0, 1, Animation.ABSOLUTE, x, Animation.ABSOLUTE, y);
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 692..728

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 288.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                    public void scaleOut(final View view, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                                                        float x = touchX / window.getWindowWidthPx(activity);
                                                                                        float y = touchY / window.getWindowHeightPx(activity);
                                                                                        final ScaleAnimation scaleOut = new ScaleAnimation(1, 0, 1, 0, Animation.ABSOLUTE, x, Animation.ABSOLUTE, y);
                                                                                
                                                                                
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 781..808

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 204.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                    public void scaleIn(final View view, int touchX, int touchY, final int delay, final long duration, String handlerName, Activity activity) {
                                                                                        float x = touchX / window.getWindowWidthPx(activity);
                                                                                        float y = touchY / window.getWindowHeightPx(activity);
                                                                                        final ScaleAnimation scaleOut = new ScaleAnimation(0, 1, 0, 1, Animation.ABSOLUTE, x, Animation.ABSOLUTE, y);
                                                                                
                                                                                
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 663..690

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 204.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                Open

                                                                                        handlerCreator.get(handlerName).postDelayed(new Runnable() {
                                                                                            @Override
                                                                                            public void run() {
                                                                                                scaleIn.setDuration(duration);
                                                                                                view.startAnimation(scaleIn);
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 740..749
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 857..866

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 77.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                Open

                                                                                        handlerCreator.get(handlerName).postDelayed(new Runnable() {
                                                                                            @Override
                                                                                            public void run() {
                                                                                                scaleInOverShoot.setDuration(duration);
                                                                                                view.startAnimation(scaleInOverShoot);
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 740..749
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 769..778

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 77.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                Open

                                                                                            handlerCreator.get(handlerName).postDelayed(new Runnable() {
                                                                                                @Override
                                                                                                public void run() {
                                                                                                    scaleIn.setDuration(duration);
                                                                                                    view.startAnimation(scaleIn);
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 769..778
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 857..866

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 77.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                        touch.setOnClickListener(new View.OnClickListener() {
                                                                                            @Override
                                                                                            public void onClick(View v) {
                                                                                                circularRevealInPx(reveal_view,
                                                                                                        coordinate[0], coordinate[1],
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1213..1222

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 68.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                        touch_view.setOnClickListener(new View.OnClickListener() {
                                                                                            @Override
                                                                                            public void onClick(View v) {
                                                                                                circularRevealInPx(reveal_view,
                                                                                                        coordinate[0], coordinate[1],
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1186..1195

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 68.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                Open

                                                                                        touch.setOnTouchListener(new View.OnTouchListener() {
                                                                                            @Override
                                                                                            public boolean onTouch(View v, MotionEvent event) {
                                                                                                coordinate[0] = (int) event.getRawX();
                                                                                                coordinate[1] = (int) event.getRawY();
                                                                                Severity: Major
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java and 5 other locations - About 40 mins to fix
                                                                                app/src/main/java/com/bedrock/padder/activity/MainActivity.java on lines 639..647
                                                                                app/src/main/java/com/bedrock/padder/activity/MainActivity.java on lines 674..682
                                                                                app/src/main/java/com/bedrock/padder/activity/MainActivity.java on lines 699..707
                                                                                app/src/main/java/com/bedrock/padder/activity/MainActivity.java on lines 717..725
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1203..1211

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 49.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                Open

                                                                                        touch_view.setOnTouchListener(new View.OnTouchListener() {
                                                                                            @Override
                                                                                            public boolean onTouch(View v, MotionEvent event) {
                                                                                                coordinate[0] = (int) event.getRawX();
                                                                                                coordinate[1] = (int) event.getRawY();
                                                                                Severity: Major
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java and 5 other locations - About 40 mins to fix
                                                                                app/src/main/java/com/bedrock/padder/activity/MainActivity.java on lines 639..647
                                                                                app/src/main/java/com/bedrock/padder/activity/MainActivity.java on lines 674..682
                                                                                app/src/main/java/com/bedrock/padder/activity/MainActivity.java on lines 699..707
                                                                                app/src/main/java/com/bedrock/padder/activity/MainActivity.java on lines 717..725
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1176..1184

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 49.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                Open

                                                                                            if (startRad > endRad) {
                                                                                                animator.addListener(new Animator.AnimatorListener() {
                                                                                                    @Override
                                                                                                    public void onAnimationStart(Animator animation) {
                                                                                
                                                                                
                                                                                Severity: Minor
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java and 2 other locations - About 35 mins to fix
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1032..1053
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1082..1104

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 44.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                Open

                                                                                            if (startRad > endRad) {
                                                                                                animator.addListener(new Animator.AnimatorListener() {
                                                                                                    @Override
                                                                                                    public void onAnimationStart(Animator animation) {
                                                                                                    }
                                                                                Severity: Minor
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java and 2 other locations - About 35 mins to fix
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1082..1104
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1137..1159

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 44.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                                        getViewId(view) + " fade effect from " +
                                                                                                                String.valueOf(startAlpha) + "f to " +
                                                                                                                String.valueOf(endAlpha) + "f for " +
                                                                                                                String.valueOf(duration) + "ms with no delay");
                                                                                Severity: Minor
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java and 1 other location - About 35 mins to fix
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 99..102

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 44.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                Open

                                                                                            if (startRad > endRad) {
                                                                                                animator.addListener(new Animator.AnimatorListener() {
                                                                                                    @Override
                                                                                                    public void onAnimationStart(Animator animation) {
                                                                                
                                                                                
                                                                                Severity: Minor
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java and 2 other locations - About 35 mins to fix
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1032..1053
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 1137..1159

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 44.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                                                getViewId(view) + " fade effect from " +
                                                                                                                        String.valueOf(startAlpha) + "f to " +
                                                                                                                        String.valueOf(endAlpha) + "f for " +
                                                                                                                        String.valueOf(duration) + "ms with " +
                                                                                Severity: Minor
                                                                                Found in app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java and 1 other location - About 35 mins to fix
                                                                                app/src/main/java/com/bedrock/padder/helper/AnimateHelper.java on lines 112..115

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 44.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                There are no issues that match your filters.

                                                                                Category
                                                                                Status