Skip to content

BIND007: placeholder-in-direct-tag-path

Direct tag binding path contains {...}

Code BIND007
Name placeholder-in-direct-tag-path
Category Bindings and expressions (BIND)
Default severity warning
Enabled by default yes
Fix available no
ign-lint equivalent none

Reports tag bindings in direct mode (the default) whose tag path contains a {name} placeholder.

Placeholders are only replaced in indirect mode. In direct mode the braces are part of the tag path, so the binding subscribes to a tag that does not exist. This usually happens when the mode was switched back to direct, or the path was pasted from an indirect binding.

{"type": "tag", "config": {"mode": "direct", "tagPath": "[default]Line{line}/Speed"}}

Use instead:

{"type": "tag", "config": {"mode": "indirect", "tagPath": "[default]Line{line}/Speed",
"references": {"line": "{view.params.line}"}}}

Generated from the rule metadata by iglint generate-docs; iglint rule BIND007 prints the same page in the terminal. Source: docs/rules/BIND007.md.