ronin-rb/ronin-support

View on GitHub

Showing 87 of 196 total issues

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

module Ronin
  module Support
    module Binary
      module CTypes
        #
Severity: Major
Found in lib/ronin/support/binary/ctypes/union_object_type.rb and 1 other location - About 2 hrs to fix
lib/ronin/support/binary/ctypes/struct_object_type.rb on lines 22..166

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

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

module Ronin
  module Support
    module Binary
      module CTypes
        #
Severity: Major
Found in lib/ronin/support/binary/ctypes/struct_object_type.rb and 1 other location - About 2 hrs to fix
lib/ronin/support/binary/ctypes/union_object_type.rb on lines 22..166

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

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 self.response_status(method=:head,url, proxy:      self.proxy,
                                                   ssl:        nil,
                                                   headers:    {},
                                                   user_agent: nil,
                                                   cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 3 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1523..1549
lib/ronin/support/network/http.rb on lines 1574..1600
lib/ronin/support/network/http.rb on lines 1717..1743

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

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 self.ok?(method=:head,url, proxy:      self.proxy,
                                       ssl:        nil,
                                       headers:    {},
                                       user_agent: nil,
                                       cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 3 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1472..1498
lib/ronin/support/network/http.rb on lines 1574..1600
lib/ronin/support/network/http.rb on lines 1717..1743

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

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 self.response_headers(method=:head,url, proxy:      self.proxy,
                                                    ssl:        nil,
                                                    headers:    {},
                                                    user_agent: nil,
                                                    cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 3 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1472..1498
lib/ronin/support/network/http.rb on lines 1523..1549
lib/ronin/support/network/http.rb on lines 1717..1743

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

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 self.response_body(method=:get,url, proxy:      self.proxy,
                                                ssl:        nil,
                                                headers:    {},
                                                user_agent: nil,
                                                cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 3 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1472..1498
lib/ronin/support/network/http.rb on lines 1523..1549
lib/ronin/support/network/http.rb on lines 1574..1600

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

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

        def self.head(url, proxy:      self.proxy,
                           ssl:        nil,
                           headers:    {},
                           user_agent: nil,
                           cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.lock(url, proxy:      self.proxy,
                           ssl:        nil,
                           headers:    {},
                           user_agent: nil,
                           cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.move(url, proxy:      self.proxy,
                           ssl:        nil,
                           headers:    {},
                           user_agent: nil,
                           cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.patch(url, proxy:      self.proxy,
                            ssl:        nil,
                            headers:    {},
                            user_agent: nil,
                            cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.propfind(url, proxy:      self.proxy,
                               ssl:        nil,
                               headers:    {},
                               user_agent: nil,
                               cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.get(url, proxy:      self.proxy,
                          ssl:        nil,
                          headers:    {},
                          user_agent: nil,
                          cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.delete(url, proxy:      self.proxy,
                             ssl:        nil,
                             headers:    {},
                             user_agent: nil,
                             cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.put(url, proxy:      self.proxy,
                          ssl:        nil,
                          headers:    {},
                          user_agent: nil,
                          cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.trace(url, proxy:      self.proxy,
                            ssl:        nil,
                            headers:    {},
                            user_agent: nil,
                            cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.copy(url, proxy:      self.proxy,
                           ssl:        nil,
                           headers:    {},
                           user_agent: nil,
                           cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.options(url, proxy:      self.proxy,
                              ssl:        nil,
                              headers:    {},
                              user_agent: nil,
                              cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.unlock(url, proxy:      self.proxy,
                             ssl:        nil,
                             headers:    {},
                             user_agent: nil,
                             cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766

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

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

        def self.proppatch(url, proxy:      self.proxy,
                                ssl:        nil,
                                headers:    {},
                                user_agent: nil,
                                cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2174..2201
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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

        def self.mkcol(url, proxy:      self.proxy,
                            ssl:        nil,
                            headers:    {},
                            user_agent: nil,
                            cookie:     nil,
Severity: Major
Found in lib/ronin/support/network/http.rb and 14 other locations - About 1 hr to fix
lib/ronin/support/network/http.rb on lines 1769..1796
lib/ronin/support/network/http.rb on lines 1822..1849
lib/ronin/support/network/http.rb on lines 1875..1902
lib/ronin/support/network/http.rb on lines 2068..2095
lib/ronin/support/network/http.rb on lines 2121..2148
lib/ronin/support/network/http.rb on lines 2227..2254
lib/ronin/support/network/http.rb on lines 2280..2307
lib/ronin/support/network/http.rb on lines 2380..2407
lib/ronin/support/network/http.rb on lines 2433..2460
lib/ronin/support/network/http.rb on lines 2580..2607
lib/ronin/support/network/http.rb on lines 2633..2660
lib/ronin/support/network/http.rb on lines 2686..2713
lib/ronin/support/network/http.rb on lines 2739..2766
lib/ronin/support/network/http.rb on lines 2792..2819

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

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