Skip to content

Same metadata object and child name (SameMetadataObjectAndChildNames)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Error BSL Critical Yes 30 standard
sql
design

Description

For child metadata objects, such as attributes, dimensions, resources, tabular sections (and their attributes), it is not recommended to use names that match the names of the owner objects, since this can lead to errors in queries.

Examples

Incorrect names

Catalog.Contractors.TabularSection.Contractors
InformationRegister.SubordinateDocuments.Dimension.SubordinateDocuments
Document.Container.TabularSection.Container. Attribute.Container

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:SameMetadataObjectAndChildNames-off
// BSLLS:SameMetadataObjectAndChildNames-on

Parameter for config

"SameMetadataObjectAndChildNames": false