silentbalanceyh/vertx-zero

View on GitHub
vertx-gaia/vertx-up/src/main/jib/io/vertx/up/uca/jooq/JqAnalyzer.java

Summary

Maintainability
C
1 day
Test Coverage

JqAnalyzer has 25 methods (exceeds 20 allowed). Consider refactoring.
Open

@SuppressWarnings("all")
public class JqAnalyzer {

    private static final Annal LOGGER = Annal.get(JqAnalyzer.class);
    private static final ConcurrentMap<Integer, JooqDsl> DAO_POOL =
Severity: Minor
Found in vertx-gaia/vertx-up/src/main/jib/io/vertx/up/uca/jooq/JqAnalyzer.java - About 2 hrs to fix

    File JqAnalyzer.java has 261 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    package io.vertx.up.uca.jooq;
    
    import io.horizon.eon.VString;
    import io.horizon.eon.VValue;
    import io.horizon.uca.cache.Cc;
    Severity: Minor
    Found in vertx-gaia/vertx-up/src/main/jib/io/vertx/up/uca/jooq/JqAnalyzer.java - About 2 hrs to fix

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

          private String columnName(final String field) {
              String targetField;
              if (null == this.pojo) {
                  /*
                   * The mapping is
      Severity: Minor
      Found in vertx-gaia/vertx-up/src/main/jib/io/vertx/up/uca/jooq/JqAnalyzer.java - About 2 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 columnName has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private String columnName(final String field) {
              String targetField;
              if (null == this.pojo) {
                  /*
                   * The mapping is

        There are no issues that match your filters.

        Category
        Status