src/main/java/innovimax/quixproc/datamodel/generator/AGenerator.java
AGenerator
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public abstract class AGenerator {
public enum FileExtension {
XML, HTML, JSON, YAML, RDF, CSV
}
File AGenerator.java
has 270 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* QuiXProc: efficient evaluation of XProc Pipelines.
* Copyright (C) 2011-2018 Innovimax
* All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
Method read
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
Open
@Override
public int read(final byte[] b, final int off, final int len) {
// System.out.println("READ : off : "+off+" ; len : "+len+" :
// "+display(b));
if (b == null) {
- 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 read
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public int read(final byte[] b, final int off, final int len) {
// System.out.println("READ : off : "+off+" ; len : "+len+" :
// "+display(b));
if (b == null) {
Avoid too many return
statements within this method. Open
Open
return c;
Avoid too many return
statements within this method. Open
Open
return total;