yashketkar/video-player

View on GitHub
vitamio/src/io/vov/vitamio/MediaPlayer.java

Summary

Maintainability
F
1 wk
Test Coverage

File MediaPlayer.java has 976 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright (C) 2006 The Android Open Source Project
 * Copyright (C) 2013 YIXIA.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
Severity: Major
Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 2 days to fix

    MediaPlayer has 115 methods (exceeds 20 allowed). Consider refactoring.
    Open

    @SuppressLint("NewApi")
    public class MediaPlayer {
      public static final int CACHE_TYPE_NOT_AVAILABLE = 1;
      public static final int CACHE_TYPE_START = 2;
      public static final int CACHE_TYPE_UPDATE = 3;
    Severity: Major
    Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 2 days to fix

      Method handleMessage has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring.
      Open

          @Override
          public void handleMessage(Message msg) {
            if (mMediaPlayer == null) {
      //        //Log.i("MiuiVideo: get message after player released, msg type: " + msg.what);
              return;
      Severity: Minor
      Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 5 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Method handleMessage has 80 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public void handleMessage(Message msg) {
            if (mMediaPlayer == null) {
      //        //Log.i("MiuiVideo: get message after player released, msg type: " + msg.what);
              return;
      Severity: Major
      Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 3 hrs to fix

        Method updateSub has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
        Open

          private void updateSub(int subType, byte[] bytes, String encoding, int width, int height) {
            if (mEventHandler != null) {
              Message m = mEventHandler.obtainMessage(MEDIA_TIMED_TEXT, width, height);
              Bundle b = m.getData();
              if (subType == SUBTITLE_TEXT) {
        Severity: Minor
        Found in vitamio/src/io/vov/vitamio/MediaPlayer.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 parseTrackInfo has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          private SparseArray<MediaFormat> parseTrackInfo(byte[] tracks, String encoding) {
            SparseArray<MediaFormat> trackSparse = new SparseArray<MediaFormat>();
            String trackString;
            int trackNum;
            try {
        Severity: Minor
        Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 1 hr to fix

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

            private SparseArray<MediaFormat> parseTrackInfo(byte[] tracks, String encoding) {
              SparseArray<MediaFormat> trackSparse = new SparseArray<MediaFormat>();
              String trackString;
              int trackNum;
              try {
          Severity: Minor
          Found in vitamio/src/io/vov/vitamio/MediaPlayer.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 setDataSource has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

            public void setDataSource(Context context, Uri uri, Map<String, String> headers) throws IOException, IllegalArgumentException, SecurityException, IllegalStateException {
              if (context == null || uri == null)
                throw new IllegalArgumentException();
              String scheme = uri.getScheme();
              if (scheme == null || scheme.equals("file")) {
          Severity: Minor
          Found in vitamio/src/io/vov/vitamio/MediaPlayer.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 onBufferingUpdate has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
          Open

              private void onBufferingUpdate(Message msg) {
                  int percent = msg.arg1;
                  if (mOnBufferingUpdateListener != null)
                      mOnBufferingUpdateListener.onBufferingUpdate(mMediaPlayer, msg.arg1);
                  if (percent >= 100 && mInBuffering) {
          Severity: Minor
          Found in vitamio/src/io/vov/vitamio/MediaPlayer.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 postEventFromNative has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            private static void postEventFromNative(Object mediaplayer_ref, int what, int arg1, int arg2, Object obj) {
          Severity: Minor
          Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 35 mins to fix

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

              private void updateSub(int subType, byte[] bytes, String encoding, int width, int height) {
            Severity: Minor
            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 35 mins to fix

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

                private void audioTrackWrite(byte[] audioData, int offsetInBytes, int sizeInBytes) {
                  if (mAudioTrack != null && mAudioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING) {
                    int written;
                    while (sizeInBytes > 0) {
                      written = sizeInBytes > mAudioTrackBufferSize ? mAudioTrackBufferSize : sizeInBytes;
              Severity: Minor
              Found in vitamio/src/io/vov/vitamio/MediaPlayer.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 onInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  private void onInfo(Message msg) {
                      switch (msg.arg1) {
                          case MediaPlayer.MEDIA_INFO_BUFFERING_START:
                              {
                                  //Log.i("MiuiVideo: receive buffer start, isplaying " + isPlaying());
              Severity: Minor
              Found in vitamio/src/io/vov/vitamio/MediaPlayer.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

              Avoid too many return statements within this method.
              Open

                        return;
              Severity: Major
              Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                          return;
                Severity: Major
                Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return;
                  Severity: Major
                  Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                              return;
                    Severity: Major
                    Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                return;
                      Severity: Major
                      Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                  return;
                        Severity: Major
                        Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                    return;
                          Severity: Major
                          Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 30 mins to fix

                            Method stayAwake has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                            Open

                              @SuppressLint("Wakelock")
                              private void stayAwake(boolean awake) {
                                if (mWakeLock != null) {
                                  if (awake && !mWakeLock.isHeld()) {
                                    mWakeLock.acquire();
                            Severity: Minor
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java - About 25 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

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

                              private static  boolean loadVVO_native_lib(String path, String name){
                                  boolean load=false;
                                  File file=new File(Vitamio.getBrowserLibraryPath() + "/"+ name );    
                                  if(file.exists())    
                                  {   
                            Severity: Major
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java and 3 other locations - About 1 hr to fix
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 215..232
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 251..266
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 268..283

                            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 105.

                            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 4 locations. Consider refactoring.
                            Open

                              private static  boolean loadVAO_native_lib(String path, String name){
                                  boolean load=false;
                                  File file=new File(Vitamio.getBrowserLibraryPath() + "/"+ name );    
                                  if(file.exists())    
                                  {   
                            Severity: Major
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java and 3 other locations - About 1 hr to fix
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 215..232
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 233..249
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 268..283

                            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 105.

                            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 4 locations. Consider refactoring.
                            Open

                              private static  boolean loadFFmpeg_native_lib(String path, String name){
                                  boolean load=false;
                                  File file=new File(Vitamio.getBrowserLibraryPath() + "/"+ name );    
                                  if(file.exists())    
                                  {   
                            Severity: Major
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java and 3 other locations - About 1 hr to fix
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 215..232
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 233..249
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 251..266

                            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 105.

                            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 4 locations. Consider refactoring.
                            Open

                              private static  boolean load_omxnative_lib(String path, String name){
                                  boolean load=false;
                                  
                                  File file=new File(Vitamio.getBrowserLibraryPath() + "/" +  name );    
                                  if(file.exists())    
                            Severity: Major
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java and 3 other locations - About 1 hr to fix
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 233..249
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 251..266
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 268..283

                            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 105.

                            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 int audioTrackInit() {
                            //      Log.e("  ffff mediaplayer audiotrackinit start .  sampleRateInHz:=" + sampleRateInHz + " channels:=" + channels );
                                    audioTrackRelease();
                                    int channelConfig = channels >= 2 ? AudioFormat.CHANNEL_OUT_STEREO : AudioFormat.CHANNEL_OUT_MONO;
                                    try {
                            Severity: Major
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java and 1 other location - About 1 hr to fix
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 1350..1367

                            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 101.

                            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

                              @SuppressLint("NewApi")
                              
                            private int audioTrackInit(int sampleRateInHz, int channels) {
                             //  this.sampleRateInHz=sampleRateInHz;
                             //  this.channels=channels;
                            Severity: Major
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java and 1 other location - About 1 hr to fix
                            vitamio/src/io/vov/vitamio/MediaPlayer.java on lines 1368..1380

                            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 101.

                            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

                                try {
                                  ContentResolver resolver = context.getContentResolver();
                                  mFD = resolver.openAssetFileDescriptor(uri, "r");
                                  if (mFD == null)
                                    return;
                            Severity: Minor
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java and 1 other location - About 50 mins to fix
                            vitamio/src/io/vov/vitamio/MediaMetadataRetriever.java on lines 97..106

                            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 58.

                            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(libFile.exists()){
                                        LIB_ROOT=Vitamio.getLibraryPath();
                                    }else{
                                        libFile = new File(Vitamio.getDataPath()+"libstlport_shared.so" );
                                        if(libFile.exists()){
                            Severity: Minor
                            Found in vitamio/src/io/vov/vitamio/MediaPlayer.java and 1 other location - About 45 mins to fix
                            vitamio/src/io/vov/vitamio/MediaMetadataRetriever.java on lines 54..61

                            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 54.

                            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