Conversation
… names under `commands/`
|
🔊@WaterWhisperer 🚀Thanks for your contribution🎉! 💡CodeRabbit(AI) will review your code first🔥! Note 🚨The code review suggestions from CodeRabbit are to be used as a reference only, and the PR submitter can decide whether to make changes based on their own judgment. Ultimately, the project management personnel will conduct the final code review💥. |
WalkthroughRemoves the redundant Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (3)
rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/controller.rs (1)
1-1:⚠️ Potential issue | 🟡 MinorUpdate header year to 2023.
This file header should use the standardized 2023 year.
🛠️ Proposed fix
-// Copyright 2026 The RocketMQ Rust Authors +// Copyright 2023 The RocketMQ Rust AuthorsBased on learnings: In Rust source files (*.rs) across the rocketmq-rust repository, enforce using "Copyright 2023" as the year in the header instead of the current calendar year. Audit and update existing headers to follow this convention and ensure all new files include the 2023 year.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/controller.rs` at line 1, Update the file header copyright year from "2026" to "2023": locate the top-of-file copyright comment line that currently reads "Copyright 2026 The RocketMQ Rust Authors" and replace the year with "2023" so it reads "Copyright 2023 The RocketMQ Rust Authors"; apply the same change to any other Rust source file headers that still use the current calendar year to enforce the standardized 2023 header convention.rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth.rs (1)
1-1:⚠️ Potential issue | 🟡 MinorUpdate header year to 2023.
This file header should use the standardized 2023 year.
🛠️ Proposed fix
-// Copyright 2026 The RocketMQ Rust Authors +// Copyright 2023 The RocketMQ Rust AuthorsBased on learnings: In Rust source files (*.rs) across the rocketmq-rust repository, enforce using "Copyright 2023" as the year in the header instead of the current calendar year. Audit and update existing headers to follow this convention and ensure all new files include the 2023 year.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth.rs` at line 1, The file header in auth.rs uses the current year; update the top comment line to "Copyright 2023 The RocketMQ Rust Authors" (replace the existing year) and then audit other .rs files to ensure their headers match the standardized "Copyright 2023" format so new and existing Rust sources consistently use 2023.rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer.rs (1)
1-1:⚠️ Potential issue | 🟡 MinorUpdate header year to 2023.
This file header should use the standardized 2023 year.
🛠️ Proposed fix
-// Copyright 2026 The RocketMQ Rust Authors +// Copyright 2023 The RocketMQ Rust AuthorsBased on learnings: In Rust source files (*.rs) across the rocketmq-rust repository, enforce using "Copyright 2023" as the year in the header instead of the current calendar year. Audit and update existing headers to follow this convention and ensure all new files include the 2023 year.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer.rs` at line 1, Update the top-of-file header comment in consumer.rs to use "Copyright 2023" instead of the current year; locate the header comment at the very beginning of rocketmq-admin-core/src/commands/consumer.rs (the file-level copyright comment) and replace the year token with 2023 to match the repository convention.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth.rs`:
- Line 1: The file header in auth.rs uses the current year; update the top
comment line to "Copyright 2023 The RocketMQ Rust Authors" (replace the existing
year) and then audit other .rs files to ensure their headers match the
standardized "Copyright 2023" format so new and existing Rust sources
consistently use 2023.
In `@rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer.rs`:
- Line 1: Update the top-of-file header comment in consumer.rs to use "Copyright
2023" instead of the current year; locate the header comment at the very
beginning of rocketmq-admin-core/src/commands/consumer.rs (the file-level
copyright comment) and replace the year token with 2023 to match the repository
convention.
In
`@rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/controller.rs`:
- Line 1: Update the file header copyright year from "2026" to "2023": locate
the top-of-file copyright comment line that currently reads "Copyright 2026 The
RocketMQ Rust Authors" and replace the year with "2023" so it reads "Copyright
2023 The RocketMQ Rust Authors"; apply the same change to any other Rust source
file headers that still use the current calendar year to enforce the
standardized 2023 header convention.
ℹ️ Review info
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (74)
rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/copy_acl_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/copy_users_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/create_acl_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/create_user_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/delete_acl_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/delete_user_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/get_acl_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/get_user_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/list_acl_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/list_users_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/update_acl_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/auth/update_user_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/broker_consume_stats_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/broker_status_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/clean_expired_cq_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/clean_unused_topic_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/commit_log_set_read_ahead_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/delete_expired_commit_log_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/get_broker_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/get_broker_epoch_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/get_cold_data_flow_ctr_info_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/remove_cold_data_flow_ctr_group_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/reset_master_flush_offset_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/send_msg_status_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/switch_timer_engine_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/update_broker_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker/update_cold_data_flow_ctr_group_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/cluster.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/cluster/cluster_list_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/cluster/cluster_send_msg_rt_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/connection.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/connection/consumer_connection_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/connection/producer_connection_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer/consumer_status_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer/consumer_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer/delete_subscription_group_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer/set_consume_mode_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer/start_monitoring_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer/update_sub_group_list_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/consumer/update_sub_group_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/controller.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/controller/clean_broker_metadata_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/controller/get_controller_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/controller/get_controller_metadata_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/controller/update_controller_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/export.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/export/export_metadata_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/ha.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/ha/get_sync_state_set_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/ha/ha_status_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/namesrv.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/namesrv/add_write_perm_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/namesrv/delete_kv_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/namesrv/get_namesrv_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/namesrv/update_kv_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/namesrv/update_namesrv_config_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/namesrv/wipe_write_perm_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/allocate_mq_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/delete_topic_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/remapping_static_topic_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/topic_cluster_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/topic_list_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/topic_route_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/topic_status_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/update_order_conf_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/update_static_topic_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/update_topic_list_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/update_topic_perm_sub_command.rsrocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/topic/update_topic_sub_command.rs
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6501 +/- ##
=======================================
Coverage 42.18% 42.18%
=======================================
Files 942 942
Lines 131786 131785 -1
=======================================
Hits 55595 55595
+ Misses 76191 76190 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rocketmq-rust-bot
left a comment
There was a problem hiding this comment.
LGTM - All CI checks passed ✅
Which Issue(s) This PR Fixes(Closes)
_commandssuffix from submodule names undercommands/#6498Brief Description
How Did You Test This Change?
Summary by CodeRabbit