-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix #133: check for duplicate identifiers in PresetParser #357
Fix #133: check for duplicate identifiers in PresetParser #357
Conversation
…avoid conflicts Gave text on the warhouse double identifier, as this is intended, same icon, same identifier, same translations Update Presets.json because of removed double identifier buidings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please be so kind to check my changes too on the files
ValidatorTests where oke
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks OK for me 👍
- moved validation logic to validator - added more tests
@StingMcRay |
Ow thanks that is nice done :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works perfect.
This PR fixes #133 by adding a
Validator
to thePresetParser
.This
Validator
checks all given buildings for uniquness of theirIdentifier
property.If there are duplicates found, all duplicate
Identifier
values will be printed to the console.