rubyjedi/soap4r

View on GitHub

Showing 339 of 417 total issues

Method add_rpc_operation has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  def add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {})
Severity: Minor
Found in lib/soap/rpc/httpserver.rb - About 45 mins to fix

    Method add_rpc_operation has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {})
    Severity: Minor
    Found in lib/soap/rpc/cgistub.rb - About 45 mins to fix

      Method add_rpc_request_operation has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        def add_rpc_request_operation(factory, qname, soapaction, name, param_def, opt = {})
      Severity: Minor
      Found in lib/soap/rpc/httpserver.rb - About 45 mins to fix

        Method ary2md has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def self.ary2md(ary, rank, type_ns = XSD::Namespace, typename = XSD::AnyTypeLiteral, registry = nil, opt = EMPTY_OPT)
        Severity: Minor
        Found in lib/soap/mapping/mapping.rb - About 45 mins to fix

          Method search_element has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
          Open

            def search_element(qname)
              each do |ele|
                if ele.respond_to?(:find_element)
                  found = ele.find_element(qname)
                  return found if found
          Severity: Minor
          Found in lib/soap/mapping/schemadefinition.rb - About 45 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Method add_rpc_operation has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            def add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {})
          Severity: Minor
          Found in lib/soap/rpc/router.rb - About 45 mins to fix

            Method decode_tag_by_type has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              def decode_tag_by_type(ns, elename, typestr, parent, arytypestr, attrs)
            Severity: Minor
            Found in lib/soap/encodingstyle/soapHandler.rb - About 45 mins to fix

              Method add_rpc_request_operation has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                def add_rpc_request_operation(factory, qname, soapaction, name, param_def, opt = {})
              Severity: Minor
              Found in lib/soap/rpc/router.rb - About 45 mins to fix

                Method obj2soap has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def obj2soap(obj, qname = nil)
                    soap_obj = nil
                    if type = @definedtypes[qname]
                      soap_obj = obj2typesoap(obj, type)
                    else
                Severity: Minor
                Found in lib/soap/mapping/wsdlencodedregistry.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method any2soap has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def any2soap(obj, qname, obj_class)
                    ele = nil
                    if obj.is_a?(SOAP::Mapping::Object)
                      return mappingobj2soap(obj, qname)
                    end
                Severity: Minor
                Found in lib/soap/mapping/literalregistry.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method do_POST has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def do_POST(req, res)
                    logger.debug { "SOAP request: " + req.body } if logger
                    if @authenticator
                      @authenticator.authenticate(req, res)
                      # you can check authenticated user with SOAP::RPC::SOAPlet.user
                Severity: Minor
                Found in lib/soap/rpc/soaplet.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method decode_tag_by_type has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def decode_tag_by_type(ns, elename, typestr, parent, arytypestr, attrs)
                    if arytypestr
                      type = typestr ? ns.parse(typestr) : ValueArrayName
                      node = SOAPArray.decode(elename, type, ns.parse(arytypestr))
                      node.extraattr.update(attrs)
                Severity: Minor
                Found in lib/soap/encodingstyle/soapHandler.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method obj2typesoap has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def obj2typesoap(obj, type)
                    ele = nil
                    if type.is_a?(::WSDL::XMLSchema::SimpleType)
                      ele = simpleobj2soap(obj, type)
                    else # complexType
                Severity: Minor
                Found in lib/soap/mapping/wsdlliteralregistry.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method init_param has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def init_param(param)
                    mapped_class = SOAPMethod.parse_mapped_class(param.mapped_class)
                    qname = param.qname
                    if qname.nil? and mapped_class
                      qname = TypeMap.respond_to?(:key) ? TypeMap.key(mapped_class) : TypeMap.index(mapped_class) # RubyJedi: compatible with Ruby 1.8.6 and above 
                Severity: Minor
                Found in lib/soap/rpc/element.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method proxy= has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def proxy=(proxy)
                    if proxy.nil?
                      @proxy = nil
                    else
                      if proxy.is_a?(URI)
                Severity: Minor
                Found in lib/soap/netHttpClient.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method install_dir has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                def install_dir(srcbase, *path)
                  from_path = File.join(srcbase, *path)
                  unless FileTest.directory?(from_path)
                    raise RuntimeError.new("'#{ from_path }' not found.")
                  end
                Severity: Minor
                Found in install.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method no_proxy? has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def no_proxy?(uri)
                    if !@proxy or NO_PROXY_HOSTS.include?(uri.host)
                      return true
                    end
                    unless @no_proxy
                Severity: Minor
                Found in lib/soap/netHttpClient.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method initialize has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  def initialize(data = nil, is_fault = false)
                    super(nil)
                    @elename = EleBodyName
                    @encodingstyle = nil
                    if data
                Severity: Minor
                Found in lib/soap/element.rb - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method dump_complextypedef has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  def dump_complextypedef(mpath, qname, typedef, as_element = nil, opt = {})
                Severity: Minor
                Found in lib/wsdl/soap/mappingRegistryCreatorSupport.rb - About 35 mins to fix

                  Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def initialize(boundid, qname, style, inputuse, outputuse)
                  Severity: Minor
                  Found in lib/wsdl/operationBinding.rb - About 35 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language