Skip to content

Define unique IDs for all check configurations #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 15, 2020
Merged

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Dec 13, 2020

During initial development, it was an unnecessary amount of work to assign unique IDs to each check configuration as it
was added. Now that the bulk of the checks have been added, it's the time to do this.

Tests are included to ensure check IDs are unique and have the standard prefix.

@per1234 per1234 force-pushed the per1234/add-check-ids branch from 3c8178b to eac06b7 Compare December 15, 2020 11:40
@per1234 per1234 marked this pull request as ready for review December 15, 2020 11:46
@per1234 per1234 changed the title Add tests for check IDs Define unique IDs for all check configurations Dec 15, 2020
Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some misplace IDs but the rest if fine.

During the course of development, the order of the check configurations in the array has become quite random. The checks
are run in order of the configurations, so this is exposed to the user, and also makes the code a bit less easy to
follow.

The check functions and their tests have reordered to match the check configurations.
This information is currently only used for the JSON format output, so these changes have no implications for code.
- Undefined check ID
- Incorrect check ID prefix
- Duplicate check ID
During initial development, it was an unnecessary amount of work to assign unique IDs to each check configuration as it
was added. Now that the bulk of the checks have been added, it's the time to do this.
@per1234 per1234 force-pushed the per1234/add-check-ids branch from eac06b7 to 14b046d Compare December 15, 2020 13:50
@per1234 per1234 merged commit 592badc into main Dec 15, 2020
@per1234 per1234 deleted the per1234/add-check-ids branch December 15, 2020 15:34
@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Sep 29, 2021
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants