src/main/java/in/ac/bits/protocolanalyzer/persistence/repository/ElasticsearchConfig.java
Method elasticsearchTemplate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Bean
public ElasticsearchOperations elasticsearchTemplate() {
String clusterName = environment
.getProperty("elasticsearch.cluster.name");
String nodeName = environment.getProperty("elasticsearch.node.name");
- Create a ticketCreate a ticket
Extra separation in import group before 'org.elasticsearch.common.settings.ImmutableSettings' Open
Open
import org.elasticsearch.common.settings.ImmutableSettings;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.
This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.
Line is longer than 100 characters (found 101). Open
Open
@EnableElasticsearchRepositories(basePackages = "in.ac.bits.protocolanalyzer.persistence.repository")
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Checks for long lines.
Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.
This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.