SquirrelJME/SquirrelJME

View on GitHub

Showing 121 of 1,004 total issues

Method toString has 223 lines of code (exceeds 100 allowed). Consider refactoring.
Open

    @SuppressWarnings("MagicNumber")
    public static String toString(int __code)
    {
        // Wide codes
        switch (__code & 0xFFFF)

    Method toString has 221 lines of code (exceeds 100 allowed). Consider refactoring.
    Open

        public static String toString(int __op)
        {
            switch (__op)
            {
                case InstructionIndex.NOP: return "NOP";

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

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

        Method toChar has 200 lines of code (exceeds 100 allowed). Consider refactoring.
        Open

            public static final int toChar(String __n)
                throws NullPointerException
            {
                if (__n == null)
                    throw new NullPointerException("NARG");

          Method infoPointer has 195 lines of code (exceeds 100 allowed). Consider refactoring.
          Open

              public final int infoPointer()
              {
                  // If it has already been initialized use it
                  int rv = this._classdata;
                  if (rv >= 0)

            Method matchesProvided has a Cognitive Complexity of 51 (exceeds 24 allowed). Consider refactoring.
            Open

                @Override
                public boolean matchesProvided(MarkedProvided __mp)
                    throws NullPointerException
                {
                    if (__mp == 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 __translateCode has a Cognitive Complexity of 51 (exceeds 24 allowed). Consider refactoring.
            Open

                private final byte[] __translateCode(NativeCode __rc)
                    throws IOException, NullPointerException
                {
                    if (__rc == 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 serialize has 189 lines of code (exceeds 100 allowed). Consider refactoring.
            Open

                public static String serialize(Object __o)
                {
                    // Null
                    if (__o == null)
                        return "null";

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

                  @Override
                  public final int read(byte[] __b, int __o, int __l)
                      throws IndexOutOfBoundsException, IOException, NullPointerException
                  {
                      if (__b == null)
              Severity: Minor
              Found in modules/io/src/main/java/net/multiphasicapps/io/Base64Decoder.java - About 4 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

              Method createVM has 183 lines of code (exceeds 100 allowed). Consider refactoring.
              Open

                  @Override
                  protected VirtualMachine createVM(ProfilerSnapshot __ps,
                      VMSuiteManager __sm, VMClassLibrary[] __cp, String __maincl,
                      Map<String, String> __sprops, String[] __args)
                      throws IllegalArgumentException, NullPointerException, VMException

                Method decode has 178 lines of code (exceeds 100 allowed). Consider refactoring.
                Open

                    public static final DualClassRuntimePool decode(byte[] __b,
                        int __co, int __cl, int __ro, int __rl)
                        throws InvalidClassFormatException, IOException, NullPointerException
                    {
                        if (__b == null)

                  Method decode has a Cognitive Complexity of 47 (exceeds 24 allowed). Consider refactoring.
                  Open

                      public static final DualClassRuntimePool decode(byte[] __b,
                          int __co, int __cl, int __ro, int __rl)
                          throws InvalidClassFormatException, IOException, NullPointerException
                      {
                          if (__b == 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 doTransition has a Cognitive Complexity of 47 (exceeds 24 allowed). Consider refactoring.
                  Open

                      public final JavaStackResult doTransition(JavaStackState __ts)
                          throws NullPointerException
                      {
                          if (__ts == 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 __updateState has a Cognitive Complexity of 46 (exceeds 24 allowed). Consider refactoring.
                  Open

                          private void __updateState(int __w, int __h)
                          {
                              // Needed for cycling    
                              Random random = this.random;
                              

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

                      public String readLine()
                          throws IOException
                      {
                          // Has this been closed?
                          char[] buf = this._buf;
                  Severity: Minor
                  Found in modules/cldc-compact/src/main/java/java/io/BufferedReader.java - About 3 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

                  Method decode has 167 lines of code (exceeds 100 allowed). Consider refactoring.
                  Open

                      @Deprecated
                      public static final MinimizedPool decode(int __n, byte[] __is, int __o,
                          int __l)
                          throws IndexOutOfBoundsException, InvalidClassFormatException,
                              NullPointerException

                    Method __sysCall has a Cognitive Complexity of 42 (exceeds 24 allowed). Consider refactoring.
                    Open

                        private final long __sysCall(short __si, int... __args)
                        {
                            // Error state for the last call of this type
                            int[] errors = this._syscallerrors;
                            

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

                        public final __BucketMapEntry__<K, V> putEntry(K __k)
                        {
                            __BucketMapEntry__<K, V>[][] buckets = this._buckets;
                            int bucketdiv = this._bucketdiv;
                            
                    Severity: Minor
                    Found in modules/cldc-compact/src/main/java/java/util/__BucketMap__.java - About 3 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

                    Method main has a Cognitive Complexity of 41 (exceeds 24 allowed). Consider refactoring.
                    Open

                        public static void main(String... __args)
                        {
                            // Poke the VM to initialize some probably important parts of it
                            Poking.poke();
                            

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

                        @Deprecated
                        public static final MinimizedPool decode(int __n, byte[] __is, int __o,
                            int __l)
                            throws IndexOutOfBoundsException, InvalidClassFormatException,
                                NullPointerException

                    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