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

    @Address(Addr.Post.EXISTING)
    public Future<Envelop> existing(final Envelop envelop) {
        final IxWeb request = IxWeb.create(ApiSpec.BODY_JSON).build(envelop);
        return IxPanel.on(request)
            .input(
vertx-pin/zero-crud/src/main/java/cn/vertxup/crud/api/QueryActor.java on lines 65..75

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

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

    @Override
    public Future<JsonArray> numberSigma(final String sigma, final String code, final Integer count) {
        LOG.Flow.info(this.getClass(), "Serial Gen: sigma = {0}, code = {1}, count = {2}", sigma, code, count);
        // SIGMA = ? AND CODE = ?
        final JsonObject condition = new JsonObject();
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 94..103
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 106..115
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 128..137

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

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

    @Address(Addr.Post.MISSING)
    public Future<Envelop> missing(final Envelop envelop) {
        final IxWeb request = IxWeb.create(ApiSpec.BODY_JSON).build(envelop);
        return IxPanel.on(request)
            .input(
vertx-pin/zero-crud/src/main/java/cn/vertxup/crud/api/QueryActor.java on lines 53..63

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

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

    @Override
    public Future<JsonArray> numberSigmaI(final String sigma, final String identifier, final Integer count) {
        LOG.Flow.info(this.getClass(), "Serial Gen: sigma = {0}, identifier = {1}, count = {2}", sigma, identifier, count);
        // SIGMA = ? AND IDENTIFIER = ?
        final JsonObject condition = new JsonObject();
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 94..103
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 106..115
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 117..126

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

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

        public Builder mergeEnvelop(io.vertx.mod.ipc.eon.IpcEnvelop value) {
            if (envelopBuilder_ == null) {
                if (envelop_ != null) {
                    envelop_ =
                        io.vertx.mod.ipc.eon.IpcEnvelop.newBuilder(envelop_).mergeFrom(value).buildPartial();
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/IpcResponse.java on lines 640..654
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/StreamClientRequest.java on lines 472..486
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/StreamServerRequest.java on lines 1219..1233

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

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

        public Builder mergeEnvelop(io.vertx.mod.ipc.eon.IpcEnvelop value) {
            if (envelopBuilder_ == null) {
                if (envelop_ != null) {
                    envelop_ =
                        io.vertx.mod.ipc.eon.IpcEnvelop.newBuilder(envelop_).mergeFrom(value).buildPartial();
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/IpcResponse.java on lines 640..654
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/StreamServerRequest.java on lines 1044..1058
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/StreamServerRequest.java on lines 1219..1233

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

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

    @Override
    public Future<JsonArray> numberAppI(final String appId, final String identifier, final Integer count) {
        LOG.Flow.info(this.getClass(), "Serial Gen: appId = {0}, identifier = {1}, count = {2}", appId, identifier, count);
        // APP_ID = ? AND IDENTIFIER = ?
        final JsonObject condition = new JsonObject();
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 94..103
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 117..126
vertx-pin/zero-ambient/src/main/java/cn/vertxup/ambient/service/DatumService.java on lines 128..137

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

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

        } else {
            if (VValue.TWO <= tableData.size()) {
                /*
                 * 0, 1 processing
                 */
vertx-ifx/zero-ifx-excel/src/main/java/io/vertx/up/plugin/excel/tool/ExData.java on lines 88..103

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

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

    static <T, R> ConcurrentMap<ChangeFlag, List<T>> compare(final List<T> original, final List<T> current,
                                                             final Function<T, R> fnValue,
                                                             final String pojoFile) {
        final ConcurrentMap<ChangeFlag, List<T>> comparedMap = new ConcurrentHashMap<ChangeFlag, List<T>>() {
            {
Severity: Minor
Found in vertx-gaia/vertx-up/src/main/java/io/vertx/up/unity/Compare.java - About 1 hr to fix

    Method extract has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @Override
        public Mission extract(final Class<?> clazz) {
            /*
             * Mission initializing
             */

      Method partData has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private void partData(final Envelop envelop) {
              final JsonObject rawJson = envelop.data();
              if (!Ut.isNil(rawJson)) {
                  final long counter = rawJson.fieldNames().stream()
                      .filter(KWeb.MULTI.INDEXES::containsValue)

        Method wrapAop has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            @SuppressWarnings("all")
            <T> Function<T, Future<T>> wrapAop(
                final Before before, final Function<T, Future<T>> executor, final After after,
                final JsonObject configuration) {
                Objects.requireNonNull(executor);

          Method convert has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              static JsonObject convert(
                  final JsonObject entity,
                  final ConcurrentMap<String, String> mapping,
                  final boolean immutable
              ) {

            Method itSheet has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static void itSheet(final Sheet sheet,
                                           final ExBound bound,
                                           final Set<Integer> indexSet,
                                           final Consumer<List<Row>> consumer) {
                    /* Start / End */

              Method searchData has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private static <T> T searchData(final JsonObject data,
                                                  final Class<T> clazz,
                                                  final String... pathes) {
                      if (null == data || VValue.ZERO == pathes.length) {
                          return null;
              Severity: Minor
              Found in vertx-gaia/vertx-co/src/main/java/io/vertx/up/util/Jackson.java - About 1 hr to fix

                Method analyze has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    @Override
                    public Queue<Instant> analyze(final List<String> formulas, final Instant instant) {
                        final List<Instant> parsedList = new ArrayList<>();
                        formulas.forEach(formula -> {
                            final String[] segments = formula.split(VString.SLASH);

                  Method checkOrFetchAuthorizations has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private void checkOrFetchAuthorizations(final RoutingContext routingContext,
                                                              final Authorization resource,
                                                              final AuthorizationContext authorizationContext,
                                                              final Iterator<AuthorizationProvider> providers) {
                          if (resource.match(authorizationContext)) {

                    Method initColumn has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private static void initColumn(final UiConfig config) {
                            /* Original `mapping` read */
                            final JsonObject mapping = config.getMapping();
                            final JsonObject combine = new JsonObject();
                            if (Ut.isNotNil(mapping)) {

                      Method table has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          static JsonObject table(final JsonObject table) {
                              final JsonObject tableJson = new JsonObject();
                              /*
                               * total
                               */

                        Method structureMatches has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private boolean structureMatches(final JsonObject match, final Object body) {
                                if (match == null || body == null) {
                                    return true;
                                }
                        
                        
                          Severity
                          Category
                          Status
                          Source
                          Language