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/util/git.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'crates/shirabe/src/util/git.rs') diff --git a/crates/shirabe/src/util/git.rs b/crates/shirabe/src/util/git.rs index 1c3474ea..cbda0d43 100644 --- a/crates/shirabe/src/util/git.rs +++ b/crates/shirabe/src/util/git.rs @@ -95,7 +95,6 @@ impl Git { /// /// As soon as a single command fails it will halt, so assume the commands are run as && in bash /// - /// @param non-empty-array> $commands /// @param mixed $commandOutput the output will be written into this var if passed by ref /// if a callable is passed it will be used as output handler pub fn run_commands( @@ -141,7 +140,6 @@ impl Git { self.run_command(command_callable, url, cwd, initial_clone, command_output) } - /// @param callable|array $commandCallable /// @param mixed $commandOutput the output will be written into this var if passed by ref /// if a callable is passed it will be used as output handler fn run_command( @@ -994,7 +992,6 @@ impl Git { String::new() } - /// @return list pub fn get_no_show_signature_flags( process: &std::rc::Rc>, ) -> Vec { @@ -1023,7 +1020,6 @@ impl Git { /// /// @internal /// @param list $arguments Additional arguments for git rev-list - /// @return non-empty-list pub fn build_rev_list_command( process: &std::rc::Rc>, arguments: Vec, @@ -1091,7 +1087,6 @@ impl Git { Ok(false) } - /// @return array|null fn get_authentication_failure(&self, url: &str) -> Option> { let mut m: IndexMap = IndexMap::new(); if !Preg::is_match3( @@ -1249,7 +1244,6 @@ impl Git { Platform::clear_env("DYLD_LIBRARY_PATH"); } - /// @return non-empty-string pub fn get_github_domains_regex(config: &Config) -> String { let domains: Vec = match config.get("github-domains") { PhpMixed::List(l) => l @@ -1262,7 +1256,6 @@ impl Git { format!("({})", implode("|", &escaped)) } - /// @return non-empty-string pub fn get_gitlab_domains_regex(config: &Config) -> String { let domains: Vec = match config.get("gitlab-domains") { PhpMixed::List(l) => l @@ -1275,9 +1268,6 @@ impl Git { format!("({})", implode("|", &escaped)) } - /// @param non-empty-string $message - /// - /// @return never fn throw_exception(&mut self, message: &str, url: &str) -> anyhow::Result<()> { // git might delete a directory when it fails and php will not know clearstatcache(); @@ -1352,7 +1342,6 @@ impl Git { *VERSION.lock().unwrap() = Some(version); } - /// @param string[] $credentials fn mask_credentials(&self, error: &str, credentials: &[String]) -> String { let mut masked_credentials: Vec = vec![]; -- cgit v1.3.1