silentbalanceyh/vertx-zero

View on GitHub

Showing 9,050 of 9,050 total issues

IpcRequest has 43 methods (exceeds 20 allowed). Consider refactoring.
Open

public final class IpcRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:io.vertx.mod.ipc.eon.IpcRequest)
    IpcRequestOrBuilder {
    public static final int RESPONSE_FORMAT_FIELD_NUMBER = 1;

    StreamServerRequest has 43 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public final class StreamServerRequest extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:io.vertx.mod.ipc.eon.StreamServerRequest)
        StreamServerRequestOrBuilder {
        // Use StreamServerRequest.newBuilder() to construct.

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

      /*
       * This file is generated by jOOQ.
       */
      package cn.vertxup.rbac.domain.tables;
      
      
      vertx-pin/zero-erp/src/main/java/cn/vertxup/erp/domain/tables/RCompanyCustomer.java on lines 1..161
      vertx-pin/zero-erp/src/main/java/cn/vertxup/erp/domain/tables/RTeamEmployee.java on lines 1..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 357.

      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

      /*
       * This file is generated by jOOQ.
       */
      package cn.vertxup.erp.domain.tables;
      
      
      vertx-pin/zero-erp/src/main/java/cn/vertxup/erp/domain/tables/RTeamEmployee.java on lines 1..159
      vertx-pin/zero-rbac/src/main/java/cn/vertxup/rbac/domain/tables/RGroupRole.java on lines 1..158

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

      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

      /*
       * This file is generated by jOOQ.
       */
      package cn.vertxup.erp.domain.tables;
      
      
      vertx-pin/zero-erp/src/main/java/cn/vertxup/erp/domain/tables/RCompanyCustomer.java on lines 1..161
      vertx-pin/zero-rbac/src/main/java/cn/vertxup/rbac/domain/tables/RGroupRole.java on lines 1..158

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

      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 void from(IWTodo from) {
              setKey(from.getKey());
              setSerial(from.getSerial());
              setName(from.getName());
      vertx-pin/zero-wf/src/main/java/cn/vertxup/workflow/domain/tables/pojos/WTodo.java on lines 1380..1426

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

      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 void from(IWTodo from) {
              setKey(from.getKey());
              setSerial(from.getSerial());
              setName(from.getName());
      vertx-pin/zero-wf/src/main/java/cn/vertxup/workflow/domain/tables/records/WTodoRecord.java on lines 821..867

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

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

          @Override
          public boolean equals(Object obj) {
              if (this == obj)
                  return true;
              if (obj == null)

      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

      ServerStompHandler has 42 methods (exceeds 20 allowed). Consider refactoring.
      Open

      public class ServerStompHandler implements ServerWsHandler {
      
          private static final Annal LOGGER = Annal.get(ServerStompHandler.class);
          private final Vertx vertx;
          private final Context context;

        IUiControl has 42 methods (exceeds 20 allowed). Consider refactoring.
        Open

        @SuppressWarnings({ "all", "unchecked", "rawtypes" })
        public interface IUiControl extends VertxPojo, Serializable {
        
            /**
             * Setter for <code>DB_ETERNAL.UI_CONTROL.KEY</code>. 「key」- 主键

          IUiOp has 42 methods (exceeds 20 allowed). Consider refactoring.
          Open

          @SuppressWarnings({ "all", "unchecked", "rawtypes" })
          public interface IUiOp extends VertxPojo, Serializable {
          
              /**
               * Setter for <code>DB_ETERNAL.UI_OP.KEY</code>. 「key」- 操作主键

            IETeam has 42 methods (exceeds 20 allowed). Consider refactoring.
            Open

            @SuppressWarnings({ "all", "unchecked", "rawtypes" })
            public interface IETeam extends VertxPojo, Serializable {
            
                /**
                 * Setter for <code>DB_ETERNAL.E_TEAM.KEY</code>. 「key」- 组主键

              GGraphicDao has 42 methods (exceeds 20 allowed). Consider refactoring.
              Open

              @SuppressWarnings({ "all", "unchecked", "rawtypes" })
              public class GGraphicDao extends AbstractVertxDAO<GGraphicRecord, cn.vertxup.graphic.domain.tables.pojos.GGraphic, String, Future<List<cn.vertxup.graphic.domain.tables.pojos.GGraphic>>, Future<cn.vertxup.graphic.domain.tables.pojos.GGraphic>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<GGraphicRecord,cn.vertxup.graphic.domain.tables.pojos.GGraphic,String> {
              
                      /**
                   * @param configuration The Configuration used for rendering and query

                BBagDao has 42 methods (exceeds 20 allowed). Consider refactoring.
                Open

                @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                public class BBagDao extends AbstractVertxDAO<BBagRecord, cn.vertxup.battery.domain.tables.pojos.BBag, String, Future<List<cn.vertxup.battery.domain.tables.pojos.BBag>>, Future<cn.vertxup.battery.domain.tables.pojos.BBag>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<BBagRecord,cn.vertxup.battery.domain.tables.pojos.BBag,String> {
                
                        /**
                     * @param configuration The Configuration used for rendering and query

                  ScConfig has 42 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  public class ScConfig implements Serializable {
                      private static final Cc<String, KQr> CC_KQR = Cc.open();
                      /*
                       * Pool for verify the code
                       */

                    ISView has 42 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                    public interface ISView extends VertxPojo, Serializable {
                    
                        /**
                         * Setter for <code>DB_ETERNAL.S_VIEW.KEY</code>. 「key」- 限定记录ID

                      XSourceDao has 42 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                      public class XSourceDao extends AbstractVertxDAO<XSourceRecord, cn.vertxup.ambient.domain.tables.pojos.XSource, String, Future<List<cn.vertxup.ambient.domain.tables.pojos.XSource>>, Future<cn.vertxup.ambient.domain.tables.pojos.XSource>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<XSourceRecord,cn.vertxup.ambient.domain.tables.pojos.XSource,String> {
                      
                              /**
                           * @param configuration The Configuration used for rendering and query

                        IXActivity has 42 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                        public interface IXActivity extends VertxPojo, Serializable {
                        
                            /**
                             * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键

                          MyMenuDao has 42 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                          public class MyMenuDao extends AbstractVertxDAO<MyMenuRecord, cn.vertxup.tpl.domain.tables.pojos.MyMenu, String, Future<List<cn.vertxup.tpl.domain.tables.pojos.MyMenu>>, Future<cn.vertxup.tpl.domain.tables.pojos.MyMenu>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<MyMenuRecord,cn.vertxup.tpl.domain.tables.pojos.MyMenu,String> {
                          
                                  /**
                               * @param configuration The Configuration used for rendering and query

                            FBillDao has 42 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                            public class FBillDao extends AbstractVertxDAO<FBillRecord, cn.vertxup.fm.domain.tables.pojos.FBill, String, Future<List<cn.vertxup.fm.domain.tables.pojos.FBill>>, Future<cn.vertxup.fm.domain.tables.pojos.FBill>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<FBillRecord,cn.vertxup.fm.domain.tables.pojos.FBill,String> {
                            
                                    /**
                                 * @param configuration The Configuration used for rendering and query
                              Severity
                              Category
                              Status
                              Source
                              Language