Skip to content

Deny incomplete values for dimensions (DenyIncompleteValues)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell BSL Major No 1 badpractice

Description

Often when designing a metadata structure, it is required that the dimensions of a register must always be filled with values (should not be empty).

Checking for completeness of the dimension value should be done using the "Deny Incomplete Values" flag for the register dimension; additional software control of measurement filling is not required. It is assumed that records with an empty dimension value do not make sense in the infobase. The absence of a set flag can lead to potential problems if the application developers have not provided a value validation algorithm.

The current rule may give a lot of false positives, use at your own risk.

The rule applies to the following registers: - information register - accumulation register - accounting register - calculation register

Examples

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:DenyIncompleteValues-off
// BSLLS:DenyIncompleteValues-on

Parameter for config

"DenyIncompleteValues": false