nlpub/watset-java

View on GitHub

Showing 638 of 638 total issues

<p> tag should be placed immediately before the first word, with no space after.</p>
Open

 * <p>

Checks the Javadoc paragraph.

Checks that:

  • There is one blank line between each of two paragraphs.
  • Each paragraph but the first has <p> immediately before the first word, withno space after.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Extra separation in import group before 'java.util.Optional'
Open

import java.util.Optional;

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.

Member name 'r' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
Open

    private double r = MarkovClustering.Builder.R;

Wrong lexicographical order for 'java.util.Objects.requireNonNull' import. Should be before 'org.nlpub.watset.eval.Pairwise'.
Open

import static java.util.Objects.requireNonNull;

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.

Wrong lexicographical order for 'java.nio.file.Path' import. Should be before 'org.nlpub.watset.util.ABCFormat'.
Open

import java.nio.file.Path;

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

        @Parameter(required = true, description = "Global clustering algorithm", names = {"-g", "--global"})

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.

Using the '.*' form of import should be avoided - org.nlpub.watset.graph.*.
Open

import org.nlpub.watset.graph.*;
Severity: Minor
Found in examples/HardClustering.java by checkstyle

Checks that there are no import statements that use the * notation.

Rationale: Importing all classes from a package or staticmembers from a class leads to tight coupling between packagesor classes and might lead to problems when a new version of alibrary introduces name clashes.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

'.' should be on a new line.
Open

        var graph = SimpleWeightedGraph.<String, DefaultWeightedEdge>createBuilder(DefaultWeightedEdge.class).
Severity: Minor
Found in examples/FuzzyClustering.java by checkstyle

Wrong lexicographical order for 'java.util.List' import. Should be before 'org.nlpub.watset.eval.Pairwise'.
Open

import java.util.List;
Severity: Minor
Found in examples/EvaluateClustering.java by checkstyle

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.

'.' should be on a new line.
Open

                addEdge("a", "b").
Severity: Minor
Found in examples/HardClustering.java by checkstyle

Extra separation in import group before 'java.util.stream.Stream'
Open

import java.util.stream.Stream;

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.

Wrong lexicographical order for 'java.io.IOException' import. Should be before 'org.nlpub.watset.util.NetworkXFormat'.
Open

import java.io.IOException;
Severity: Minor
Found in examples/PickleClustering.java by checkstyle

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.

'.' should be on a new line.
Open

                addEdge("a", "b").
Severity: Minor
Found in examples/FuzzyClustering.java by checkstyle

Line is longer than 100 characters (found 102).
Open

        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");

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.

'.' should be on a new line.
Open

        final var builder = SimpleWeightedGraph.

Wrong lexicographical order for 'java.util.Collections' import. Should be before 'org.nlpub.watset.graph.*'.
Open

import java.util.Collections;

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 102).
Open

        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");

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.

Line is longer than 100 characters (found 105).
Open

                final int kgn = Integer.parseInt(requireNonNull(params.get("k"), "k must be specified"));

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.

<p> tag should be placed immediately before the first word, with no space after.</p>
Open

     * <p>

Checks the Javadoc paragraph.

Checks that:

  • There is one blank line between each of two paragraphs.
  • Each paragraph but the first has <p> immediately before the first word, withno space after.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Wrong lexicographical order for 'java.lang.System.Logger.Level' import. Should be before 'org.nlpub.watset.graph.ClusteringAlgorithmBuilder'.
Open

import java.lang.System.Logger.Level;

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.

Severity
Category
Status
Source
Language