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

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

vertx-pin/zero-rbac/src/main/java/cn/vertxup/rbac/domain/tables/SPermSet.java on lines 1..209

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

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 GEdgeRecord.java has 563 lines of code (exceeds 250 allowed). Consider refactoring.
Open

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

    File XTabularRecord.java has 563 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

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

      File XActivityChangeRecord.java has 563 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

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

        EProject has 65 methods (exceeds 20 allowed). Consider refactoring.
        Open

        @SuppressWarnings({ "all", "unchecked", "rawtypes" })
        public class EProject implements VertxPojo, IEProject {
        
            private static final long serialVersionUID = 1L;
        
        

          ECompanyRecord has 65 methods (exceeds 20 allowed). Consider refactoring.
          Open

          @SuppressWarnings({ "all", "unchecked", "rawtypes" })
          public class ECompanyRecord extends UpdatableRecordImpl<ECompanyRecord> implements VertxPojo, IECompany {
          
              private static final long serialVersionUID = 1L;
          
          

            IApiRecord has 65 methods (exceeds 20 allowed). Consider refactoring.
            Open

            @SuppressWarnings({ "all", "unchecked", "rawtypes" })
            public class IApiRecord extends UpdatableRecordImpl<IApiRecord> implements VertxPojo, IIApi {
            
                private static final long serialVersionUID = 1L;
            
            

              PBuyItemRecord has 65 methods (exceeds 20 allowed). Consider refactoring.
              Open

              @SuppressWarnings({ "all", "unchecked", "rawtypes" })
              public class PBuyItemRecord extends UpdatableRecordImpl<PBuyItemRecord> implements VertxPojo, IPBuyItem {
              
                  private static final long serialVersionUID = 1L;
              
              

                FBillItemRecord has 65 methods (exceeds 20 allowed). Consider refactoring.
                Open

                @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                public class FBillItemRecord extends UpdatableRecordImpl<FBillItemRecord> implements VertxPojo, IFBillItem {
                
                    private static final long serialVersionUID = 1L;
                
                

                  MAttribute has 65 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                  public class MAttribute implements VertxPojo, IMAttribute {
                  
                      private static final long serialVersionUID = 1L;
                  
                  

                    IEProject has 64 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                    public interface IEProject extends VertxPojo, Serializable {
                    
                        /**
                         * Setter for <code>DB_ETERNAL.E_PROJECT.KEY</code>. 「key」- 项目ID

                      PCommodityDao has 64 methods (exceeds 20 allowed). Consider refactoring.
                      Open

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

                        IMAttribute has 64 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        @SuppressWarnings({ "all", "unchecked", "rawtypes" })
                        public interface IMAttribute extends VertxPojo, Serializable {
                        
                            /**
                             * Setter for <code>DB_ETERNAL.M_ATTRIBUTE.KEY</code>. 「key」- 属性ID

                          File UiField.java has 555 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

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

                            File UiView.java has 555 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

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

                              File SResource.java has 555 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

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

                                File SVisitant.java has 555 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

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

                                  File XCategory.java has 555 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

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

                                    File XApp.java has 555 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

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

                                      File TplModel.java has 555 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      /*
                                       * This file is generated by jOOQ.
                                       */
                                      package cn.vertxup.tpl.domain.tables.pojos;
                                      
                                      
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language