Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Feature naming rules via custom regular expressions #57

@SvenPeldszus

Description

@SvenPeldszus

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:

cat_Security
       cat_Cryptography
              cat_Encryption
                     feat_AES
                            use_send_message
                            use_store_data
                     feat_RSA
                     ...
              cat_Hashing
       cat_Communication

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:

^((cat_)|(feat_)|(use_)).+

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions