LearnPAd/learnpad

View on GitHub
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java

Summary

Maintainability
F
6 days
Test Coverage

File SearchResultImpl.java has 489 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 */
package eu.learnpad.transformations.metamodel_corpus.xwiki.impl;

import javax.xml.datatype.XMLGregorianCalendar;

    SearchResultImpl has 46 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public class SearchResultImpl extends LinkCollectionImpl implements SearchResult {
        /**
         * The default value of the '{@link #getType() <em>Type</em>}' attribute.
         * <!-- begin-user-doc -->
         * <!-- end-user-doc -->

      Method eIsSet has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
      Open

          @Override
          public boolean eIsSet(int featureID) {
              switch (featureID) {
                  case XwikiPackage.SEARCH_RESULT__TYPE:
                      return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);

      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 eUnset has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public void eUnset(int featureID) {
              switch (featureID) {
                  case XwikiPackage.SEARCH_RESULT__TYPE:
                      setType(TYPE_EDEFAULT);

        Method eSet has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            @Override
            public void eSet(int featureID, Object newValue) {
                switch (featureID) {
                    case XwikiPackage.SEARCH_RESULT__TYPE:
                        setType((String)newValue);

          Method eIsSet has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              @Override
              public boolean eIsSet(int featureID) {
                  switch (featureID) {
                      case XwikiPackage.SEARCH_RESULT__TYPE:
                          return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);

            Method eGet has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                @Override
                public Object eGet(int featureID, boolean resolve, boolean coreType) {
                    switch (featureID) {
                        case XwikiPackage.SEARCH_RESULT__TYPE:
                            return getType();

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

                  @Override
                  public String toString() {
                      if (eIsProxy()) return super.toString();
              
                      StringBuffer result = new StringBuffer(super.toString());

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

                    public void setObject(eu.learnpad.transformations.metamodel_corpus.xwiki.Object newObject) {
                        if (newObject != object) {
                            NotificationChain msgs = null;
                            if (object != null)
                                msgs = ((InternalEObject)object).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XwikiPackage.SEARCH_RESULT__OBJECT, null, msgs);

                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;

                  Avoid too many return statements within this method.
                  Open

                                  return;

                    Avoid too many return statements within this method.
                    Open

                                    return;

                      Avoid too many return statements within this method.
                      Open

                                      return;

                        Avoid too many return statements within this method.
                        Open

                                        return;

                          Avoid too many return statements within this method.
                          Open

                                          return;

                            Avoid too many return statements within this method.
                            Open

                                            return;

                              Avoid too many return statements within this method.
                              Open

                                              return;

                                Avoid too many return statements within this method.
                                Open

                                                return;

                                  Avoid too many return statements within this method.
                                  Open

                                                  return;

                                    Avoid too many return statements within this method.
                                    Open

                                                    return;

                                      Avoid too many return statements within this method.
                                      Open

                                                      return;

                                        Avoid too many return statements within this method.
                                        Open

                                                        return;

                                          Avoid too many return statements within this method.
                                          Open

                                                          return;

                                            Avoid too many return statements within this method.
                                            Open

                                                            return;

                                              Avoid too many return statements within this method.
                                              Open

                                                              return;

                                                Avoid too many return statements within this method.
                                                Open

                                                                return;

                                                  Avoid too many return statements within this method.
                                                  Open

                                                                  return;

                                                    Avoid too many return statements within this method.
                                                    Open

                                                                    return;

                                                      Avoid too many return statements within this method.
                                                      Open

                                                                      return;

                                                        Avoid too many return statements within this method.
                                                        Open

                                                                        return;

                                                          Avoid too many return statements within this method.
                                                          Open

                                                                          return;

                                                            Avoid too many return statements within this method.
                                                            Open

                                                                            return;

                                                              Avoid too many return statements within this method.
                                                              Open

                                                                              return;

                                                                Avoid too many return statements within this method.
                                                                Open

                                                                                return;

                                                                  Avoid too many return statements within this method.
                                                                  Open

                                                                                  return;

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

                                                                        @Override
                                                                        public String toString() {
                                                                            if (eIsProxy()) return super.toString();
                                                                    
                                                                            StringBuffer result = new StringBuffer(super.toString());

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

                                                                        public void setObject(eu.learnpad.transformations.metamodel_corpus.xwiki.Object newObject) {
                                                                            if (newObject != object) {
                                                                                NotificationChain msgs = null;
                                                                                if (object != null)
                                                                                    msgs = ((InternalEObject)object).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XwikiPackage.SEARCH_RESULT__OBJECT, null, msgs);
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 252..264
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 295..307
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 338..350
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 381..393
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 102..114
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 145..157
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 169..181
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 212..224
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/MODELTypeImpl.java on lines 247..259
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageSummaryImpl.java on lines 654..666
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/XWikiImpl.java on lines 129..141

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

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

                                                                        public NotificationChain basicSetObject(eu.learnpad.transformations.metamodel_corpus.xwiki.Object newObject, NotificationChain msgs) {
                                                                            eu.learnpad.transformations.metamodel_corpus.xwiki.Object oldObject = object;
                                                                            object = newObject;
                                                                            if (eNotificationRequired()) {
                                                                                ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XwikiPackage.SEARCH_RESULT__OBJECT, oldObject, newObject);
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 237..245
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 280..288
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 323..331
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 366..374
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 87..95
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 130..138
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 154..162
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 197..205
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/MODELTypeImpl.java on lines 232..240
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageSummaryImpl.java on lines 639..647
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/XWikiImpl.java on lines 114..122

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

                                                                        public void setScore(float newScore) {
                                                                            float oldScore = score;
                                                                            score = newScore;
                                                                            boolean oldScoreESet = scoreESet;
                                                                            scoreESet = true;
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/AttachmentImpl.java on lines 363..370
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/CommentImpl.java on lines 246..253
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/CommentImpl.java on lines 418..425
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/HistorySummaryImpl.java on lines 435..442
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/HistorySummaryImpl.java on lines 481..488
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/ObjectSummaryImpl.java on lines 529..536
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageImpl.java on lines 330..337
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageImpl.java on lines 376..383
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 700..707

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

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

                                                                        public void setObjectNumber(int newObjectNumber) {
                                                                            int oldObjectNumber = objectNumber;
                                                                            objectNumber = newObjectNumber;
                                                                            boolean oldObjectNumberESet = objectNumberESet;
                                                                            objectNumberESet = true;
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/AttachmentImpl.java on lines 363..370
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/CommentImpl.java on lines 246..253
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/CommentImpl.java on lines 418..425
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/HistorySummaryImpl.java on lines 435..442
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/HistorySummaryImpl.java on lines 481..488
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/ObjectSummaryImpl.java on lines 529..536
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageImpl.java on lines 330..337
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageImpl.java on lines 376..383
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 767..774

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

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

                                                                        public void unsetObjectNumber() {
                                                                            int oldObjectNumber = objectNumber;
                                                                            boolean oldObjectNumberESet = objectNumberESet;
                                                                            objectNumber = OBJECT_NUMBER_EDEFAULT;
                                                                            objectNumberESet = false;
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/AttachmentImpl.java on lines 377..384
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/CommentImpl.java on lines 260..267
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/CommentImpl.java on lines 432..439
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/HistorySummaryImpl.java on lines 449..456
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/HistorySummaryImpl.java on lines 495..502
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/ObjectSummaryImpl.java on lines 543..550
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageImpl.java on lines 344..351
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageImpl.java on lines 390..397
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 781..788

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

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

                                                                        public void unsetScore() {
                                                                            float oldScore = score;
                                                                            boolean oldScoreESet = scoreESet;
                                                                            score = SCORE_EDEFAULT;
                                                                            scoreESet = false;
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/AttachmentImpl.java on lines 377..384
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/CommentImpl.java on lines 260..267
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/CommentImpl.java on lines 432..439
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/HistorySummaryImpl.java on lines 449..456
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/HistorySummaryImpl.java on lines 495..502
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/ObjectSummaryImpl.java on lines 543..550
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageImpl.java on lines 344..351
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageImpl.java on lines 390..397
                                                                    lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 714..721

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

                                                                    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