nhojpatrick/nhojpatrick-cucumber

View on GitHub

Showing 34 of 78 total issues

Method transform has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
Open

    private Map<String, Object> transform(final int depth,
                                          final Map<String, Object> input,
                                          final String previousPath,
                                          final List<PathElement> pathElements,
                                          final Transformation transformation)

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 transform has 141 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Map<String, Object> transform(final int depth,
                                          final Map<String, Object> input,
                                          final String previousPath,
                                          final List<PathElement> pathElements,
                                          final Transformation transformation)

    Method perform has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        @Override
        public Map<String, Object> perform(final PathElement pathElement,
                                           final Map<String, Object> inputRaw,
                                           final String currentPath)
                throws IllegalKeyException,

    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 perform has 84 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @Override
        public Map<String, Object> perform(final PathElement pathElement,
                                           final Map<String, Object> inputRaw,
                                           final String currentPath)
                throws IllegalKeyException,

      Method perform has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
      Open

          @Override
          public Map<String, Object> perform(final PathElement pathElement,
                                             final Map<String, Object> inputRaw,
                                             final String currentPath)
                  throws IllegalKeyException,

      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 perform has 80 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public Map<String, Object> perform(final PathElement pathElement,
                                             final Map<String, Object> inputRaw,
                                             final String currentPath)
                  throws IllegalKeyException,

        Method perform has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
        Open

            @Override
            public Map<String, Object> perform(final PathElement pathElement,
                                               final Map<String, Object> inputRaw,
                                               final String currentPath)
                    throws IllegalKeyException,

        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 perform has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            @Override
            public Map<String, Object> perform(final PathElement pathElement,
                                               final Map<String, Object> inputRaw,
                                               final String currentPath)
                    throws IllegalKeyException,

          Method perform has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
          Open

              @Override
              public Map<String, Object> perform(final PathElement pathElement,
                                                 final Map<String, Object> inputRaw,
                                                 final String currentPath)
                      throws IllegalKeyException,

          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 setupRunStateForKeysAndValue has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              @Given("^TestingInternalSteps I have setup the run state for keys and type:$")
              @SuppressFBWarnings(value = "CC_CYCLOMATIC_COMPLEXITY", justification = "Complex because of framework used")
              public void setupRunStateForKeysAndValue(final DataTable data)
                      throws IllegalKeyException {
          
          

            Method perform has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                @Override
                public Map<String, Object> perform(final PathElement pathElement,
                                                   final Map<String, Object> inputRaw,
                                                   final String currentPath)
                        throws IllegalKeyException,

              Method doCastTo has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  @SuppressFBWarnings(value = {"CC_CYCLOMATIC_COMPLEXITY",
                          "URV_CHANGE_RETURN_TYPE"}, justification = "As designed")
                  private Object doCastTo(final String value, final String type)
                          throws UnsupportedDataTypeConversionException,
                          UnsupportedDataTypeException {

                Method checkSplit has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private PathElement checkSplit(final String path, final String split)
                            throws InvalidPathException {
                
                        LOGGER.debug("path='{}' split='{}'", path, split);
                
                

                  Method perform has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      @Override
                      public Map<String, Object> perform(final PathElement pathElement,
                                                         final Map<String, Object> inputRaw,
                                                         final String currentPath)
                              throws IllegalKeyException,

                    Method parsePath has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        @Override
                        public List<PathElement> parsePath(final String path)
                                throws InvalidPathException {
                    
                            LOGGER.debug("parsePath.entry path='{}'", path);

                      Method verify has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          @Override
                          public void verify(final RunState runState)
                                  throws NullRunStateException {
                      
                              if (isNull(runState)) {

                        Method perform has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                        Open

                            @Override
                            public Map<String, Object> perform(final PathElement pathElement,
                                                               final Map<String, Object> inputRaw,
                                                               final String currentPath)
                                    throws IllegalKeyException,

                        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 parsePath has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                        Open

                            @Override
                            public List<PathElement> parsePath(final String path)
                                    throws InvalidPathException {
                        
                                LOGGER.debug("parsePath.entry path='{}'", path);

                        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 checkSplit has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private PathElement checkSplit(final String path, final String split)
                                    throws InvalidPathException {
                        
                                LOGGER.debug("path='{}' split='{}'", path, split);
                        
                        

                        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 whitespace has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public <T extends Exception> void whitespace(final String runStateJsonMapKey,
                                                                         final String path,
                                                                         final Integer prefix,
                                                                         final Integer suffix,
                                                                         final Class<T> t,
                          Severity
                          Category
                          Status
                          Source
                          Language