Often one wants feature names to follow institution-specific naming schemes to facilitate understandability or automated processing. To ensure that feature names are consistent within a project and follow specific naming rules, it would be beneficial if HAnS allows to define and enforce such rules.
Proposed solution
Add support to enforce feature naming schemes using regular expressions.
Alternatives you've considered
No response
Additional context
Consider a feature model of security features. In such a model, you have different kinds of features such as abstract features for categories of security features, concrete implementations of security features, but also code related to their usages that one might want to annotate. To distinguish these different kinds it would be beneficial to enforce a naming scheme, e.g., as follows:
In this example, we would use three different prefixes. In general, arbitrary patterns could be specified and enforced, e.g., by allowing to specify project-specific regular expressions for this purpose. For the example, the constraint could look like the following:
Describe the need of your request
Often one wants feature names to follow institution-specific naming schemes to facilitate understandability or automated processing. To ensure that feature names are consistent within a project and follow specific naming rules, it would be beneficial if HAnS allows to define and enforce such rules.
Proposed solution
Add support to enforce feature naming schemes using regular expressions.
Alternatives you've considered
No response
Additional context
Consider a feature model of security features. In such a model, you have different kinds of features such as abstract features for categories of security features, concrete implementations of security features, but also code related to their usages that one might want to annotate. To distinguish these different kinds it would be beneficial to enforce a naming scheme, e.g., as follows:
In this example, we would use three different prefixes. In general, arbitrary patterns could be specified and enforced, e.g., by allowing to specify project-specific regular expressions for this purpose. For the example, the constraint could look like the following: