-
Notifications
You must be signed in to change notification settings - Fork 794
fix: add validation for unknown flags in manifest.json #3044
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
Conversation
|
|
WalkthroughRemoved several Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@tests/MapManifestFlags.test.ts`:
- Around line 14-17: Update the case-sensitive flag references in the montreal
manifest: find all occurrences of the string "quebec" in
resources/maps/montreal/manifest.json (11 instances) and change them to "Quebec"
so they exactly match the actual flag file name (Quebec.svg); ensure you only
modify those flag name values (not other keys) and run the tests to confirm the
case mismatch is resolved.
🧹 Nitpick comments (1)
tests/MapManifestFlags.test.ts (1)
38-38: Consider adding a brief comment for the!prefix convention.The skip logic for flags starting with
"!"is not obvious. A short comment would help future readers understand why these flags are excluded from validation.+ // Skip flags prefixed with "!" (used for disabled/placeholder entries) if (flag.startsWith("!")) return;
evanpelle
left a comment
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.
thanks!
Resolves #3041
Description:
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
aotumuri