Make check_names.py repo-specific #186
Labels
No labels
approved
bug
dependencies
DO-NOT-MERGE
enhancement
good-first-issue
help-wanted
historical-reviewed
historical-reviewing
needs-adoption
needs-ci
needs-design-approval
needs-info
needs-preceding-pr
needs-review
needs-reviewer
needs-work
priority-high
priority-low
priority-medium
priority-scheduled
priority-very-high
single-reviewer
size-l
size-m
size-s
size-xs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Mbed-TLS/mbedtls-framework#186
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At present
check_names.pyuses a single set of regex for allowed names in all repositories. As the repositories diverge,check_names.pyshould distinguish between the repos and perform different name checks for each.Currently we would like the prefix
TF_PSA_CRYPTO_andtf_psa_crypto_to be allowed only in the TF-PSA-Crypto repository (not in Mbed TLS). In future we may want to do other things (e.g. disallowing definitions that start withpsa_in Mbed TLS.Definition of Done:
check_names.pyonly allows TF-PSA-Crypto prefixes in the TF-PSA-Crypto repo.“What's the expected prefix for identifiers in this project?” and “what are the subprojects of this project (and their identifier prefix)?” are questions I've also faced in https://github.com/Mbed-TLS/mbedtls-framework/pull/164. There, each repository defines a data structure with a prefix
project_cpp_prefix.Conceptually, this feels like the sort of thing that could be defined once per project. It would be a generalization of
scripts/project_name.txt. Maybe ascripts/project_data.json?But given that we only have two projects, and only a very small number of pieces of knowledge about each project, doing this in a structured way is probably overkill.