jeanlescure/hipster_sql_to_hbase

View on GitHub

Showing 161 of 161 total issues

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

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

          class GetRowsWithColumns_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 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 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 GetVer_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 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 GetRowWithColumnsTs_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 1791..1806
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 GetTableRegions_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 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 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 GetRowWithColumns_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 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 GetRowOrBefore_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 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

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 GetRow_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 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 GetRows_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 1791..1806
lib/adapter/hbase/hbase.rb on lines 1837..1852
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 GetRowsWithColumnsTs_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 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 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 GetRowsTs_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 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 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 2 locations. Consider refactoring.
Open

          class CreateTable_args
            include ::Thrift::Struct, ::Thrift::Struct_Union
            TABLENAME = 1
            COLUMNFAMILIES = 2
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 121..136

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

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 BatchMutation
          include ::Thrift::Struct, ::Thrift::Struct_Union
          ROW = 1
          MUTATIONS = 2
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 1466..1483

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

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

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

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

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

Refactorings

Further Reading

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

          class MutateRowsTs_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            IO = 1
            IA = 2
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 5 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2056..2071
lib/adapter/hbase/hbase.rb on lines 2103..2118
lib/adapter/hbase/hbase.rb on lines 2144..2159
lib/adapter/hbase/hbase.rb on lines 2867..2882
lib/adapter/hbase/hbase.rb on lines 2943..2958

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

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

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

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

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

Refactorings

Further Reading

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

          class GetRegionInfo_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            SUCCESS = 0
            IO = 1
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 5 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2056..2071
lib/adapter/hbase/hbase.rb on lines 2103..2118
lib/adapter/hbase/hbase.rb on lines 2144..2159
lib/adapter/hbase/hbase.rb on lines 2188..2203
lib/adapter/hbase/hbase.rb on lines 2867..2882

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

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

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

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

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

Refactorings

Further Reading

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

          class ScannerClose_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            IO = 1
            IA = 2
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 5 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2056..2071
lib/adapter/hbase/hbase.rb on lines 2103..2118
lib/adapter/hbase/hbase.rb on lines 2144..2159
lib/adapter/hbase/hbase.rb on lines 2188..2203
lib/adapter/hbase/hbase.rb on lines 2943..2958

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

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

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

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

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

Refactorings

Further Reading

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

          class MutateRowTs_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            IO = 1
            IA = 2
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 5 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2056..2071
lib/adapter/hbase/hbase.rb on lines 2144..2159
lib/adapter/hbase/hbase.rb on lines 2188..2203
lib/adapter/hbase/hbase.rb on lines 2867..2882
lib/adapter/hbase/hbase.rb on lines 2943..2958

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

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

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

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

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

Refactorings

Further Reading

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

          class MutateRow_result
            include ::Thrift::Struct, ::Thrift::Struct_Union
            IO = 1
            IA = 2
Severity: Major
Found in lib/adapter/hbase/hbase.rb and 5 other locations - About 1 hr to fix
lib/adapter/hbase/hbase.rb on lines 2103..2118
lib/adapter/hbase/hbase.rb on lines 2144..2159
lib/adapter/hbase/hbase.rb on lines 2188..2203
lib/adapter/hbase/hbase.rb on lines 2867..2882
lib/adapter/hbase/hbase.rb on lines 2943..2958

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

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