Skip to content
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

refactor: ♻️ split off dep and inc validation function #170

Conversation

KANAjetzt
Copy link
Member

splited validate_dependencies_and_incompatibilities() in to validate_dependencies(), validate_incompatibilities() and is_mod_id_array_valid(). Will be used in the ModTool to validate the fields separately.

splited `validate_dependencies_and_incompatibilities()` in to `validate_dependencies()`, `validate_incompatibilities()` and `is_mod_id_array_valid()`. Will be used in the ModTool to validate the fields separately.
@KANAjetzt KANAjetzt added the validation Feature to make things safe and predictable label Mar 5, 2023
@KANAjetzt KANAjetzt requested review from ithinkandicode, Qubus0 and a team March 5, 2023 11:05
Copy link
Collaborator

@Qubus0 Qubus0 left a comment

Choose a reason for hiding this comment

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

Small things, overall merge ready

addons/mod_loader/classes/mod_manifest.gd Show resolved Hide resolved
addons/mod_loader/classes/mod_manifest.gd Outdated Show resolved Hide resolved
addons/mod_loader/classes/mod_manifest.gd Outdated Show resolved Hide resolved
Added *mod_id_array_description* to log_fatal() in `is_mod_id_array_valid()`
Removed the `break` in the mod id check, so all invalid values get logged at once and the user doesn't have to fix one error to get the next one.
@KANAjetzt KANAjetzt force-pushed the split_validate_dependencies_and_incompatibilities branch from 3423dd8 to 134e7d8 Compare March 5, 2023 15:30
Copy link
Collaborator

@Qubus0 Qubus0 left a comment

Choose a reason for hiding this comment

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

👍

@KANAjetzt KANAjetzt added this pull request to the merge queue Mar 5, 2023
Merged via the queue into GodotModding:development with commit 547c437 Mar 5, 2023
@KANAjetzt KANAjetzt deleted the split_validate_dependencies_and_incompatibilities branch March 5, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation Feature to make things safe and predictable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants