silentbalanceyh/vertx-zero

View on GitHub

Showing 9,050 of 9,050 total issues

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

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

vertx-pin/zero-atom/src/main/java/cn/vertxup/atom/domain/tables/daos/MRelationDao.java on lines 1..221
vertx-pin/zero-lbs/src/main/java/cn/vertxup/lbs/domain/tables/daos/LCityDao.java on lines 1..221
vertx-pin/zero-lbs/src/main/java/cn/vertxup/lbs/domain/tables/daos/LFloorDao.java on lines 1..221
vertx-pin/zero-lbs/src/main/java/cn/vertxup/lbs/domain/tables/daos/LRegionDao.java on lines 1..221
vertx-pin/zero-rbac/src/main/java/cn/vertxup/rbac/domain/tables/daos/SPermSetDao.java on lines 1..221
vertx-pin/zero-rbac/src/main/java/cn/vertxup/rbac/domain/tables/daos/SPermissionDao.java on lines 1..221
vertx-pin/zero-ui/src/main/java/cn/vertxup/ui/domain/tables/daos/VSearchDao.java on lines 1..227

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

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

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

vertx-pin/zero-lbs/src/main/java/cn/vertxup/lbs/domain/tables/LYard.java on lines 1..176

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

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

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

vertx-pin/zero-lbs/src/main/java/cn/vertxup/lbs/domain/tables/LFloor.java on lines 1..175

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

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.vertx.mod.ipc.service;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/service/DupliexServiceGrpc.java on lines 1..220

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

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.vertx.mod.ipc.service;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/service/ConsumeServiceGrpc.java on lines 1..220

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

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

WFlowRecord has 59 methods (exceeds 20 allowed). Consider refactoring.
Open

@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class WFlowRecord extends UpdatableRecordImpl<WFlowRecord> implements VertxPojo, IWFlow {

    private static final long serialVersionUID = 1L;

    IJobRecord has 59 methods (exceeds 20 allowed). Consider refactoring.
    Open

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

      POutTicketRecord has 59 methods (exceeds 20 allowed). Consider refactoring.
      Open

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

        BBlockDao has 58 methods (exceeds 20 allowed). Consider refactoring.
        Open

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

          POutItemDao has 58 methods (exceeds 20 allowed). Consider refactoring.
          Open

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

            FInvoiceDao has 58 methods (exceeds 20 allowed). Consider refactoring.
            Open

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

              IIntegrationDao has 58 methods (exceeds 20 allowed). Consider refactoring.
              Open

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

                File FBill.java has 512 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

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

                  File GGraphic.java has 511 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

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

                    File BBag.java has 511 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

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

                      File XSource.java has 511 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

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

                        File MyMenu.java has 511 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

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

                          File MModel.java has 511 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

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

                            Method equals has a Cognitive Complexity of 53 (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

                            Method equals has a Cognitive Complexity of 53 (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

                            Severity
                            Category
                            Status
                            Source
                            Language