SquirrelJME/SquirrelJME

View on GitHub

Showing 195 of 202 total issues

Method __singleStep has 1360 lines of code (exceeds 100 allowed). Consider refactoring.
Open

    private strictfp void __singleStep()
    {
        // Need the current frame and its byte code
        SpringThread thread = this.thread;
        

    File SpringThreadWorker.java has 2476 lines of code (exceeds 850 allowed). Consider refactoring.
    Open

    // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
    // ---------------------------------------------------------------------------
    // SquirrelJME
    //     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
    // ---------------------------------------------------------------------------

      Method __singleStep has a Cognitive Complexity of 215 (exceeds 24 allowed). Consider refactoring.
      Open

          private strictfp void __singleStep()
          {
              // Need the current frame and its byte code
              SpringThread thread = this.thread;
              

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

          public static void main(String... __args)
          {
              // Default settings
              String vmName = "springcoat";
              Path snapshotPath = 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 __nextInternal has a Cognitive Complexity of 142 (exceeds 24 allowed). Consider refactoring.
      Open

          private Data __nextInternal()
              throws IOException
          {
              // Reading loop
              for (;;)
      Severity: Minor
      Found in modules/json/src/main/java/net/multiphasicapps/jsr353/ReaderInput.java - About 2 days 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 __context has a Cognitive Complexity of 105 (exceeds 24 allowed). Consider refactoring.
      Open

          private boolean __context(JDWPHostController __controller, Object __thread,
              JDWPEventModifierContext __context, Object __on, Object[] __ensnare)
              throws NullPointerException
          {
              if (__controller == null || __context == 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 __format has a Cognitive Complexity of 94 (exceeds 24 allowed). Consider refactoring.
      Open

          @SuppressWarnings({"StaticVariableUsedBeforeInitialization"})
          private static void __format(char __cha, char __chb, String __format,
              Object... __args)
          {
              // Print otherwise

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

          private final void __internalGet()
          {
              // Read next data bit
              Input.Data d = this.input.next();
              String ds;

      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 main has 331 lines of code (exceeds 100 allowed). Consider refactoring.
      Open

          public static void main(String... __args)
          {
              // Default settings
              String vmName = "springcoat";
              Path snapshotPath = null;

        Method processArguments has 307 lines of code (exceeds 100 allowed). Consider refactoring.
        Open

            public static Object[] processArguments(Pool __pool, int __op,
                int __addr, int[] __rawArgs)
                throws InvalidClassFormatException, NullPointerException
            {
                if (__pool == null || __rawArgs == null)

          Method __calcStackMapTableFull has 302 lines of code (exceeds 100 allowed). Consider refactoring.
          Open

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

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

                @Override
                public int read()
                    throws IOException
                {
                    // Lock

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

                static List<String> __declareComplex(CType __start, CIdentifier __name)
                    throws NullPointerException
                {
                    if (__start == 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 instructionRawArguments has 261 lines of code (exceeds 100 allowed). Consider refactoring.
            Open

                public static InstructionRawArgumentType[] instructionRawArguments(
                    int __opCode, int __a)
                    throws InvalidClassFormatException, NullPointerException
                {
                    // Depends on the operation

              Method instructionLength has 255 lines of code (exceeds 100 allowed). Consider refactoring.
              Open

                  public static int instructionLength(byte[] __code, int __codeOff, int __a,
                      int[] __last)
                      throws InvalidClassFormatException, NullPointerException
                  {
                      // Check

                Method normalize has 241 lines of code (exceeds 100 allowed). Consider refactoring.
                Open

                    public Instruction normalize()
                    {
                        Reference<Instruction> ref = this._normalized;
                        Instruction rv;
                        

                  Method __undirty has a Cognitive Complexity of 61 (exceeds 24 allowed). Consider refactoring.
                  Open

                      private void __undirty()
                      {
                          if (!this._dirty)
                              return;
                              
                  Severity: Minor
                  Found in modules/midp-lcdui/src/main/java/javax/microedition/lcdui/Text.java - About 6 hrs 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

                  File AdvancedGraphics.java has 1034 lines of code (exceeds 850 allowed). Consider refactoring.
                  Open

                  // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
                  // ---------------------------------------------------------------------------
                  // SquirrelJME
                  //     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
                  // ---------------------------------------------------------------------------

                    Consider simplifying this complex logical expression.
                    Open

                                else if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ||
                                    (c >= '0' && c <= '9') || c == ':' || c == '@' || c == '-' ||
                                    c == '.' || c == '_' || c == '~' || c == '!' || c == '$' ||
                                    c == '&' || c == '\'' || c == '(' || c == ')' || c == '*' ||
                                    c == '+' || c == ',' || c == ';' || c == '=')
                    Severity: Critical
                    Found in modules/gcf/src/main/java/cc/squirreljme/runtime/gcf/FileAddress.java - About 6 hrs to fix

                      ScritchUnifiedWrapper has 90 methods (exceeds 65 allowed). Consider refactoring.
                      Open

                      @SquirrelJMEVendorApi
                      public class ScritchUnifiedWrapper
                          implements ScritchUnifiedInterface
                      {
                          /** The interface to wrap. */
                        Severity
                        Category
                        Status
                        Source
                        Language