silentbalanceyh/vertx-zero

View on GitHub

Showing 9,050 of 9,050 total issues

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

    @Override
    public void from(IPBuyOrder from) {
        setKey(from.getKey());
        setSerial(from.getSerial());
        setType(from.getType());
vertx-pin/zero-psi/src/main/java/cn/vertxup/psi/domain/tables/records/PBuyOrderRecord.java on lines 741..782

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

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

File SGroup.java has 379 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * This file is generated by jOOQ.
 */
package cn.vertxup.rbac.domain.tables.pojos;

    File XModule.java has 379 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * This file is generated by jOOQ.
     */
    package cn.vertxup.ambient.domain.tables.pojos;
    
    

      File MyBag.java has 379 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * This file is generated by jOOQ.
       */
      package cn.vertxup.tpl.domain.tables.pojos;
      
      

        File MIndex.java has 379 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
         * This file is generated by jOOQ.
         */
        package cn.vertxup.atom.domain.tables.pojos;
        
        

          File MEntity.java has 379 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*
           * This file is generated by jOOQ.
           */
          package cn.vertxup.atom.domain.tables.pojos;
          
          

            File VTable.java has 378 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*
             * This file is generated by jOOQ.
             */
            package cn.vertxup.ui.domain.tables.pojos;
            
            

              _Io has 38 methods (exceeds 20 allowed). Consider refactoring.
              Open

              class _Io extends _Inverse {
                  protected _Io() {
                  }
              
                  /**
              Severity: Minor
              Found in vertx-gaia/vertx-ams/src/main/java/io/horizon/util/_Io.java - About 5 hrs to fix

                KNaming has 38 methods (exceeds 20 allowed). Consider refactoring.
                Open

                public class KNaming implements Serializable {
                    // Qr Only
                    private final Set<String> qrKeys = new HashSet<>();
                    // System Business Field
                    private String key;

                  UiControlDao has 38 methods (exceeds 20 allowed). Consider refactoring.
                  Open

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

                    UiOpDao has 38 methods (exceeds 20 allowed). Consider refactoring.
                    Open

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

                      ETeamDao has 38 methods (exceeds 20 allowed). Consider refactoring.
                      Open

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

                        IGEdge has 38 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                        public interface IGEdge extends VertxPojo, Serializable {
                        
                            /**
                             * Setter for <code>DB_ETERNAL.G_EDGE.KEY</code>. 「key」- 拓扑图边的ID

                          File IJobRecord.java has 375 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*
                           * This file is generated by jOOQ.
                           */
                          package cn.vertxup.jet.domain.tables.records;
                          
                          

                            SViewDao has 38 methods (exceeds 20 allowed). Consider refactoring.
                            Open

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

                              IXTabular has 38 methods (exceeds 20 allowed). Consider refactoring.
                              Open

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

                                File POutTicketRecord.java has 375 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*
                                 * This file is generated by jOOQ.
                                 */
                                package cn.vertxup.psi.domain.tables.records;
                                
                                

                                  XActivityDao has 38 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

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

                                    IXActivityChange has 38 methods (exceeds 20 allowed). Consider refactoring.
                                    Open

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

                                      IPCommodityHis has 38 methods (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                                      public interface IPCommodityHis extends VertxPojo, Serializable {
                                      
                                          /**
                                           * Setter for <code>DB_ETERNAL.P_COMMODITY_HIS.KEY</code>. 「key」- 产品变更记录主键
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language