SquirrelJME/SquirrelJME

View on GitHub

Showing 132 of 203 total issues

Consider simplifying this complex logical expression.
Open

                    if ((includeMain && isMain) ||
                        (includeDaemon && isDaemon) ||
                        (!isMain && !isDaemon))
                        count++;

    Method read has a Cognitive Complexity of 26 (exceeds 24 allowed). Consider refactoring.
    Open

        @Override
        public int read(char[] __c, int __o, int __l)
            throws IndexOutOfBoundsException, IOException, NullPointerException
        {
            if (__c == null)
    Severity: Minor
    Found in modules/io/src/main/java/net/multiphasicapps/io/Base64Encoder.java - About 35 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 update has a Cognitive Complexity of 26 (exceeds 24 allowed). Consider refactoring.
    Open

        public void update()
        {
            // Obtain all resultant threads, do not perform any updates if blank
            InfoThread[] threads;
            synchronized (this)

    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 26 (exceeds 24 allowed). Consider refactoring.
    Open

        public static final PCFFont read(InputStream __in)
            throws IOException, NullPointerException
        {
            if (__in == null)
                throw new NullPointerException("NARG");

    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 token has a Cognitive Complexity of 26 (exceeds 24 allowed). Consider refactoring.
    Open

        @Override
        public void token(CharSequence __cq, boolean __forceNewline)
            throws IOException, NullPointerException
        {
            if (__cq == null)

    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 __calcStackMapTableFull has a Cognitive Complexity of 26 (exceeds 24 allowed). Consider refactoring.
    Open

        private StackMapTablePairs __calcStackMapTableFull()
        {
            // We need to get the base table
            StackMapTable base = this.stackMapTable();
            

    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 __formatOtherUnsignedInt has a Cognitive Complexity of 26 (exceeds 24 allowed). Consider refactoring.
    Open

        private static String __formatOtherUnsignedInt(__PrintFState__ __pf,
            Number __n, int __base)
            throws NullPointerException
        {
            if (__pf == null)
    Severity: Minor
    Found in modules/cldc-compact/src/main/java/java/util/Formatter.java - About 35 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 read has a Cognitive Complexity of 26 (exceeds 24 allowed). Consider refactoring.
    Open

        @Override
        public JsonStructure read()
        {
            synchronized (this.lock)
            {
    Severity: Minor
    Found in modules/json/src/main/java/net/multiphasicapps/jsr353/ImplReader.java - About 35 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 append has a Cognitive Complexity of 25 (exceeds 24 allowed). Consider refactoring.
    Open

        public MarkdownWriter append(boolean __wholeWords, CharSequence __cs,
            int __s, int __e)
            throws IndexOutOfBoundsException, IOException
        {
            // Use actual sequence?

    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 token has a Cognitive Complexity of 25 (exceeds 24 allowed). Consider refactoring.
    Open

        @Override
        public CSourceWriter token(CharSequence __token, boolean __forceNewline)
            throws IllegalArgumentException, IOException, NullPointerException
        {
            if (__token == null)
    Severity: Minor
    Found in modules/c-source-writer/src/main/java/cc/squirreljme/c/CFile.java - About 25 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 writeUTF has a Cognitive Complexity of 25 (exceeds 24 allowed). Consider refactoring.
    Open

        @Override
        public final void writeUTF(String __v)
            throws IOException, NullPointerException
        {
            if (__v == null)
    Severity: Minor
    Found in modules/cldc-compact/src/main/java/java/io/DataOutputStream.java - About 25 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 read has a Cognitive Complexity of 25 (exceeds 24 allowed). Consider refactoring.
    Open

        public T read()
            throws NoSuchElementException, IOException
        {
            StringBuilder buffer = this._buffer;
            CsvInputStream input = this.input;
    Severity: Minor
    Found in modules/csv/src/main/java/cc/squirreljme/csv/CsvReader.java - About 25 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

    Severity
    Category
    Status
    Source
    Language