rubyjedi/soap4r

View on GitHub

Showing 78 of 416 total issues

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

      while rank < position.size
    idx = position[rank - 1]
    if iteary[idx].nil?
      iteary = iteary[idx] = Array.new
    else
Severity: Minor
Found in lib/soap/baseData.rb and 1 other location - About 25 mins to fix
lib/soap/baseData.rb on lines 1008..1016

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

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

    when ::String
      unless @allow_original_mapping
        return nil
      end
      param = @string_factory.obj2soap(SOAPString, obj, info, map)
Severity: Minor
Found in lib/soap/mapping/rubytypeFactory.rb and 2 other locations - About 25 mins to fix
lib/soap/mapping/rubytypeFactory.rb on lines 56..64
lib/soap/mapping/rubytypeFactory.rb on lines 94..102

Duplicated Code

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

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

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

Tuning

This issue has a mass of 30.

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class MinInclusive < Info
Severity: Major
Found in lib/wsdl/xmlSchema/mininclusive.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class Length < Info
Severity: Major
Found in lib/wsdl/xmlSchema/length.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class TotalDigits < Info
Severity: Major
Found in lib/wsdl/xmlSchema/totaldigits.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

    when ::Time
      unless @allow_original_mapping
        return nil
      end
      param = @datetime_factory.obj2soap(SOAPDateTime, obj, info, map)
Severity: Minor
Found in lib/soap/mapping/rubytypeFactory.rb and 2 other locations - About 25 mins to fix
lib/soap/mapping/rubytypeFactory.rb on lines 47..55
lib/soap/mapping/rubytypeFactory.rb on lines 94..102

Duplicated Code

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

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

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

Tuning

This issue has a mass of 30.

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

    when ::Float
      unless @allow_original_mapping
        return nil
      end
      param = @basetype_factory.obj2soap(SOAPDouble, obj, info, map)
Severity: Minor
Found in lib/soap/mapping/rubytypeFactory.rb and 2 other locations - About 25 mins to fix
lib/soap/mapping/rubytypeFactory.rb on lines 47..55
lib/soap/mapping/rubytypeFactory.rb on lines 56..64

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class MaxExclusive < Info
Severity: Major
Found in lib/wsdl/xmlSchema/maxexclusive.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class WhiteSpace < Info
Severity: Major
Found in lib/wsdl/xmlSchema/whitespace.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class MinExclusive < Info
Severity: Major
Found in lib/wsdl/xmlSchema/minexclusive.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class FractionDigits < Info
Severity: Major
Found in lib/wsdl/xmlSchema/fractiondigits.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class MaxLength < Info
Severity: Major
Found in lib/wsdl/xmlSchema/maxlength.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class MinLength < Info
Severity: Major
Found in lib/wsdl/xmlSchema/minlength.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxinclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

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

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

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

Refactorings

Further Reading

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

module WSDL
module XMLSchema


class MaxInclusive < Info
Severity: Major
Found in lib/wsdl/xmlSchema/maxinclusive.rb and 9 other locations - About 25 mins to fix
lib/wsdl/xmlSchema/fractiondigits.rb on lines 13..31
lib/wsdl/xmlSchema/length.rb on lines 13..31
lib/wsdl/xmlSchema/maxexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/maxlength.rb on lines 13..31
lib/wsdl/xmlSchema/minexclusive.rb on lines 13..31
lib/wsdl/xmlSchema/mininclusive.rb on lines 13..31
lib/wsdl/xmlSchema/minlength.rb on lines 13..31
lib/wsdl/xmlSchema/totaldigits.rb on lines 13..31
lib/wsdl/xmlSchema/whitespace.rb on lines 13..31

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

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

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

  def end_element(name)
    lastframe = @parsestack.pop
    unless name == lastframe.name
      raise UnexpectedElementError.new("closing element name '#{name}' does not match with opening element '#{lastframe.name}'")
    end
Severity: Minor
Found in lib/wsdl/parser.rb and 1 other location - About 25 mins to fix
lib/wsdl/xmlSchema/parser.rb on lines 99..105

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

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

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

      if item and item.as_array?
        (vars[name] ||= []) << child
      elsif vars.key?(name)
        vars[name] = [vars[name], child].flatten
      else
Severity: Minor
Found in lib/soap/mapping/literalregistry.rb and 1 other location - About 25 mins to fix
lib/soap/mapping/encodedregistry.rb on lines 516..522

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

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

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

      if item and item.as_array?
        (vars[name] ||= []) << child
      elsif vars.key?(name)
        vars[name] = [vars[name], child].flatten
      else
Severity: Minor
Found in lib/soap/mapping/encodedregistry.rb and 1 other location - About 25 mins to fix
lib/soap/mapping/literalregistry.rb on lines 289..295

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

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

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

      mime.parts.each do |part|
    value = Attachment.new(part.content)
    value.contentid = part.contentid
    obj = SOAPAttachment.new(value)
    opt[:external_content][value.contentid] = obj if value.contentid
Severity: Minor
Found in lib/soap/rpc/proxy.rb and 1 other location - About 25 mins to fix
lib/soap/rpc/router.rb on lines 300..304

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

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

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

  def end_element(name)
    lastframe = @parsestack.pop
    unless name == lastframe.name
      raise UnexpectedElementError.new("closing element name '#{name}' does not match with opening element '#{lastframe.name}'")
    end
Severity: Minor
Found in lib/wsdl/xmlSchema/parser.rb and 1 other location - About 25 mins to fix
lib/wsdl/parser.rb on lines 101..107

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

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

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

      mime.parts.each do |part|
    value = Attachment.new(part.content)
    value.contentid = part.contentid
    obj = SOAPAttachment.new(value)
    opt[:external_content][value.contentid] = obj if value.contentid
Severity: Minor
Found in lib/soap/rpc/router.rb and 1 other location - About 25 mins to fix
lib/soap/rpc/proxy.rb on lines 274..278

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

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