reserved-name

Available in: KerML, SysML

This checks that memberships and non-feature namespaces do not use reserved names which have a specific meaning in KerML and SysML.

Currently reserved names are:

  • self;

  • that;

  • this.

Subsumed by reserved-feature-name on features.

Example

part def self; // warning: Reserved name `self` should not be used as a name
alias <that> for self; // warning: Reserved name `that` should not be used as a short name

Give different, more descriptive, names:

part def MyPart; // ok
alias PartAlias for MyPart; // ok

Options

  • lint.reserved-name

    Allows controlling the diagnostic severity, e.g. off to disable it.


All validation rules