dropwizard/dropwizard

View on GitHub
dropwizard-db/src/main/java/io/dropwizard/db/DataSourceFactory.java

Summary

Maintainability
D
2 days
Test Coverage

DataSourceFactory has 84 methods (exceeds 20 allowed). Consider refactoring.
Open

public class DataSourceFactory implements PooledDataSourceFactory {

    private static final String DEFAULT_VALIDATION_QUERY = "/* Health Check */ SELECT 1";

    @SuppressWarnings("UnusedDeclaration")
Severity: Major
Found in dropwizard-db/src/main/java/io/dropwizard/db/DataSourceFactory.java - About 1 day to fix

    File DataSourceFactory.java has 501 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    package io.dropwizard.db;
    
    import com.codahale.metrics.MetricRegistry;
    import com.fasterxml.jackson.annotation.JsonIgnore;
    import com.fasterxml.jackson.annotation.JsonProperty;
    Severity: Major
    Found in dropwizard-db/src/main/java/io/dropwizard/db/DataSourceFactory.java - About 1 day to fix

      Method build has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public ManagedDataSource build(MetricRegistry metricRegistry, String name) {
              final Properties dbProperties = new Properties();
              properties.forEach(dbProperties::setProperty);
      
      
      Severity: Minor
      Found in dropwizard-db/src/main/java/io/dropwizard/db/DataSourceFactory.java - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status