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

    private Future<Boolean> initJobs(final Vertx vertx) {
        final IJobDao jobDao = new IJobDao(this.poolMeta.getExecutor().configuration(), vertx);
        if (this.jobs.isEmpty()) {
            /*
             * Map for JOB + Service
vertx-pin/zero-jet/src/main/modulat/io/vertx/mod/jet/init/ServiceEnvironment.java on lines 138..161

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

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

    private Future<Boolean> initUris(final Vertx vertx) {
        final IApiDao apiDao = new IApiDao(this.poolMeta.getExecutor().configuration(), vertx);
        if (this.uris.isEmpty()) {
            /*
             * Map for API + Service
vertx-pin/zero-jet/src/main/modulat/io/vertx/mod/jet/init/ServiceEnvironment.java on lines 112..136

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

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.modello.dynamic.modular.id;

import cn.vertxup.atom.domain.tables.pojos.MJoin;
import io.modello.specification.HRecord;
import io.vertx.mod.atom.error._417PrimaryKeySizeException;
vertx-pin/zero-atom/src/main/modeler/io/modello/dynamic/modular/id/JoinMultiId.java on lines 1..52

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

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.modello.dynamic.modular.id;

import cn.vertxup.atom.domain.tables.pojos.MJoin;
import io.modello.specification.HRecord;
import io.vertx.mod.atom.error._417PrimaryKeySizeException;
vertx-pin/zero-atom/src/main/modeler/io/modello/dynamic/modular/id/JoinKeyId.java on lines 1..53

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

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

    public GGraphicRecord values(String value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, String value9, Boolean value10, String value11, String value12, String value13, String value14, String value15, Boolean value16, String value17, LocalDateTime value18, String value19, LocalDateTime value20, String value21) {

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

        public BBagRecord values(String value1, String value2, String value3, String value4, String value5, String value6, String value7, Long value8, String value9, Boolean value10, String value11, String value12, String value13, Boolean value14, String value15, String value16, String value17, LocalDateTime value18, String value19, LocalDateTime value20, String value21) {

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

          public XSourceRecord values(String value1, String value2, String value3, String value4, Integer value5, String value6, String value7, String value8, String value9, String value10, String value11, String value12, String value13, Boolean value14, String value15, String value16, String value17, LocalDateTime value18, String value19, LocalDateTime value20, String value21) {

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

            public MyMenuRecord values(String value1, String value2, String value3, String value4, Long value5, String value6, String value7, String value8, String value9, String value10, String value11, String value12, String value13, Boolean value14, String value15, String value16, String value17, LocalDateTime value18, String value19, LocalDateTime value20, String value21) {

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

              public FBillRecord values(String value1, String value2, String value3, String value4, String value5, String value6, BigDecimal value7, Boolean value8, String value9, String value10, String value11, String value12, String value13, String value14, String value15, Boolean value16, String value17, LocalDateTime value18, String value19, LocalDateTime value20, String value21) {

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

                public MModelRecord values(String value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, String value9, String value10, Boolean value11, String value12, String value13, String value14, String value15, Boolean value16, String value17, LocalDateTime value18, String value19, LocalDateTime value20, String value21) {

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

              package io.vertx.mod.rbac.authorization.child;
              
              import io.vertx.core.json.JsonObject;
              import io.vertx.mod.rbac.authorization.Align;
              import io.vertx.mod.rbac.authorization.Amalgam;
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/child/GcCritical.java on lines 1..74
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/parent/GpCritical.java on lines 1..74
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/parent/GpOverlook.java on lines 1..70

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

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

              package io.vertx.mod.rbac.authorization.child;
              
              import io.vertx.core.json.JsonObject;
              import io.vertx.mod.rbac.authorization.Align;
              import io.vertx.mod.rbac.authorization.Amalgam;
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/child/GcOverlook.java on lines 1..70
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/parent/GpCritical.java on lines 1..74
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/parent/GpOverlook.java on lines 1..70

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

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

              package io.vertx.mod.rbac.authorization.parent;
              
              import io.vertx.core.json.JsonObject;
              import io.vertx.mod.rbac.authorization.Align;
              import io.vertx.mod.rbac.authorization.Amalgam;
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/child/GcCritical.java on lines 1..74
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/child/GcOverlook.java on lines 1..70
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/parent/GpCritical.java on lines 1..74

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

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

              package io.vertx.mod.rbac.authorization.parent;
              
              import io.vertx.core.json.JsonObject;
              import io.vertx.mod.rbac.authorization.Align;
              import io.vertx.mod.rbac.authorization.Amalgam;
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/child/GcCritical.java on lines 1..74
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/child/GcOverlook.java on lines 1..70
              vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/authorization/parent/GpOverlook.java on lines 1..70

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

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

              package io.horizon.util;
              
              import io.horizon.eon.VString;
              import io.horizon.exception.internal.OperationException;
              import io.horizon.fn.HFn;
              Severity: Minor
              Found in vertx-gaia/vertx-ams/src/main/java/io/horizon/util/HInstance.java - About 2 hrs to fix

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

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

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

                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.atom.domain;
                
                
                vertx-pin/zero-tpl/src/main/java/cn/vertxup/tpl/domain/Db.java on lines 1..100

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

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

                    void compileComplex(final JsonArray data, final HMetaAtom atom) {
                        this.types.clear();
                
                        // index = 2
                        final JsonArray fields = data.getJsonArray(VValue.TWO);

                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

                File Jackson.java has 273 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                package io.vertx.up.util;
                
                import io.horizon.eon.VString;
                import io.horizon.eon.VValue;
                import io.horizon.eon.em.typed.ChangeFlag;
                Severity: Minor
                Found in vertx-gaia/vertx-co/src/main/java/io/vertx/up/util/Jackson.java - About 2 hrs to fix

                  File LTent.java has 272 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

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