silentbalanceyh/vertx-zero

View on GitHub

Showing 9,050 of 9,050 total issues

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

    @Override
    public ConcurrentMap<String, JsonArray> column() {
        if (this.columns.isEmpty()) {
            final Set<String> modules = this.moduleSet();
            modules.forEach(item -> {
vertx-gaia/vertx-macro/src/main/plugin/io/vertx/up/plugin/booting/AbstractBoot.java on lines 72..85

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

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

    static Apt ruleApt(final JsonArray twins, final boolean isReplaced) {
        final JsonArray oldQueue = new JsonArray();
        final JsonArray newQueue = new JsonArray();
        final JsonArray updatedQueue = new JsonArray();
        final JsonArray addQueue = new JsonArray();
Severity: Minor
Found in vertx-gaia/vertx-up/src/main/java/io/vertx/up/unity/Unique.java - About 1 hr to fix

    Method analyzed has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public Set<ExTable> analyzed(final ExBound bound, final HMetaAtom metaAtom) {
            if (DevEnv.devExcelRange()) {
                LOGGER.info("[ Έξοδος ] Scan Range: {0}", bound);
            }
            try {

      Method toJson has 35 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 toJson has 35 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("NAMESPACE",getNamespace());

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

              @Override
              public void from(IPInTicket from) {
                  setKey(from.getKey());
                  setSerial(from.getSerial());
                  setType(from.getType());

            Method toString has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                @Override
                public String toString() {
                    StringBuilder sb = new StringBuilder("PCommodity (");
            
                    sb.append(key);

              Method hashCode has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  @Override
                  public int hashCode() {
                      final int prime = 31;
                      int result = 1;
                      result = prime * result + ((this.key == null) ? 0 : this.key.hashCode());

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

                    @Override
                    public void from(IPInTicket from) {
                        setKey(from.getKey());
                        setSerial(from.getSerial());
                        setType(from.getType());

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

                      @Override
                      public boolean match(final AuthorizationContext context) {
                          Objects.requireNonNull(context);
                          final User user = context.user();
                          if (user != null) {
                  vertx-pin/zero-rbac/src/main/java/cn/vertxup/rbac/wall/authorization/ProfileAuthorizationImpl.java on lines 35..50

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

                  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 match(final AuthorizationContext context) {
                          Objects.requireNonNull(context);
                          final User user = context.user();
                          if (user != null) {
                  vertx-ifx/zero-ifx-auth/src/main/java/io/vertx/up/secure/profile/PermissionAuthorizationImpl.java on lines 26..41

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

                  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

                  /*
                   * This file is generated by jOOQ.
                   */
                  package cn.vertxup.workflow.domain;
                  
                  
                  vertx-pin/zero-jet/src/main/java/cn/vertxup/jet/domain/Db.java on lines 1..66

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

                  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 3 locations. Consider refactoring.
                  Open

                          public Builder mergeEnvelop(final io.vertx.mod.ipc.eon.IpcEnvelop value) {
                              if (this.envelopBuilder_ == null) {
                                  if (this.envelop_ != null) {
                                      this.envelop_ =
                                          io.vertx.mod.ipc.eon.IpcEnvelop.newBuilder(this.envelop_).mergeFrom(value).buildPartial();
                  vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/IpcRequest.java on lines 1411..1425
                  vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/StreamServerResponse.java on lines 538..552

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

                  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 3 locations. Consider refactoring.
                  Open

                          public Builder mergeResponseStatus(final io.vertx.mod.ipc.eon.IpcStatus value) {
                              if (this.responseStatusBuilder_ == null) {
                                  if (this.responseStatus_ != null) {
                                      this.responseStatus_ =
                                          io.vertx.mod.ipc.eon.IpcStatus.newBuilder(this.responseStatus_).mergeFrom(value).buildPartial();
                  vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/IpcRequest.java on lines 1101..1115
                  vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/StreamServerResponse.java on lines 538..552

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

                  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 3 locations. Consider refactoring.
                  Open

                          public Builder mergeEnvelop(final io.vertx.mod.ipc.eon.IpcEnvelop value) {
                              if (this.envelopBuilder_ == null) {
                                  if (this.envelop_ != null) {
                                      this.envelop_ =
                                          io.vertx.mod.ipc.eon.IpcEnvelop.newBuilder(this.envelop_).mergeFrom(value).buildPartial();
                  vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/IpcRequest.java on lines 1101..1115
                  vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/IpcRequest.java on lines 1411..1425

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

                  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

                  /*
                   * This file is generated by jOOQ.
                   */
                  package cn.vertxup.jet.domain;
                  
                  
                  vertx-pin/zero-wf/src/main/java/cn/vertxup/workflow/domain/Db.java on lines 1..66

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

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

                      public UiLayoutRecord values(String value1, String value2, String value3, Boolean value4, String value5, String value6, String value7, LocalDateTime value8, String value9, LocalDateTime value10, String value11) {

                    Method values has 11 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        public TVendorAssessmentRecord values(String value1, String value2, String value3, LocalDateTime value4, LocalDateTime value5, Integer value6, String value7, Integer value8, String value9, String value10, String value11) {

                      Method values has 11 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public TOaTripRecord values(String value1, String value2, String value3, LocalDateTime value4, LocalDateTime value5, Integer value6, String value7, String value8, String value9, String value10, String value11) {

                        Method values has 11 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public TVendorHourRecord values(String value1, String value2, String value3, LocalDateTime value4, LocalDateTime value5, Integer value6, String value7, String value8, LocalDateTime value9, String value10, LocalDateTime value11) {
                          Severity
                          Category
                          Status
                          Source
                          Language