red6/dmn-check

View on GitHub
validators/src/main/java/de/redsix/dmncheck/validators/ItemDefinitionAllowedValuesTypeValidator.java

Summary

Maintainability
A
1 hr
Test Coverage

Method validate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public List<ValidationResult> validate(ItemDefinition itemDefinition, ValidationContext validationContext) {

        final Collection<ItemDefinition> itemDefinitionsAndComponents = itemDefinition.getItemComponents().stream()
                .filter(itemComponent -> itemComponent.getAllowedValues() != null)

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

                                                            .map(toplevelExpressionLanguage::toExpression),

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

        public List<ValidationResult> validate(ItemDefinition itemDefinition, ValidationContext validationContext) {

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

        public boolean isApplicable(ItemDefinition itemDefinition, ValidationContext validationContext) {

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

            final Collection<ItemDefinition> itemDefinitionsAndComponents = itemDefinition.getItemComponents().stream()

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

                                                    Stream.of(itemDefinitionOrComponent.getAllowedValues())

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

                            return ExpressionTypeParser.parse(expressionType, validationContext.getItemDefinitions())

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

                                    .message("ItemDefintion uses AllowedValues without a type declaration")

    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.

    There are no issues that match your filters.

    Category
    Status