chore: Added generated lang headers to .gitignore#1158
chore: Added generated lang headers to .gitignore#1158znelson merged 1 commit intocrosspoint-reader:masterfrom
Conversation
📝 WalkthroughWalkthroughTwo generated i18n header files (lib/I18n/I18nKeys.h and lib/I18n/I18nStrings.h) are added to the .gitignore to prevent them from being tracked in version control. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 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.
🧹 Nitpick comments (1)
.gitignore (1)
6-9: Consider consolidating the threelib/I18n/generated-file entries with a glob.Lines 6-8 are all generated files under the same directory. A pair of glob patterns would cover them and automatically catch any new generated headers or sources added in the future:
♻️ Optional consolidation
-lib/I18n/I18nKeys.h -lib/I18n/I18nStrings.h -lib/I18n/I18nStrings.cpp +lib/I18n/I18n*.h +lib/I18n/I18n*.cpp🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.gitignore around lines 6 - 9, Replace the three explicit generated-file entries (lib/I18n/I18nKeys.h, lib/I18n/I18nStrings.h, lib/I18n/I18nStrings.cpp) with two concise globs that cover generated headers and sources (for example use lib/I18n/*.h and lib/I18n/*.cpp) so new generated files under lib/I18n/ are automatically ignored; update the .gitignore by removing the three specific lines and adding those glob patterns referencing the lib/I18n directory.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.gitignore:
- Around line 6-9: Replace the three explicit generated-file entries
(lib/I18n/I18nKeys.h, lib/I18n/I18nStrings.h, lib/I18n/I18nStrings.cpp) with two
concise globs that cover generated headers and sources (for example use
lib/I18n/*.h and lib/I18n/*.cpp) so new generated files under lib/I18n/ are
automatically ignored; update the .gitignore by removing the three specific
lines and adding those glob patterns referencing the lib/I18n directory.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.gitignore
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: cppcheck
- GitHub Check: build
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: whyte-j
Repo: crosspoint-reader/crosspoint-reader PR: 733
File: lib/I18n/I18nKeys.h:271-272
Timestamp: 2026-02-16T22:25:35.674Z
Learning: In the crosspoint-reader i18n system (lib/I18n/), missing translation keys in non-English YAML files are automatically filled with English strings at build time by the gen_i18n.py script. All generated string arrays (STRINGS_EN, STRINGS_ES, etc.) have identical lengths, so runtime array indexing is safe without per-string fallback logic. The system prints "INFO: '{key}' missing in {lang_code}, using English fallback" during code generation when this occurs.
🔇 Additional comments (1)
.gitignore (1)
6-7: I'm ready to verify and rewrite a review comment. Please provide the review comment (within<review_comment>tags) along with any relevant code context needed for verification.
…1158) ## Summary **What is the goal of this PR?** Following up on crosspoint-reader#1156: generated language header files should be ignored. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
…1158) ## Summary **What is the goal of this PR?** Following up on crosspoint-reader#1156: generated language header files should be ignored. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
…1158) ## Summary **What is the goal of this PR?** Following up on crosspoint-reader#1156: generated language header files should be ignored. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
…1158) ## Summary **What is the goal of this PR?** Following up on crosspoint-reader#1156: generated language header files should be ignored. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
Summary
What is the goal of this PR?
Following up on #1156: generated language header files should be ignored.
AI Usage
While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.
Did you use AI tools to help write this code? NO