Showing 400 of 537 total issues
Method createTextNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
createTextNode(Ruby ruby, String content, int depth, Stack<String> langStack, Stack<String> xmlBaseStack)
Method resolveEntity
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
resolveEntity(Ruby runtime, String name, String publicId, String baseURI, String systemId)
Method getSchema
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
getSchema(Source source,
String currentDir,
String scriptFileName,
SchemaErrorHandler errorHandler,
long parseOptions) throws SAXException
Method createImpl
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
createImpl(Node owner, IRubyObject prefix, String prefixStr, IRubyObject href, String hrefStr)
Method newEmpty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
newEmpty(Ruby runtime,
Document doc,
IRubyObject name,
IRubyObject external_id,
IRubyObject system_id)
Method xpath_internal
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def xpath_internal(node, paths, handler, ns, binds)
Method start_element_namespace
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def start_element_namespace(name, attrs = [], prefix = nil, uri = nil, ns = []) # rubocop:disable Metrics/ParameterLists
Method parse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def parse(string, url = nil, encoding = nil, **options, &block)
Method start_element_namespace
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def start_element_namespace(name, attrs = [], prefix = nil, uri = nil, ns = []) # rubocop:disable Metrics/ParameterLists
Method HTML5
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.HTML5(input, url = nil, encoding = nil, **options, &block)
Method XML
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def XML(thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_XML, &block)
Method process_recipe
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def process_recipe(name, version, static_p, cross_p, cacheable_p = true)
Method parse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def parse(thing, url = nil, encoding = nil, options = ParseOptions::DEFAULT_XML, &block)
Method xpath_impl
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def xpath_impl(node, path, handler, ns, binds)
Method parse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def parse(string_or_io, url = nil, encoding = nil, **options, &block)
Method transform
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
@JRubyMethod(rest = true, required = 1, optional = 2)
public IRubyObject
transform(ThreadContext context, IRubyObject[] args)
{
Ruby runtime = context.getRuntime();
- 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 selectNode
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public static Element
selectNode(Node sibling, String uri, String nodeName, int number)
{
while (sibling != null) {
if (sibling.getNamespaceURI() != null && sibling.getNamespaceURI().equals(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 getParentNameSpaces
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
protected final void
getParentNameSpaces(Element el, NameSpaceSymbTable ns)
{
Node n1 = el.getParentNode();
if (n1 == null || Node.ELEMENT_NODE != n1.getNodeType()) {
- 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 canonicalizeWhitespace
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public static CharSequence
canonicalizeWhitespace(CharSequence str)
{
final int len = str.length();
StringBuilder sb = new StringBuilder(len);
- 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 resolveSystemId
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private static String
resolveSystemId(String baseName, String systemId)
{
if (baseName == null || baseName.length() < 1) { return null; }
String parentName;
- 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"