jeanlescure/hipster_sql_to_hbase

View on GitHub

Showing 132 of 161 total issues

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

          class ScannerOpenTs_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            STARTROW = 2
            COLUMNS = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 1809..1834

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

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 GetRowWithColumnsTs_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            COLUMNS = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 2669..2698

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

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 GetVer_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            COLUMN = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 2294..2320

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

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 DeleteAllTs_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            COLUMN = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 1583..1609

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

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 GetRowWithColumns_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            COLUMNS = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 2 other locations - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 2527..2553
lib/adapter/hbase/hbase.rb on lines 2625..2648

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

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 ScannerOpenWithPrefix_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            STARTANDPREFIX = 2
            COLUMNS = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 2 other locations - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 1721..1744
lib/adapter/hbase/hbase.rb on lines 2527..2553

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

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 ScannerOpen_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            STARTROW = 2
            COLUMNS = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 2 other locations - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 1721..1744
lib/adapter/hbase/hbase.rb on lines 2625..2648

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

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 Get_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            COLUMN = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 2252..2275

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

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 DeleteAll_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            COLUMN = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 1539..1562

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

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 GetRowTs_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            TIMESTAMP = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 2444..2467

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

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 DeleteAllRowTs_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            TIMESTAMP = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 2 hrs to fix
lib/adapter/hbase/hbase.rb on lines 1765..1788

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

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 ScannerGet_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
            IA = 2
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2830..2847

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

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 ScannerGetList_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
            IA = 2
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2790..2807

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

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 DeleteAllRow_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            ATTRIBUTES = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 1680..1700

Duplicated Code

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

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

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

Tuning

This issue has a mass of 68.

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

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

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

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

Refactorings

Further Reading

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

          class GetRow_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            ATTRIBUTES = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2339..2359

Duplicated Code

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

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

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

Tuning

This issue has a mass of 68.

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

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

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

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

Refactorings

Further Reading

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

          class AtomicIncrement_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            ROW = 2
            COLUMN = 3
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 1 other location - About 1 hr to fix
lib/adapter/hbase/hbase_types.rb on lines 141..160

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

        class TIncrement
          include ::Thrift::Struct, ::Thrift::Struct_Union
          TABLE = 1
          ROW = 2
          COLUMN = 3
Severity: Major
Found in lib/adapter/hbase/hbase_types.rb and 1 other location - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2206..2229

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

          class GetRowTs_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 12 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 1448..1463
lib/adapter/hbase/hbase.rb on lines 1565..1580
lib/adapter/hbase/hbase.rb on lines 1612..1627
lib/adapter/hbase/hbase.rb on lines 1662..1677
lib/adapter/hbase/hbase.rb on lines 1703..1718
lib/adapter/hbase/hbase.rb on lines 1747..1762
lib/adapter/hbase/hbase.rb on lines 1837..1852
lib/adapter/hbase/hbase.rb on lines 1878..1893
lib/adapter/hbase/hbase.rb on lines 1922..1937
lib/adapter/hbase/hbase.rb on lines 1966..1981
lib/adapter/hbase/hbase.rb on lines 2012..2027
lib/adapter/hbase/hbase.rb on lines 2908..2923

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

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

          class Get_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 12 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 1448..1463
lib/adapter/hbase/hbase.rb on lines 1612..1627
lib/adapter/hbase/hbase.rb on lines 1662..1677
lib/adapter/hbase/hbase.rb on lines 1703..1718
lib/adapter/hbase/hbase.rb on lines 1747..1762
lib/adapter/hbase/hbase.rb on lines 1791..1806
lib/adapter/hbase/hbase.rb on lines 1837..1852
lib/adapter/hbase/hbase.rb on lines 1878..1893
lib/adapter/hbase/hbase.rb on lines 1922..1937
lib/adapter/hbase/hbase.rb on lines 1966..1981
lib/adapter/hbase/hbase.rb on lines 2012..2027
lib/adapter/hbase/hbase.rb on lines 2908..2923

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

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

          class GetVerTs_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 12 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 1448..1463
lib/adapter/hbase/hbase.rb on lines 1565..1580
lib/adapter/hbase/hbase.rb on lines 1612..1627
lib/adapter/hbase/hbase.rb on lines 1703..1718
lib/adapter/hbase/hbase.rb on lines 1747..1762
lib/adapter/hbase/hbase.rb on lines 1791..1806
lib/adapter/hbase/hbase.rb on lines 1837..1852
lib/adapter/hbase/hbase.rb on lines 1878..1893
lib/adapter/hbase/hbase.rb on lines 1922..1937
lib/adapter/hbase/hbase.rb on lines 1966..1981
lib/adapter/hbase/hbase.rb on lines 2012..2027
lib/adapter/hbase/hbase.rb on lines 2908..2923

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

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