Skip to content

chore: Added generated lang headers to .gitignore#1158

Merged
znelson merged 1 commit intocrosspoint-reader:masterfrom
znelson:lang-ignore
Feb 24, 2026
Merged

chore: Added generated lang headers to .gitignore#1158
znelson merged 1 commit intocrosspoint-reader:masterfrom
znelson:lang-ignore

Conversation

@znelson
Copy link
Contributor

@znelson znelson commented Feb 24, 2026

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

@znelson znelson marked this pull request as ready for review February 24, 2026 17:43
@znelson znelson requested review from ngxson and osteotek February 24, 2026 17:44
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

📝 Walkthrough

Walkthrough

Two 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

Cohort / File(s) Summary
Gitignore Configuration
.gitignore
Added two entries for auto-generated i18n header files to exclude them from version control.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • osteotek
  • ngxson
🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding generated language header files to .gitignore.
Description check ✅ Passed The description is directly related to the changeset, explaining the purpose of ignoring generated language header files as a follow-up to issue #1156.

✏️ 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.gitignore (1)

6-9: Consider consolidating the three lib/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

📥 Commits

Reviewing files that changed from the base of the PR and between 43efd80 and 48a4c24.

📒 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.

@znelson znelson enabled auto-merge (squash) February 24, 2026 17:47
@znelson znelson merged commit ff57754 into crosspoint-reader:master Feb 24, 2026
7 checks passed
el pushed a commit to el/crosspoint-reader that referenced this pull request Feb 24, 2026
…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**_
el pushed a commit to el/crosspoint-reader that referenced this pull request Feb 24, 2026
…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**_
@znelson znelson deleted the lang-ignore branch February 24, 2026 20:51
el pushed a commit to el/crosspoint-reader that referenced this pull request Feb 24, 2026
…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**_
el pushed a commit to el/crosspoint-reader that referenced this pull request Feb 24, 2026
…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**_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants