Skip to content

Insert a collection into itself (SelfInsertion)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Error BSL
OS
Major Yes 10 standard
unpredictable
performance

Description

Inserting a collection into itself results in circular references.

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:SelfInsertion-off
// BSLLS:SelfInsertion-on

Parameter for config

"SelfInsertion": false