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 = {})
Method add_rpc_operation
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def add_rpc_operation(receiver, qname, soapaction, name, param_def, opt = {})
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 = {})
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)
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
- Read upRead up
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 = {})
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)
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 = {})
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
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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)
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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)
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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 = {})
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(boundid, qname, style, inputuse, outputuse)