silentbalanceyh/vertx-zero

View on GitHub

Showing 9,050 of 9,050 total issues

Method from has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void from(IFInvoice from) {
        setKey(from.getKey());
        setName(from.getName());
        setCode(from.getCode());

    Method from has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @Override
        public void from(IFInvoice from) {
            setKey(from.getKey());
            setName(from.getName());
            setCode(from.getCode());

      Method from has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public void from(IIIntegration from) {
              setKey(from.getKey());
              setName(from.getName());
              setType(from.getType());

        Method from has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            @Override
            public void from(IIIntegration from) {
                setKey(from.getKey());
                setName(from.getName());
                setType(from.getType());

          Method field has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              static Kv<String, String> field(final Object value) {
                  if (KWeb.ARGS.V_HOLDER.equals(value)) {
                      return null;
                  }
                  final String field;

            Method mergeFrom has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public Builder mergeFrom(final io.vertx.mod.ipc.eon.IpcRequest other) {
                        if (other == io.vertx.mod.ipc.eon.IpcRequest.getDefaultInstance()) {
                            return this;
                        }
                        if (other.responseFormat_ != 0) {

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

              package io.mature.extension.uca.console;
              
              import io.mature.extension.migration.Migrate;
              import io.mature.extension.migration.MigrateService;
              import io.mature.extension.scaffold.console.AbstractInstruction;
              vertx-pin/zero-vie/src/main/jib/io/mature/extension/uca/console/RestoreInstruction.java on lines 1..27

              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 79.

              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.uca.console;
              
              import io.mature.extension.migration.Migrate;
              import io.mature.extension.migration.MigrateService;
              import io.mature.extension.scaffold.console.AbstractInstruction;
              vertx-pin/zero-vie/src/main/jib/io/mature/extension/uca/console/BackUpInstruction.java on lines 1..28

              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 79.

              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

                  Future<Envelop> invoke(final Envelop envelop, final Mission mission) {
                      final Method method = mission.getOn();
                      if (Objects.nonNull(method)) {
                          Element.onceLog(mission, () -> LOGGER.info(VMessage.Job.PHASE.PHASE_3RD_JOB_RUN, mission.getCode(), method.getName()));
                          return this.execute(envelop, method, mission);
              vertx-gaia/vertx-up/src/main/jib/io/vertx/up/uca/job/phase/RunOn.java on lines 45..54

              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 79.

              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

                  Future<Envelop> callback(final Envelop envelop, final Mission mission) {
                      final Method method = mission.getOff();
                      if (Objects.nonNull(method)) {
                          Element.onceLog(mission, () -> LOGGER.info(VMessage.Job.PHASE.PHASE_6TH_JOB_CALLBACK, mission.getCode(), method.getName()));
                          return this.execute(envelop, method, mission);
              vertx-gaia/vertx-up/src/main/jib/io/vertx/up/uca/job/phase/RunOn.java on lines 35..43

              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 79.

              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

              Identical blocks of code found in 3 locations. Consider refactoring.
              Open

                  @Override
                  public boolean equals(final Object o) {
                      if (this == o) {
                          return true;
                      }
              vertx-gaia/vertx-ams/src/main/java/io/horizon/atom/common/KPair.java on lines 42..52
              vertx-pin/zero-wf/src/main/modulat/io/vertx/mod/workflow/atom/runtime/WRule.java on lines 99..109

              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 78.

              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

              Identical blocks of code found in 3 locations. Consider refactoring.
              Open

                  @Override
                  public boolean equals(final Object o) {
                      if (this == o) {
                          return true;
                      }
              vertx-gaia/vertx-up/src/main/java/io/vertx/up/atom/worker/Remind.java on lines 107..117
              vertx-pin/zero-wf/src/main/modulat/io/vertx/mod/workflow/atom/runtime/WRule.java on lines 99..109

              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 78.

              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<JsonArray> trashIn(final JsonArray documentA) {
                      return this.trashSplit(documentA,
                          // Update all attachmentA
                          (attachmentA) -> this.attachment.updateAsync(attachmentA, Boolean.FALSE),
              vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/file/DocWriter.java on lines 101..111

              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 78.

              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

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

                  @Override
                  public boolean equals(final Object o) {
                      if (this == o) {
                          return true;
                      }
              vertx-gaia/vertx-up/src/main/jib/io/vertx/up/uca/soul/UriMeta.java on lines 138..149

              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 78.

              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, O> O channelSync(final Class<T> clazz, final Supplier<O> supplier,
                                              final Function<T, O> executor) {
                      final T channel = Pocket.lookup(clazz);
                      if (Objects.isNull(channel)) {
                          LOGGER.warn("「SL Channel」Channel Sync {0} null", clazz.getName());
              vertx-gaia/vertx-up/src/main/java/io/vertx/up/unity/Async.java on lines 203..214

              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 78.

              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

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

                  @Override
                  public boolean equals(final Object o) {
                      if (this == o) {
                          return true;
                      }
              vertx-gaia/vertx-ams/src/main/macro/io/macrocosm/atom/boot/KRepo.java on lines 106..116

              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 78.

              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<JsonObject> fetchById(final String formId) {
                      return Ux.Jooq.on(UiFormDao.class).<UiForm>fetchByIdAsync(formId)
                          .compose(form -> {
                              if (Objects.isNull(form)) {
              vertx-pin/zero-ui/src/main/java/cn/vertxup/ui/service/ListService.java on lines 29..47

              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 78.

              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<JsonArray> trashOut(final JsonArray documentA) {
                      return this.trashSplit(documentA,
                          // Update all attachmentA
                          (attachmentA) -> this.attachment.updateAsync(attachmentA, Boolean.TRUE),
              vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/file/DocWriter.java on lines 89..99

              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 78.

              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

                          if (ChangeFlag.ADD == flag) {
              
                              /* 主记录添加 */
                              final Set<String> added = this.onSet(newRecord.fieldNames(), atom, ignores, newRecord::getValue);
                              this.onAttribute(added, atom, (attrName, change) -> {
              vertx-pin/zero-vie/src/main/jib/io/mature/extension/uca/log/AtRunner.java on lines 203..213

              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 78.

              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<JsonObject> fetchById(final String listId) {
                      /*
                       * Read list configuration for configuration
                       */
              vertx-pin/zero-ui/src/main/java/cn/vertxup/ui/service/FormService.java on lines 25..40

              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 78.

              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

              Severity
              Category
              Status
              Source
              Language