silentbalanceyh/vertx-zero

View on GitHub

Showing 9,050 of 9,050 total issues

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

    static void registry(final HAmbient ambient) {
        if (null == CONFIG) {
            final JsonObject configData = Ut.ioJObject(AoFolder.CONFIG_FILE);
            final String module = Ke.getExtension(KeIpc.Module.ATOM);
            LOG.Init.info(AoConfiguration.class, KeMsg.Configuration.DATA_J,
vertx-pin/zero-crud/src/main/modulat/io/vertx/mod/crud/init/_IxConfiguration.java on lines 31..47
vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/init/_ScConfiguration.java on lines 24..40

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

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

    static void registry(final HAmbient ambient) {
        /*
         * Read definition of security configuration from RBAC default folder
         */
        if (null == CONFIG) {
vertx-pin/zero-atom/src/main/modulat/io/vertx/mod/atom/init/_AoConfiguration.java on lines 20..33
vertx-pin/zero-rbac/src/main/modulat/io/vertx/mod/rbac/init/_ScConfiguration.java on lines 24..40

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

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 from has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void from(IWTicket from) {
        setKey(from.getKey());
        setSerial(from.getSerial());
        setName(from.getName());

    Method from has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @Override
        public void from(IWTicket from) {
            setKey(from.getKey());
            setSerial(from.getSerial());
            setName(from.getName());

      Method from has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public void from(IEIdentity from) {
              setKey(from.getKey());
              setCode(from.getCode());
              setType(from.getType());

        Method from has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            @Override
            public void from(IEIdentity from) {
                setKey(from.getKey());
                setCode(from.getCode());
                setType(from.getType());

          Method toJson has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  @Override
                  public default io.vertx.core.json.JsonObject toJson() {
                          io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();
                          json.put("KEY",getKey());
                          json.put("SERIAL",getSerial());

            Method mergeFrom has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public Builder mergeFrom(io.vertx.mod.ipc.eon.StreamServerRequest other) {
                        if (other == io.vertx.mod.ipc.eon.StreamServerRequest.getDefaultInstance()) return this;
                        if (other.responseType_ != 0) {
                            setResponseTypeValue(other.getResponseTypeValue());
                        }

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

                      Ut.itJArray(directoryD).forEach(json -> {
                          final String storePath = json.getString(KName.STORE_PATH);
                          if (Ut.isNotNil(storePath)) {
                              final JsonObject child = Ux.whereAnd();
                              child.put(KName.STORE_PATH + ",s", json.getString(KName.STORE_PATH));
              vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/file/DocWriter.java on lines 130..138

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

              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

                      Ut.itJArray(directory).forEach(json -> {
                          final String storePath = json.getString(KName.STORE_PATH);
                          if (Ut.isNotNil(storePath)) {
                              final JsonObject child = Ux.whereAnd();
                              child.put(KName.STORE_PATH + ",s", json.getString(KName.STORE_PATH));
              vertx-pin/zero-is/src/main/jib/io/horizon/spi/business/ExPath.java on lines 244..252

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

              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.plugin.rpc;
              
              import io.horizon.uca.cache.Cc;
              import io.vertx.core.Vertx;
              import io.vertx.up.annotations.Infusion;
              vertx-ifx/zero-ifx-mongo/src/main/java/io/vertx/up/plugin/mongo/MongoInfix.java on lines 1..41

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

              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.up.plugin.mongo;
              
              import io.horizon.uca.cache.Cc;
              import io.vertx.core.Vertx;
              import io.vertx.ext.mongo.MongoClient;
              vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/plugin/rpc/RpcInfix.java on lines 1..39

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

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

                  public VSearchRecord values(String value1, Boolean value2, Boolean value3, String value4, String value5, String value6, String value7, String value8, String value9, String value10, String value11, String value12, String value13) {

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

                    public LRegionRecord values(String value1, String value2, String value3, String value4, Integer value5, String value6, Boolean value7, String value8, String value9, LocalDateTime value10, String value11, LocalDateTime value12, String value13) {

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

                      public LYardRecord values(String value1, String value2, String value3, String value4, Integer value5, String value6, Boolean value7, String value8, String value9, LocalDateTime value10, String value11, LocalDateTime value12, String value13) {

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

                        public LCityRecord values(String value1, String value2, String value3, String value4, Integer value5, String value6, Boolean value7, String value8, String value9, LocalDateTime value10, String value11, LocalDateTime value12, String value13) {

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

                          public LFloorRecord values(String value1, String value2, String value3, String value4, Integer value5, String value6, Boolean value7, String value8, String value9, LocalDateTime value10, String value11, LocalDateTime value12, String value13) {

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

                            public SPermSetRecord values(String value1, String value2, String value3, String value4, String value5, String value6, Boolean value7, String value8, String value9, LocalDateTime value10, String value11, LocalDateTime value12, String value13) {

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

                              public SPermissionRecord values(String value1, String value2, String value3, String value4, String value5, String value6, Boolean value7, String value8, String value9, LocalDateTime value10, String value11, LocalDateTime value12, String value13) {

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

                                public MRelationRecord values(String value1, String value2, String value3, String value4, String value5, String value6, String value7, Boolean value8, String value9, LocalDateTime value10, String value11, LocalDateTime value12, String value13) {
                              Severity
                              Category
                              Status
                              Source
                              Language