Fix CodeRabbit findings #11

Merged
Snider merged 1 commit from agent/fix-coderabbit-findings--verify-each-aga into dev 2026-03-24 11:33:20 +00:00
Member
No description provided.
Virgil added 1 commit 2026-03-24 11:30:34 +00:00
fix(coderabbit): address review findings
Some checks failed
Security Scan / security (pull_request) Successful in 8s
Test / test (pull_request) Failing after 27s
1d6d891932
1. core_service.go: Return error when SetLanguage fails instead of
   silently discarding it.
2. grammar.go/service.go: Add MergeGrammarData() and use it in AddLoader
   and loadJSON so multiple loaders merge grammar entries instead of
   replacing the entire struct per language.
3. service.go: Document that package-level AddLoader is superseded when
   NewCoreService replaces the default — by design, not a bug.
4. service.go: Use CompareAndSwap in Init() to prevent TOCTOU race where
   a concurrent SetDefault could be overwritten.

Co-Authored-By: Virgil <virgil@lethean.io>
Snider merged commit 6bf0515ed8 into dev 2026-03-24 11:33:20 +00:00
Snider deleted branch agent/fix-coderabbit-findings--verify-each-aga 2026-03-24 11:33:20 +00:00
Sign in to join this conversation.
No description provided.