silentbalanceyh/vertx-zero

View on GitHub
vertx-ifx/zero-ifx-es/src/main/java/io/vertx/up/plugin/elasticsearch/ElasticSearchHelper.java

Summary

Maintainability
A
3 hrs
Test Coverage

Method mappingsBuilder has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Map<String, Object> mappingsBuilder(final ConcurrentMap<String, Class<?>> mappings) {
        final Map<String, Object> properties = new HashMap<>();

        // process field: key
        if (mappings.containsKey("key")) {

    Method getClient has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        RestHighLevelClient getClient(final JsonObject options) {
            Fn.outWeb(Ut.isNil(options), _404ConfigurationMissingExceptionn.class, this.getClass());
            final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
            credentialsProvider.setCredentials(AuthScope.ANY,
                new UsernamePasswordCredentials(

      There are no issues that match your filters.

      Category
      Status