SquirrelJME/SquirrelJME

View on GitHub

Showing 110 of 178 total issues

Consider simplifying this complex logical expression.
Open

        if (__o != SocketConnection.KEEPALIVE || __o != SocketConnection.LINGER || __o != SocketConnection.SNDBUF ||
            __o != SocketConnection.RCVBUF || __o != SocketConnection.DELAY || __o != SocketConnection.TIMEOUT)
            throw new IllegalArgumentException("EC0n " + __o);

    Consider simplifying this complex logical expression.
    Open

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

      Consider simplifying this complex logical expression.
      Open

                  if (this.isPrivate() || this.isStatic() || this.isFinal() || this
                      .isSynchronized() || this.isNative() || this.isStrict())
                      throw new InvalidClassFormatException(
                          String.format("JC3l %s", this));

        Consider simplifying this complex logical expression.
        Open

                if (__h == null || __p == null || __sf == null || __if == null ||
                    __sm == null || __im == null)
                    throw new NullPointerException("NARG");

          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

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

              public final NativeCode build()
              {
                  // Labels which point to addresses
                  Map<NativeCodeLabel, Integer> labels = this._labels;
                  

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

              private NativeCodeLabel __generateReturn(JavaStackEnqueueList __eq)
                  throws NullPointerException
              {
                  if (__eq == 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

          Severity
          Category
          Status
          Source
          Language