silentbalanceyh/vertx-zero

View on GitHub

Showing 9,050 of 9,050 total issues

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

        @Override
        public default io.vertx.core.json.JsonObject toJson() {
                io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();
                json.put("KEY",getKey());
                json.put("NAME",getName());

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

            @Override
            public default IMAttribute fromJson(io.vertx.core.json.JsonObject json) {
                    setOrThrow(this::setKey,json::getString,"KEY","java.lang.String");
                    setOrThrow(this::setName,json::getString,"NAME","java.lang.String");
                    setOrThrow(this::setAlias,json::getString,"ALIAS","java.lang.String");

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

                  } else if (HUt.isInteger(type) || HUt.isDecimal(type)) {
      
                      return Float.parseFloat(value.toString());
                  } else if (BigDecimal.class == type) {
      
      
      vertx-gaia/vertx-ams/src/main/jib/io/horizon/uca/convert/DoubleVto.java on lines 21..34

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 84.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

          @Override
          public Future<Boolean> numberAppR(final String appId, final String code, final Long defaultValue) {
              LOG.Flow.info(this.getClass(), "Serial Reset: appId = {0}, code = {1}, default = {2}", appId, code, String.valueOf(defaultValue));
      
              final JsonObject condition = new JsonObject();
      vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 150..159

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 84.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

          @Override
          public Future<Boolean> numberSigmaR(final String sigma, final String code, final Long defaultValue) {
              LOG.Flow.info(this.getClass(), "Serial Reset: sigma = {0}, code = {1}, default = {2}", sigma, code, String.valueOf(defaultValue));
      
              final JsonObject condition = new JsonObject();
      vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 139..148

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 84.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

          static <T> Future<List<T>> combineT(final List<Future<T>> futures) {
              final List<Future> futureList = new ArrayList<>(futures);
              return CompositeFuture.join(futureList).compose(finished -> {
                  final List<T> result = new ArrayList<>();
                  finished.list().stream().filter(Objects::nonNull)
      vertx-gaia/vertx-ams/src/main/java/io/horizon/fn/HArrange.java on lines 38..46

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 84.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

          static <T> Future<Set<T>> combineT(final Set<Future<T>> futures) {
              final List<Future> futureList = new ArrayList<>(futures);
              return CompositeFuture.join(futureList).compose(finished -> {
                  final Set<T> result = new HashSet<>();
                  finished.list().stream().filter(Objects::nonNull)
      vertx-gaia/vertx-ams/src/main/java/io/horizon/fn/HArrange.java on lines 28..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 84.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

                  } else if (HUt.isInteger(type) || HUt.isDecimal(type)) {
      
                      return Double.parseDouble(value.toString());
                  } else if (BigDecimal.class == type) {
      
      
      vertx-gaia/vertx-ams/src/main/jib/io/horizon/uca/convert/FloatVto.java on lines 22..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 84.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      package io.mature.extension.spi.component;
      
      import io.mature.extension.scaffold.stdn.AbstractHMore;
      import io.vertx.core.Future;
      import io.vertx.core.json.JsonArray;
      vertx-pin/zero-vie/src/main/jib/io/mature/extension/spi/component/DeleteComponent.java on lines 1..74

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 83.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

          public JsonArray dataOut(final JsonArray active, final JsonArray standBy) {
      
              final JsonArray zip = new JsonArray();
              this.zipData(active, standBy, (source, target) -> {
                  // Check Target
      vertx-pin/zero-crud/src/main/modulat/io/vertx/mod/crud/uca/desk/IxMod.java on lines 179..200

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 83.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      package cn.vertxup.crud.api;
      
      import io.vertx.core.json.JsonArray;
      import io.vertx.core.json.JsonObject;
      import io.vertx.mod.crud.cv.Addr;
      vertx-pin/zero-crud/src/main/java/cn/vertxup/crud/api/DeleteAgent.java on lines 1..34

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 83.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      package io.mature.extension.spi.component;
      
      import io.mature.extension.scaffold.stdn.AbstractHOne;
      import io.vertx.core.Future;
      import io.vertx.core.json.JsonObject;
      vertx-pin/zero-vie/src/main/jib/io/mature/extension/spi/component/BatchDeleteComponent.java on lines 1..93

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 83.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      package cn.vertxup.crud.api;
      
      import io.vertx.core.json.JsonArray;
      import io.vertx.mod.crud.cv.Addr;
      import io.vertx.up.annotations.Address;
      vertx-pin/zero-crud/src/main/java/cn/vertxup/crud/api/GetAgent.java on lines 1..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 83.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

          public JsonArray dataIn(final JsonArray input, final JsonArray active) {
              /*
               * input contains the whole data array
               * active contains the inserted X_CATEGORY only
               * Zip by
      vertx-pin/zero-crud/src/main/modulat/io/vertx/mod/crud/uca/desk/IxMod.java on lines 202..216

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 83.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Method connect has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public Mission connect(final Class<?> clazz) {
              /*
               * Here the system should connect clazz to set:
               * 1. proxy
               *    - on

        Method invoker has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static Invoker invoker(final Class<?> returnType,
                                          final Class<?> paramCls) {
                Invoker invoker = null;
                if (void.class == returnType || Void.class == returnType) {
        
        

          Method combine has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              @Override
              public UxJooq combine(final KModule module, final KModule connect, final MultiMap headers) {
                  Objects.requireNonNull(module);
                  Objects.requireNonNull(headers);
                  /*

            Method future has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                @SuppressWarnings("all")
                static <T> Future<T> future(final T input, final List<Function<T, Future<T>>> queues) {
                    if (0 == queues.size()) {
                        /*
                         * None queue here
            Severity: Minor
            Found in vertx-gaia/vertx-up/src/main/java/io/vertx/up/unity/Async.java - About 1 hr to fix

              Method toFile has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  static <T> T toFile(final FileUpload fileUpload, final Class<?> expected, final Function<String, Buffer> consumer) {
                      final String filename = fileUpload.uploadedFileName();
                      if (FileUpload.class.isAssignableFrom(expected)) {
                          /*
                           * FileUpload ( interface )
              Severity: Minor
              Found in vertx-gaia/vertx-up/src/main/java/io/vertx/up/unity/Upload.java - About 1 hr to fix

                Method run has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private Future<TermStatus> run(final Terminal terminal) {
                        final Promise<TermStatus> promise = Promise.promise();
                
                        final BiConsumer<Terminal, TermStatus> consumer = (terminalRef, status) -> {
                            /* Environment input again */
                  Severity
                  Category
                  Status
                  Source
                  Language