Showing 150 of 150 total issues
File AQuiXEvent.java
has 656 lines of code (exceeds 250 allowed). Consider refactoring. 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 process
has 279 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public IQuiXToken process(final IQuiXToken item) {
final QuiXToken token = item.getType();
// System.out.println(state +", "+ token);
switch (this.state) {
AQuiXEvent
has 66 methods (exceeds 20 allowed). Consider refactoring. Open
public abstract class AQuiXEvent implements IQuiXEvent, IQuiXToken {
// TODO : store namespace context
// TODO : store type information for PSVI
File QuiXEventStream2XMLStreamReader.java
has 460 lines of code (exceeds 250 allowed). Consider refactoring. 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");
QuiXEventStream2XMLStreamReader
has 50 methods (exceeds 20 allowed). Consider refactoring. Open
public class QuiXEventStream2XMLStreamReader implements XMLStreamReader {
private final IQuiXEventStreamReader qs;
private static final boolean DEBUG = false;
private static final int POSITION = 1;
QuiXStreamReader
has 48 methods (exceeds 20 allowed). Consider refactoring. Open
public class QuiXStreamReader implements IQuiXStreamReader {
private final Iterator<Source> sources;
private int position;
private final XMLInputFactory ifactory;
IQuiXStreamReader
has 45 methods (exceeds 20 allowed). Consider refactoring. Open
public interface IQuiXStreamReader {
/**
* Get the value of a feature/property from the underlying implementation
*
* @param name
File ValidQuiXTokenStream.java
has 419 lines of code (exceeds 250 allowed). Consider refactoring. 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 process
has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring. Open
@Override
public IQuiXToken process(final IQuiXToken item) {
final QuiXToken token = item.getType();
// System.out.println(state +", "+ token);
switch (this.state) {
- 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
File QuiXStreamReader.java
has 341 lines of code (exceeds 250 allowed). Consider refactoring. 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 next
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public QuiXToken next() {
try {
if (this.state == State.FINISH) {
return null;
Method next
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
@Override
public int next() throws XMLStreamException {
try {
if (DEBUG)
System.out.println(Thread.currentThread().getStackTrace()[POSITION].getMethodName());
- 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 next
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
@Override
public QuiXToken next() {
try {
if (this.state == State.FINISH) {
return 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 process
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public AQuiXEvent process(final CallBack callback) {
try {
if (!this.buffer.isEmpty()) {
return this.buffer.poll();
AGenerator
has 25 methods (exceeds 20 allowed). Consider refactoring. 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
/*
* 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 process
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
@Override
public AQuiXEvent process(final CallBack callback) {
try {
if (!this.buffer.isEmpty()) {
return this.buffer.poll();
- 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 next
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public int next() throws XMLStreamException {
try {
if (DEBUG)
System.out.println(Thread.currentThread().getStackTrace()[POSITION].getMethodName());
Method getNext
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
LinkedItem<T> getNext() {
try {
// this.latch.await();
if (this.lock != null) {
if (this.lock != 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 a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. 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"