8000 Feature naming rules via custom regular expressions · Issue #57 · isselab/HAnS · GitHub
[go: up one dir, main page]

Skip to content

Feature naming rules via custom regular expressions #57

Open

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_)).+

Activity

  1. changed the title [-]Feature naming rules[/-] [+]Feature naming rules via custom regular expressions[/+] on Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0