Repository navigation
Go: format code - #16813
Go: format code#16813
Conversation
Signed-off-by: Jin Hai <[email protected]>
📝 WalkthroughWalkthroughThe change adds a license helper used by heartbeat handling, adds PDF table span regression coverage, corrects parser constructor syntax, and applies formatting or whitespace cleanup across Go and C++ sources. ChangesLicense propagation and repository cleanup
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
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)
internal/admin/enterprise_service.go (1)
1160-1163: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winMake
CheckLicensepackage-private. It’s only called fromHandleHeartbeatininternal/admin, socheckLicensewould reduce surface area. The stubbed return also makes the name look more authoritative than the behavior; if it stays as a placeholder, track that separately.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@internal/admin/enterprise_service.go` around lines 1160 - 1163, Rename CheckLicense to the package-private checkLicense and update its sole caller, HandleHeartbeat, to use the new name; leave its current return behavior unchanged.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@internal/admin/enterprise_service.go`:
- Around line 1160-1163: Rename CheckLicense to the package-private checkLicense
and update its sole caller, HandleHeartbeat, to use the new name; leave its
current return behavior unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 2198697c-9233-42d3-bc4b-7fa1181cd152
📒 Files selected for processing (27)
internal/admin/enterprise_service.gointernal/admin/service.gointernal/agent/component/userfillup.gointernal/agent/tool/akshare.gointernal/binding/cpp/darts_trie.cppinternal/binding/cpp/main.cppinternal/binding/cpp/pcre2.hinternal/binding/cpp/rag_analyzer.cppinternal/binding/cpp/rag_analyzer_c_api_debug.cppinternal/binding/cpp/rag_analyzer_c_test.cppinternal/binding/cpp/term.cppinternal/binding/cpp/thinc_parser.cppinternal/binding/cpp/tokenizer.cppinternal/binding/cpp/wordnet_lemmatizer.cppinternal/dao/document.gointernal/deepdoc/parser/pdf/parser_ocr.gointernal/deepdoc/parser/pdf/table/group_boxes_test.gointernal/deepdoc/parser/pdf/table/table_html.gointernal/deepdoc/parser/pdf/table/table_html_test.gointernal/deepdoc/parser/pdf/table/table_merge.gointernal/deepdoc/parser/pdf/table/table_spans.gointernal/deepdoc/parser/pdf/table/table_spans_test.gointernal/harness/README.mdinternal/harness/graph/pregel/engine.gointernal/ingestion/compilation/extractor/dep_relation.gointernal/ingestion/task/position.gointernal/parser/parser/factory.go
💤 Files with no reviewable changes (5)
- internal/deepdoc/parser/pdf/table/table_html_test.go
- internal/deepdoc/parser/pdf/table/table_merge.go
- internal/deepdoc/parser/pdf/table/table_spans_test.go
- internal/agent/component/userfillup.go
- internal/ingestion/compilation/extractor/dep_relation.go
Summary
Aligned to EE