From 3d4a0cadc950d4440251efa11b55b0bfb0afdef7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 6 Aug 2026 04:22:46 +0900 Subject: chore: drop @param/@return tags that only restate Rust types The ported docblocks copied @param and @return straight from the PHP source. When such a tag carries nothing but a type and an argument name, the Rust signature already states it, so the line is noise. Tags whose text adds prose beyond the type are kept. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/command/init_command.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates/shirabe/src/command/init_command.rs') diff --git a/crates/shirabe/src/command/init_command.rs b/crates/shirabe/src/command/init_command.rs index 6923f768..99a7de00 100644 --- a/crates/shirabe/src/command/init_command.rs +++ b/crates/shirabe/src/command/init_command.rs @@ -923,7 +923,6 @@ impl BaseCommand for InitCommand { } impl InitCommand { - /// @return array{name: string, email: string|null} fn parse_author_string( &self, author: &str, @@ -968,7 +967,6 @@ impl InitCommand { .into()) } - /// @return array pub(crate) fn format_authors( &self, author: &str, @@ -1007,7 +1005,6 @@ impl InitCommand { Some(implode("\\", &namespace)) } - /// @return array pub(crate) fn get_git_config(&self) -> IndexMap { if self.git_config.borrow().is_some() { return self.git_config.borrow().clone().unwrap_or_default(); @@ -1161,7 +1158,6 @@ impl InitCommand { } } - /// @param array> $options fn has_dependencies(&self, options: &IndexMap) -> bool { let requires = options.get("require").cloned().unwrap_or(PhpMixed::Null); let requires_arr_empty = match &requires { -- cgit v1.3.1