Currently, the naming convention for Scorecard metric IDs and provider IDs utilizes snake_case (e.g. github.open_prs). This deviates from the established naming convention used in app-config.yaml and with the planned design of the Scorecard, which uses lowerCamelCase.
This is a breaking change for existing plugins but is best addressed now, during Developer Preview and before onboarding more metrics, to prevent future inconsistencies.
To fix this problem apply the following changes to standardize all metric and provider IDs to lowerCamelCase:
- update all instances of metric IDs and provider IDs within the Scorecard codebase from
snake_case to lowerCamelCase
- don't forget to update the occurrences in any configuration files, tests, documentation, translation keys or any URLs using old IDs
Currently, the naming convention for Scorecard metric IDs and provider IDs utilizes
snake_case(e.g.github.open_prs). This deviates from the established naming convention used inapp-config.yamland with the planned design of the Scorecard, which useslowerCamelCase.This is a breaking change for existing plugins but is best addressed now, during Developer Preview and before onboarding more metrics, to prevent future inconsistencies.
To fix this problem apply the following changes to standardize all metric and provider IDs to
lowerCamelCase:snake_casetolowerCamelCase