jacquev6/LowVoltage

View on GitHub

Showing 329 of 329 total issues

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

class UpdateItemResponse(object):
    """
    UpdateItemResponse()

    The `UpdateItem response <http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#API_UpdateItem_ResponseElements>`__.
Severity: Major
Found in LowVoltage/actions/update_item.py and 2 other locations - About 1 day to fix
LowVoltage/actions/delete_item.py on lines 43..89
LowVoltage/actions/put_item.py on lines 29..75

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

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

class DeleteItemResponseUnitTests(_tst.UnitTests):
    def test_all_none(self):
        r = DeleteItemResponse()
        self.assertIsNone(r.attributes)
        self.assertIsNone(r.consumed_capacity)
Severity: Major
Found in LowVoltage/actions/delete_item.py and 2 other locations - About 1 day to fix
LowVoltage/actions/put_item.py on lines 369..381
LowVoltage/actions/update_item.py on lines 643..655

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

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

class PutItemResponseUnitTests(_tst.UnitTests):
    def test_all_none(self):
        r = PutItemResponse()
        self.assertIsNone(r.attributes)
        self.assertIsNone(r.consumed_capacity)
Severity: Major
Found in LowVoltage/actions/put_item.py and 2 other locations - About 1 day to fix
LowVoltage/actions/delete_item.py on lines 383..395
LowVoltage/actions/update_item.py on lines 643..655

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

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

class UpdateItemResponseUnitTests(_tst.UnitTests):
    def test_all_none(self):
        r = UpdateItemResponse()
        self.assertIsNone(r.attributes)
        self.assertIsNone(r.consumed_capacity)
Severity: Major
Found in LowVoltage/actions/update_item.py and 2 other locations - About 1 day to fix
LowVoltage/actions/delete_item.py on lines 383..395
LowVoltage/actions/put_item.py on lines 369..381

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

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

File update_table.py has 493 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# coding: utf8

# Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net>

"""
Severity: Minor
Found in LowVoltage/actions/update_table.py - About 7 hrs to fix

    File create_table.py has 491 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # coding: utf8
    
    # Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net>
    
    """
    Severity: Minor
    Found in LowVoltage/actions/create_table.py - About 7 hrs to fix

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

      class _ComparisonExpression(_Boolean):
          def __init__(self, left, operator, right):
              if not isinstance(left, _Atom):
                  raise TypeError
              if not isinstance(operator, basestring):
      Severity: Major
      Found in LowVoltage/actions/expressions.py and 1 other location - About 7 hrs to fix
      LowVoltage/actions/expressions.py on lines 19..32

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

      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

      class _BooleanExpression(_Boolean):
          def __init__(self, left, operator, right):
              if not isinstance(left, _Boolean):
                  raise TypeError
              if not isinstance(operator, basestring):
      Severity: Major
      Found in LowVoltage/actions/expressions.py and 1 other location - About 7 hrs to fix
      LowVoltage/actions/expressions.py on lines 45..58

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

      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

      File connection.py has 436 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # coding: utf8
      
      # Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net>
      
      import datetime
      Severity: Minor
      Found in LowVoltage/connection/connection.py - About 6 hrs to fix

        File batch_get_item.py has 431 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # coding: utf8
        
        # Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net>
        
        """
        Severity: Minor
        Found in LowVoltage/actions/batch_get_item.py - About 6 hrs to fix

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

                  self.connection.expect._call_.withArguments(
                      self.ActionChecker("BatchGetItem", {"RequestItems": {"Aaa": {"Keys": [{"h": {"N": str(i)}} for i in range(2100, 2175)]}}})
                  ).andReturn(
                      _lv.BatchGetItemResponse(
                          Responses={"Aaa": [{"h": {"N": str(i)}} for i in range(1200, 1250)]},
          Severity: Major
          Found in LowVoltage/compounds/iterate_batch_get_item.py and 3 other locations - About 6 hrs to fix
          LowVoltage/compounds/iterate_batch_get_item.py on lines 89..92
          LowVoltage/compounds/iterate_batch_get_item.py on lines 94..97
          LowVoltage/compounds/iterate_batch_get_item.py 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 102.

          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

                  self.connection.expect._call_.withArguments(
                      self.ActionChecker("BatchGetItem", {"RequestItems": {"Aaa": {"Keys": [{"h": {"N": str(i)}} for i in range(0, 100)]}}})
                  ).andReturn(
                      _lv.BatchGetItemResponse(Responses={"Aaa": [{"h": {"N": str(i)}} for i in range(1000, 1100)]})
          Severity: Major
          Found in LowVoltage/compounds/iterate_batch_get_item.py and 3 other locations - About 6 hrs to fix
          LowVoltage/compounds/iterate_batch_get_item.py on lines 94..97
          LowVoltage/compounds/iterate_batch_get_item.py on lines 99..102
          LowVoltage/compounds/iterate_batch_get_item.py on lines 135..139

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

          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

              def test_server_error_without_json(self):
                  self.requests_response.expect.status_code.andReturn(500)
                  self.requests_response.expect.json().andRaise(ValueError)
                  self.requests_response.expect.text.andReturn("Message: tralala")
          
          
          Severity: Major
          Found in LowVoltage/connection/connection.py and 3 other locations - About 6 hrs to fix
          LowVoltage/connection/connection.py on lines 351..358
          LowVoltage/connection/connection.py on lines 384..391
          LowVoltage/connection/connection.py on lines 450..457

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

          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

              def test_non_json_response_with_good_status(self):
                  self.requests_response.expect.status_code.andReturn(200)
                  self.requests_response.expect.json().andRaise(ValueError)
                  self.requests_response.expect.text.andReturn("foobar")
          
          
          Severity: Major
          Found in LowVoltage/connection/connection.py and 3 other locations - About 6 hrs to fix
          LowVoltage/connection/connection.py on lines 384..391
          LowVoltage/connection/connection.py on lines 417..424
          LowVoltage/connection/connection.py on lines 450..457

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

          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

                  self.connection.expect._call_.withArguments(
                      self.ActionChecker("BatchGetItem", {"RequestItems": {"Aaa": {"Keys": [{"h": {"N": str(i)}} for i in range(200, 250)]}}})
                  ).andReturn(
                      _lv.BatchGetItemResponse(Responses={"Aaa": [{"h": {"N": str(i)}} for i in range(1200, 1250)]})
          Severity: Major
          Found in LowVoltage/compounds/iterate_batch_get_item.py and 3 other locations - About 6 hrs to fix
          LowVoltage/compounds/iterate_batch_get_item.py on lines 89..92
          LowVoltage/compounds/iterate_batch_get_item.py on lines 94..97
          LowVoltage/compounds/iterate_batch_get_item.py on lines 135..139

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

          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

              def test_unknown_client_error_without_json(self):
                  self.requests_response.expect.status_code.andReturn(400)
                  self.requests_response.expect.json().andRaise(ValueError)
                  self.requests_response.expect.text.andReturn("Message: tralala")
          
          
          Severity: Major
          Found in LowVoltage/connection/connection.py and 3 other locations - About 6 hrs to fix
          LowVoltage/connection/connection.py on lines 351..358
          LowVoltage/connection/connection.py on lines 417..424
          LowVoltage/connection/connection.py on lines 450..457

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

          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

                  self.connection.expect._call_.withArguments(
                      self.ActionChecker("BatchGetItem", {"RequestItems": {"Aaa": {"Keys": [{"h": {"N": str(i)}} for i in range(100, 200)]}}})
                  ).andReturn(
                      _lv.BatchGetItemResponse(Responses={"Aaa": [{"h": {"N": str(i)}} for i in range(1100, 1200)]})
          Severity: Major
          Found in LowVoltage/compounds/iterate_batch_get_item.py and 3 other locations - About 6 hrs to fix
          LowVoltage/compounds/iterate_batch_get_item.py on lines 89..92
          LowVoltage/compounds/iterate_batch_get_item.py on lines 99..102
          LowVoltage/compounds/iterate_batch_get_item.py on lines 135..139

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

          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

              def test_unknown_error_without_json(self):
                  self.requests_response.expect.status_code.andReturn(750)
                  self.requests_response.expect.json().andRaise(ValueError)
                  self.requests_response.expect.text.andReturn("Message: tralala")
          
          
          Severity: Major
          Found in LowVoltage/connection/connection.py and 3 other locations - About 6 hrs to fix
          LowVoltage/connection/connection.py on lines 351..358
          LowVoltage/connection/connection.py on lines 384..391
          LowVoltage/connection/connection.py on lines 417..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 102.

          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

          File batch_write_item.py has 423 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # coding: utf8
          
          # Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net>
          
          """
          Severity: Minor
          Found in LowVoltage/actions/batch_write_item.py - About 6 hrs to fix

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

                def test_unknown_error_with_correct_json(self):
                    self.requests_response.expect.status_code.andReturn(750)
                    self.requests_response.expect.json().andReturn({"__type": "NobodyKnewThisCouldHappen", "Message": "tralala"})
            
                    with self.assertRaises(_exn.UnknownError) as catcher:
            Severity: Major
            Found in LowVoltage/connection/connection.py and 2 other locations - About 6 hrs to fix
            LowVoltage/connection/connection.py on lines 360..366
            LowVoltage/connection/connection.py on lines 393..399

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

            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

            Severity
            Category
            Status
            Source
            Language