diff options
Diffstat (limited to 'crates/shirabe-external-packages')
60 files changed, 562 insertions, 489 deletions
diff --git a/crates/shirabe-external-packages/src/composer/ca_bundle/ca_bundle.rs b/crates/shirabe-external-packages/src/composer/ca_bundle/ca_bundle.rs index 4a980c6..a0db297 100644 --- a/crates/shirabe-external-packages/src/composer/ca_bundle/ca_bundle.rs +++ b/crates/shirabe-external-packages/src/composer/ca_bundle/ca_bundle.rs @@ -8,11 +8,11 @@ impl CaBundle { todo!() } - pub fn get_system_ca_root_bundle_path(logger: Option<&dyn LoggerInterface>) -> String { + pub fn get_system_ca_root_bundle_path(_logger: Option<&dyn LoggerInterface>) -> String { todo!() } - pub fn validate_ca_file(ca_file: &str, logger: Option<&dyn LoggerInterface>) -> bool { + pub fn validate_ca_file(_ca_file: &str, _logger: Option<&dyn LoggerInterface>) -> bool { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/metadata_minifier/metadata_minifier.rs b/crates/shirabe-external-packages/src/composer/metadata_minifier/metadata_minifier.rs index f886197..8861936 100644 --- a/crates/shirabe-external-packages/src/composer/metadata_minifier/metadata_minifier.rs +++ b/crates/shirabe-external-packages/src/composer/metadata_minifier/metadata_minifier.rs @@ -5,11 +5,11 @@ use shirabe_php_shim::PhpMixed; pub struct MetadataMinifier; impl MetadataMinifier { - pub fn expand(minified_data: IndexMap<String, PhpMixed>) -> IndexMap<String, PhpMixed> { + pub fn expand(_minified_data: IndexMap<String, PhpMixed>) -> IndexMap<String, PhpMixed> { todo!() } - pub fn minify(packages: IndexMap<String, PhpMixed>) -> IndexMap<String, PhpMixed> { + pub fn minify(_packages: IndexMap<String, PhpMixed>) -> IndexMap<String, PhpMixed> { todo!() } } diff --git a/crates/shirabe-external-packages/src/composer/pcre/preg.rs b/crates/shirabe-external-packages/src/composer/pcre/preg.rs index 3dd8b4f..9c39d42 100644 --- a/crates/shirabe-external-packages/src/composer/pcre/preg.rs +++ b/crates/shirabe-external-packages/src/composer/pcre/preg.rs @@ -2,518 +2,518 @@ pub struct Preg; impl Preg { - pub fn r#match(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn r#match(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn match3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, ) -> anyhow::Result<bool> { todo!() } pub fn match4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn match5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } - pub fn match_strict_groups(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn match_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn match_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, ) -> anyhow::Result<bool> { todo!() } pub fn match_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn match_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } - pub fn match_with_offsets(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn match_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn match_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, ) -> anyhow::Result<bool> { todo!() } pub fn match_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn match_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } - pub fn match_all(pattern: &str, subject: &str) -> anyhow::Result<usize> { + pub fn match_all(_pattern: &str, _subject: &str) -> anyhow::Result<usize> { todo!() } pub fn match_all3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, ) -> anyhow::Result<usize> { todo!() } pub fn match_all4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _flags: i64, ) -> anyhow::Result<usize> { todo!() } pub fn match_all5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<usize> { todo!() } - pub fn match_all_strict_groups(pattern: &str, subject: &str) -> anyhow::Result<usize> { + pub fn match_all_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result<usize> { todo!() } pub fn match_all_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, ) -> anyhow::Result<usize> { todo!() } pub fn match_all_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _flags: i64, ) -> anyhow::Result<usize> { todo!() } pub fn match_all_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<usize> { todo!() } - pub fn match_all_with_offsets(pattern: &str, subject: &str) -> anyhow::Result<usize> { + pub fn match_all_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result<usize> { todo!() } pub fn match_all_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, ) -> anyhow::Result<usize> { todo!() } pub fn match_all_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, + _flags: i64, ) -> anyhow::Result<usize> { todo!() } pub fn match_all_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<usize> { todo!() } - pub fn replace(pattern: &str, replacement: &str, subject: &str) -> anyhow::Result<String> { + pub fn replace(_pattern: &str, _replacement: &str, _subject: &str) -> anyhow::Result<String> { todo!() } pub fn replace4( - pattern: &str, - replacement: &str, - subject: &str, - limit: i64, + _pattern: &str, + _replacement: &str, + _subject: &str, + _limit: i64, ) -> anyhow::Result<String> { todo!() } pub fn replace5( - pattern: &str, - replacement: &str, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &str, + _replacement: &str, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result<String> { todo!() } pub fn replace_callback<F: Fn(&indexmap::IndexMap<CaptureKey, String>) -> String>( - pattern: &str, - replacement: F, - subject: &str, + _pattern: &str, + _replacement: F, + _subject: &str, ) -> anyhow::Result<String> { todo!() } pub fn replace_callback4<F: Fn(&indexmap::IndexMap<CaptureKey, String>) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, ) -> anyhow::Result<String> { todo!() } pub fn replace_callback5<F: Fn(&indexmap::IndexMap<CaptureKey, String>) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result<String> { todo!() } pub fn replace_callback6<F: Fn(&indexmap::IndexMap<CaptureKey, String>) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, - count: Option<&mut usize>, - flags: i64, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, + _count: Option<&mut usize>, + _flags: i64, ) -> anyhow::Result<String> { todo!() } pub fn replace_callback_array( - pattern: &indexmap::IndexMap<String, String>, - subject: &str, + _pattern: &indexmap::IndexMap<String, String>, + _subject: &str, ) -> anyhow::Result<String> { todo!() } pub fn replace_callback_array3( - pattern: &indexmap::IndexMap<String, String>, - subject: &str, - limit: i64, + _pattern: &indexmap::IndexMap<String, String>, + _subject: &str, + _limit: i64, ) -> anyhow::Result<String> { todo!() } pub fn replace_callback_array4( - pattern: &indexmap::IndexMap<String, String>, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &indexmap::IndexMap<String, String>, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result<String> { todo!() } pub fn replace_callback_array5( - pattern: &indexmap::IndexMap<String, String>, - subject: &str, - limit: i64, - count: Option<&mut usize>, - flags: i64, + _pattern: &indexmap::IndexMap<String, String>, + _subject: &str, + _limit: i64, + _count: Option<&mut usize>, + _flags: i64, ) -> anyhow::Result<String> { todo!() } - pub fn split(pattern: &str, subject: &str) -> anyhow::Result<Vec<String>> { + pub fn split(_pattern: &str, _subject: &str) -> anyhow::Result<Vec<String>> { todo!() } - pub fn split3(pattern: &str, subject: &str, limit: i64) -> anyhow::Result<Vec<String>> { + pub fn split3(_pattern: &str, _subject: &str, _limit: i64) -> anyhow::Result<Vec<String>> { todo!() } pub fn split4( - pattern: &str, - subject: &str, - limit: i64, - flags: i64, + _pattern: &str, + _subject: &str, + _limit: i64, + _flags: i64, ) -> anyhow::Result<Vec<String>> { todo!() } pub fn split_with_offsets( - pattern: &str, - subject: &str, + _pattern: &str, + _subject: &str, ) -> anyhow::Result<Vec<(String, usize)>> { todo!() } pub fn split_with_offsets3( - pattern: &str, - subject: &str, - limit: i64, + _pattern: &str, + _subject: &str, + _limit: i64, ) -> anyhow::Result<Vec<(String, usize)>> { todo!() } pub fn split_with_offsets4( - pattern: &str, - subject: &str, - limit: i64, - flags: i64, + _pattern: &str, + _subject: &str, + _limit: i64, + _flags: i64, ) -> anyhow::Result<Vec<(String, usize)>> { todo!() } - pub fn grep(pattern: &str, array: &[&str]) -> anyhow::Result<Vec<String>> { + pub fn grep(_pattern: &str, _array: &[&str]) -> anyhow::Result<Vec<String>> { todo!() } - pub fn grep3(pattern: &str, array: &[&str], flags: i64) -> anyhow::Result<Vec<String>> { + pub fn grep3(_pattern: &str, _array: &[&str], _flags: i64) -> anyhow::Result<Vec<String>> { todo!() } - pub fn is_match(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn is_match(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn is_match3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, ) -> anyhow::Result<bool> { todo!() } pub fn is_match4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn is_match5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } - pub fn is_match_strict_groups(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn is_match_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn is_match_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, String>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } - pub fn is_match_with_offsets(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn is_match_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn is_match_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, (String, usize)>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } - pub fn is_match_all(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn is_match_all(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn is_match_all3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_all4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_all5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } - pub fn is_match_all_strict_groups(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn is_match_all_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn is_match_all_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_all_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_all_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<String>>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } - pub fn is_match_all_with_offsets(pattern: &str, subject: &str) -> anyhow::Result<bool> { + pub fn is_match_all_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result<bool> { todo!() } pub fn is_match_all_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_all_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, + _flags: i64, ) -> anyhow::Result<bool> { todo!() } pub fn is_match_all_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap<CaptureKey, Vec<(String, usize)>>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result<bool> { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs b/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs index dea5475..5a8f09d 100644 --- a/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs +++ b/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs @@ -1,18 +1,16 @@ -use shirabe_php_shim::PhpMixed; - #[derive(Debug)] pub struct CompilingMatcher; impl CompilingMatcher { - pub fn r#match(constraint: &dyn std::any::Any, package: &dyn std::any::Any) -> bool { + pub fn r#match(_constraint: &dyn std::any::Any, _package: &dyn std::any::Any) -> bool { todo!() } - pub fn matches(constraint: &dyn std::any::Any, operator: &str, version: &str) -> bool { + pub fn matches(_constraint: &dyn std::any::Any, _operator: &str, _version: &str) -> bool { todo!() } - pub fn match_(constraint: &dyn std::any::Any, operator: &str, version: &str) -> bool { + pub fn match_(_constraint: &dyn std::any::Any, _operator: &str, _version: &str) -> bool { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/semver/intervals.rs b/crates/shirabe-external-packages/src/composer/semver/intervals.rs index 957436d..d0a736c 100644 --- a/crates/shirabe-external-packages/src/composer/semver/intervals.rs +++ b/crates/shirabe-external-packages/src/composer/semver/intervals.rs @@ -5,21 +5,21 @@ pub struct Intervals; impl Intervals { pub fn is_subset_of( - constraint_a: &dyn std::any::Any, - constraint_b: &dyn std::any::Any, + _constraint_a: &dyn std::any::Any, + _constraint_b: &dyn std::any::Any, ) -> anyhow::Result<bool> { todo!() } - pub fn compact_constraint(constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { + pub fn compact_constraint(_constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { todo!() } - pub fn compact(constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { + pub fn compact(_constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { todo!() } - pub fn get(constraint: &dyn std::any::Any) -> anyhow::Result<PhpMixed> { + pub fn get(_constraint: &dyn std::any::Any) -> anyhow::Result<PhpMixed> { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/semver/semver.rs b/crates/shirabe-external-packages/src/composer/semver/semver.rs index f467c2c..fe370d8 100644 --- a/crates/shirabe-external-packages/src/composer/semver/semver.rs +++ b/crates/shirabe-external-packages/src/composer/semver/semver.rs @@ -2,15 +2,15 @@ pub struct Semver; impl Semver { - pub fn sort(versions: Vec<String>) -> anyhow::Result<Vec<String>> { + pub fn sort(_versions: Vec<String>) -> anyhow::Result<Vec<String>> { todo!() } - pub fn rsort(versions: Vec<String>) -> Vec<String> { + pub fn rsort(_versions: Vec<String>) -> Vec<String> { todo!() } - pub fn satisfies(version: &str, constraint: &str) -> bool { + pub fn satisfies(_version: &str, _constraint: &str) -> bool { todo!() } } diff --git a/crates/shirabe-external-packages/src/composer/spdx_licenses/spdx_licenses.rs b/crates/shirabe-external-packages/src/composer/spdx_licenses/spdx_licenses.rs index 95640c9..684e73b 100644 --- a/crates/shirabe-external-packages/src/composer/spdx_licenses/spdx_licenses.rs +++ b/crates/shirabe-external-packages/src/composer/spdx_licenses/spdx_licenses.rs @@ -3,16 +3,22 @@ use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct SpdxLicenses; +impl Default for SpdxLicenses { + fn default() -> Self { + Self::new() + } +} + impl SpdxLicenses { pub fn new() -> Self { todo!() } - pub fn validate(&self, license: &str) -> bool { + pub fn validate(&self, _license: &str) -> bool { todo!() } - pub fn get_license_by_identifier(&self, identifier: &str) -> Option<PhpMixed> { + pub fn get_license_by_identifier(&self, _identifier: &str) -> Option<PhpMixed> { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/util/composer_mirror.rs b/crates/shirabe-external-packages/src/composer/util/composer_mirror.rs index 21d0fdf..66e363c 100644 --- a/crates/shirabe-external-packages/src/composer/util/composer_mirror.rs +++ b/crates/shirabe-external-packages/src/composer/util/composer_mirror.rs @@ -3,21 +3,31 @@ pub struct ComposerMirror; impl ComposerMirror { pub fn process_url( - mirror: &str, - package_name: &str, - version: &str, - reference: Option<&str>, - url: &str, - custom_filename: Option<&str>, + _mirror: &str, + _package_name: &str, + _version: &str, + _reference: Option<&str>, + _url: &str, + _custom_filename: Option<&str>, ) -> String { todo!() } - pub fn process_git_url(mirror: &str, package_name: &str, url: &str, extension: &str) -> String { + pub fn process_git_url( + _mirror: &str, + _package_name: &str, + _url: &str, + _extension: &str, + ) -> String { todo!() } - pub fn process_hg_url(mirror: &str, package_name: &str, url: &str, extension: &str) -> String { + pub fn process_hg_url( + _mirror: &str, + _package_name: &str, + _url: &str, + _extension: &str, + ) -> String { todo!() } } diff --git a/crates/shirabe-external-packages/src/json_schema/validator.rs b/crates/shirabe-external-packages/src/json_schema/validator.rs index aad230b..48d5528 100644 --- a/crates/shirabe-external-packages/src/json_schema/validator.rs +++ b/crates/shirabe-external-packages/src/json_schema/validator.rs @@ -3,12 +3,18 @@ use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct Validator; +impl Default for Validator { + fn default() -> Self { + Self::new() + } +} + impl Validator { pub fn new() -> Self { todo!() } - pub fn check(&mut self, data: &PhpMixed, schema: &PhpMixed) -> anyhow::Result<()> { + pub fn check(&mut self, _data: &PhpMixed, _schema: &PhpMixed) -> anyhow::Result<()> { todo!() } diff --git a/crates/shirabe-external-packages/src/psr/log/logger_interface.rs b/crates/shirabe-external-packages/src/psr/log/logger_interface.rs index 730bfe5..1d61db6 100644 --- a/crates/shirabe-external-packages/src/psr/log/logger_interface.rs +++ b/crates/shirabe-external-packages/src/psr/log/logger_interface.rs @@ -1,5 +1,3 @@ -use shirabe_php_shim::PhpMixed; - pub trait LoggerInterface { fn emergency(&self, message: &str, context: &[(&str, &str)]); fn alert(&self, message: &str, context: &[(&str, &str)]); diff --git a/crates/shirabe-external-packages/src/react/promise/mod.rs b/crates/shirabe-external-packages/src/react/promise/mod.rs index 9961b99..146c2f1 100644 --- a/crates/shirabe-external-packages/src/react/promise/mod.rs +++ b/crates/shirabe-external-packages/src/react/promise/mod.rs @@ -4,10 +4,10 @@ pub mod promise_interface; use self::promise::Promise; use shirabe_php_shim::PhpMixed; -pub fn resolve(value: Option<PhpMixed>) -> Promise { +pub fn resolve(_value: Option<PhpMixed>) -> Promise { todo!() } -pub fn all(promises: Vec<Promise>) -> Promise { +pub fn all(_promises: Vec<Promise>) -> Promise { todo!() } diff --git a/crates/shirabe-external-packages/src/react/promise/promise.rs b/crates/shirabe-external-packages/src/react/promise/promise.rs index 756a58a..96fa3ed 100644 --- a/crates/shirabe-external-packages/src/react/promise/promise.rs +++ b/crates/shirabe-external-packages/src/react/promise/promise.rs @@ -5,14 +5,14 @@ pub struct Promise; impl Promise { pub fn new( - resolver: Box< + _resolver: Box< dyn FnOnce(Box<dyn FnOnce(Option<PhpMixed>)>, Box<dyn FnOnce(Option<PhpMixed>)>), >, ) -> Self { todo!() } - pub fn then<F, G>(self, on_fulfilled: Option<F>, on_rejected: Option<G>) -> Self + pub fn then<F, G>(self, _on_fulfilled: Option<F>, _on_rejected: Option<G>) -> Self where F: FnOnce(Option<PhpMixed>) -> Option<PhpMixed>, G: FnOnce(Option<PhpMixed>) -> Option<PhpMixed>, diff --git a/crates/shirabe-external-packages/src/seld/json_lint/json_parser.rs b/crates/shirabe-external-packages/src/seld/json_lint/json_parser.rs index 6deb13c..31f64df 100644 --- a/crates/shirabe-external-packages/src/seld/json_lint/json_parser.rs +++ b/crates/shirabe-external-packages/src/seld/json_lint/json_parser.rs @@ -3,6 +3,12 @@ use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct JsonParser; +impl Default for JsonParser { + fn default() -> Self { + Self::new() + } +} + impl JsonParser { pub const DETECT_KEY_CONFLICTS: u32 = 1; @@ -10,7 +16,7 @@ impl JsonParser { todo!() } - pub fn parse(&self, json: &str, flags: u32) -> anyhow::Result<PhpMixed> { + pub fn parse(&self, _json: &str, _flags: u32) -> anyhow::Result<PhpMixed> { todo!() } } diff --git a/crates/shirabe-external-packages/src/seld/phar_utils/linter.rs b/crates/shirabe-external-packages/src/seld/phar_utils/linter.rs index d879c7d..27238d3 100644 --- a/crates/shirabe-external-packages/src/seld/phar_utils/linter.rs +++ b/crates/shirabe-external-packages/src/seld/phar_utils/linter.rs @@ -2,7 +2,7 @@ pub struct Linter; impl Linter { - pub fn lint(file: &str, php_versions: &[String]) -> anyhow::Result<()> { + pub fn lint(_file: &str, _php_versions: &[String]) -> anyhow::Result<()> { todo!() } } diff --git a/crates/shirabe-external-packages/src/seld/phar_utils/timestamps.rs b/crates/shirabe-external-packages/src/seld/phar_utils/timestamps.rs index d2e1be9..0a25389 100644 --- a/crates/shirabe-external-packages/src/seld/phar_utils/timestamps.rs +++ b/crates/shirabe-external-packages/src/seld/phar_utils/timestamps.rs @@ -4,15 +4,15 @@ pub struct Timestamps { } impl Timestamps { - pub fn new(file: &str) -> Self { + pub fn new(_file: &str) -> Self { todo!() } - pub fn update_timestamps(&mut self, date: &str) -> anyhow::Result<()> { + pub fn update_timestamps(&mut self, _date: &str) -> anyhow::Result<()> { todo!() } - pub fn save(&self, file: &str, format: i64) -> anyhow::Result<()> { + pub fn save(&self, _file: &str, _format: i64) -> anyhow::Result<()> { todo!() } } diff --git a/crates/shirabe-external-packages/src/seld/signal/signal_handler.rs b/crates/shirabe-external-packages/src/seld/signal/signal_handler.rs index 04aae27..3c53066 100644 --- a/crates/shirabe-external-packages/src/seld/signal/signal_handler.rs +++ b/crates/shirabe-external-packages/src/seld/signal/signal_handler.rs @@ -6,7 +6,7 @@ impl SignalHandler { pub const SIGTERM: &'static str = "SIGTERM"; pub const SIGHUP: &'static str = "SIGHUP"; - pub fn create(signals: Vec<String>, callback: Box<dyn Fn(String, &SignalHandler)>) -> Self { + pub fn create(_signals: Vec<String>, _callback: Box<dyn Fn(String, &SignalHandler)>) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/application.rs b/crates/shirabe-external-packages/src/symfony/component/console/application.rs index f9495bb..bc64521 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/application.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/application.rs @@ -6,19 +6,19 @@ use shirabe_php_shim::PhpMixed; pub struct Application; impl Application { - pub fn new(name: &str, version: &str) -> Self { + pub fn new(_name: &str, _version: &str) -> Self { todo!() } pub fn run( &mut self, - input: Option<&mut dyn InputInterface>, - output: Option<&mut dyn OutputInterface>, + _input: Option<&mut dyn InputInterface>, + _output: Option<&mut dyn OutputInterface>, ) -> anyhow::Result<i64> { todo!() } - pub fn set_name(&mut self, name: &str) { + pub fn set_name(&mut self, _name: &str) { todo!() } @@ -26,7 +26,7 @@ impl Application { todo!() } - pub fn set_version(&mut self, version: &str) { + pub fn set_version(&mut self, _version: &str) { todo!() } @@ -34,19 +34,19 @@ impl Application { todo!() } - pub fn add(&mut self, command: PhpMixed) -> Option<PhpMixed> { + pub fn add(&mut self, _command: PhpMixed) -> Option<PhpMixed> { todo!() } - pub fn get(&self, name: &str) -> anyhow::Result<PhpMixed> { + pub fn get(&self, _name: &str) -> anyhow::Result<PhpMixed> { todo!() } - pub fn set_auto_exit(&mut self, auto_exit: bool) { + pub fn set_auto_exit(&mut self, _auto_exit: bool) { todo!() } - pub fn set_catch_exceptions(&mut self, catch_exceptions: bool) { + pub fn set_catch_exceptions(&mut self, _catch_exceptions: bool) { todo!() } @@ -54,7 +54,7 @@ impl Application { todo!() } - pub fn set_helper_set(&mut self, helper_set: PhpMixed) { + pub fn set_helper_set(&mut self, _helper_set: PhpMixed) { todo!() } @@ -66,11 +66,11 @@ impl Application { todo!() } - pub fn find(&self, name: &str) -> anyhow::Result<PhpMixed> { + pub fn find(&self, _name: &str) -> anyhow::Result<PhpMixed> { todo!() } - pub fn all(&self, namespace: Option<&str>) -> Vec<PhpMixed> { + pub fn all(&self, _namespace: Option<&str>) -> Vec<PhpMixed> { todo!() } @@ -80,8 +80,8 @@ impl Application { pub fn set_default_command( &mut self, - command_name: &str, - is_single_command: bool, + _command_name: &str, + _is_single_command: bool, ) -> &mut Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/command/command.rs b/crates/shirabe-external-packages/src/symfony/component/console/command/command.rs index 3c18be5..34d1941 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/command/command.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/command/command.rs @@ -7,11 +7,11 @@ use shirabe_php_shim::PhpMixed; pub struct Command; impl Command { - pub fn new(name: Option<&str>) -> Self { + pub fn new(_name: Option<&str>) -> Self { todo!() } - pub fn set_name(&mut self, name: &str) -> &mut Self { + pub fn set_name(&mut self, _name: &str) -> &mut Self { todo!() } @@ -19,7 +19,7 @@ impl Command { todo!() } - pub fn set_description(&mut self, description: &str) -> &mut Self { + pub fn set_description(&mut self, _description: &str) -> &mut Self { todo!() } @@ -27,11 +27,11 @@ impl Command { todo!() } - pub fn set_help(&mut self, help: &str) -> &mut Self { + pub fn set_help(&mut self, _help: &str) -> &mut Self { todo!() } - pub fn set_definition(&mut self, definition: PhpMixed) -> &mut Self { + pub fn set_definition(&mut self, _definition: PhpMixed) -> &mut Self { todo!() } @@ -41,26 +41,26 @@ impl Command { pub fn add_argument( &mut self, - name: &str, - mode: Option<i64>, - description: &str, - default: PhpMixed, + _name: &str, + _mode: Option<i64>, + _description: &str, + _default: PhpMixed, ) -> &mut Self { todo!() } pub fn add_option( &mut self, - name: &str, - shortcut: Option<&str>, - mode: Option<i64>, - description: &str, - default: PhpMixed, + _name: &str, + _shortcut: Option<&str>, + _mode: Option<i64>, + _description: &str, + _default: PhpMixed, ) -> &mut Self { todo!() } - pub fn set_aliases(&mut self, aliases: &[String]) -> &mut Self { + pub fn set_aliases(&mut self, _aliases: &[String]) -> &mut Self { todo!() } @@ -68,7 +68,7 @@ impl Command { todo!() } - pub fn set_hidden(&mut self, hidden: bool) -> &mut Self { + pub fn set_hidden(&mut self, _hidden: bool) -> &mut Self { todo!() } @@ -78,13 +78,13 @@ impl Command { pub fn run( &mut self, - input: &mut dyn InputInterface, - output: &mut dyn OutputInterface, + _input: &mut dyn InputInterface, + _output: &mut dyn OutputInterface, ) -> anyhow::Result<i64> { todo!() } - pub fn get_helper(&self, name: &str) -> PhpMixed { + pub fn get_helper(&self, _name: &str) -> PhpMixed { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/completion/completion_input.rs b/crates/shirabe-external-packages/src/symfony/component/console/completion/completion_input.rs index a4b3d3e..1203ec8 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/completion/completion_input.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/completion/completion_input.rs @@ -1,5 +1,3 @@ -use shirabe_php_shim::PhpMixed; - #[derive(Debug)] pub struct CompletionInput; @@ -16,11 +14,11 @@ impl CompletionInput { todo!() } - pub fn must_suggest_option_values_for(&self, name: &str) -> bool { + pub fn must_suggest_option_values_for(&self, _name: &str) -> bool { todo!() } - pub fn must_suggest_argument_values_for(&self, name: &str) -> bool { + pub fn must_suggest_argument_values_for(&self, _name: &str) -> bool { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/completion/completion_suggestions.rs b/crates/shirabe-external-packages/src/symfony/component/console/completion/completion_suggestions.rs index 709cdcd..7dae1fc 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/completion/completion_suggestions.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/completion/completion_suggestions.rs @@ -4,11 +4,11 @@ use shirabe_php_shim::PhpMixed; pub struct CompletionSuggestions; impl CompletionSuggestions { - pub fn suggest_values(&mut self, values: Vec<PhpMixed>) { + pub fn suggest_values(&mut self, _values: Vec<PhpMixed>) { todo!() } - pub fn suggest_value(&mut self, value: PhpMixed) { + pub fn suggest_value(&mut self, _value: PhpMixed) { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/formatter/output_formatter.rs b/crates/shirabe-external-packages/src/symfony/component/console/formatter/output_formatter.rs index b698d92..d1b9a1e 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/formatter/output_formatter.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/formatter/output_formatter.rs @@ -2,11 +2,11 @@ pub struct OutputFormatter; impl OutputFormatter { - pub fn new(decorated: bool) -> Self { + pub fn new(_decorated: bool) -> Self { todo!() } - pub fn format(&self, message: &str) -> String { + pub fn format(&self, _message: &str) -> String { todo!() } @@ -14,22 +14,22 @@ impl OutputFormatter { todo!() } - pub fn set_decorated(&mut self, decorated: bool) { + pub fn set_decorated(&mut self, _decorated: bool) { todo!() } - pub fn escape(text: &str) -> String { + pub fn escape(_text: &str) -> String { todo!() } - pub fn escape_trailing_backslash(text: &str) -> String { + pub fn escape_trailing_backslash(_text: &str) -> String { todo!() } pub fn set_style( &mut self, - name: &str, - style: crate::symfony::component::console::formatter::output_formatter_style::OutputFormatterStyle, + _name: &str, + _style: crate::symfony::component::console::formatter::output_formatter_style::OutputFormatterStyle, ) { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/formatter/output_formatter_style.rs b/crates/shirabe-external-packages/src/symfony/component/console/formatter/output_formatter_style.rs index c82cf35..6299157 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/formatter/output_formatter_style.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/formatter/output_formatter_style.rs @@ -3,9 +3,9 @@ pub struct OutputFormatterStyle; impl OutputFormatterStyle { pub fn new( - foreground: Option<&str>, - background: Option<&str>, - options: Option<Vec<String>>, + _foreground: Option<&str>, + _background: Option<&str>, + _options: Option<Vec<String>>, ) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/helper/formatter_helper.rs b/crates/shirabe-external-packages/src/symfony/component/console/helper/formatter_helper.rs index eb19ea7..656828e 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/helper/formatter_helper.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/helper/formatter_helper.rs @@ -2,11 +2,11 @@ pub struct FormatterHelper; impl FormatterHelper { - pub fn format_section(&self, section: &str, message: &str, style: &str) -> String { + pub fn format_section(&self, _section: &str, _message: &str, _style: &str) -> String { todo!() } - pub fn format_block(&self, messages: &[&str], style: &str, large: bool) -> String { + pub fn format_block(&self, _messages: &[&str], _style: &str, _large: bool) -> String { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/helper/helper_set.rs b/crates/shirabe-external-packages/src/symfony/component/console/helper/helper_set.rs index 9448310..f8b2e24 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/helper/helper_set.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/helper/helper_set.rs @@ -4,19 +4,19 @@ use shirabe_php_shim::PhpMixed; pub struct HelperSet; impl HelperSet { - pub fn new(helpers: Vec<PhpMixed>) -> Self { + pub fn new(_helpers: Vec<PhpMixed>) -> Self { todo!() } - pub fn get(&self, name: &str) -> Option<PhpMixed> { + pub fn get(&self, _name: &str) -> Option<PhpMixed> { todo!() } - pub fn set(&mut self, helper: PhpMixed, alias: Option<&str>) { + pub fn set(&mut self, _helper: PhpMixed, _alias: Option<&str>) { todo!() } - pub fn has(&self, name: &str) -> bool { + pub fn has(&self, _name: &str) -> bool { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/helper/progress_bar.rs b/crates/shirabe-external-packages/src/symfony/component/console/helper/progress_bar.rs index 22ca089..64835bb 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/helper/progress_bar.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/helper/progress_bar.rs @@ -4,15 +4,15 @@ use crate::symfony::component::console::output::output_interface::OutputInterfac pub struct ProgressBar; impl ProgressBar { - pub fn new(output: &dyn OutputInterface, max: i64) -> Self { + pub fn new(_output: &dyn OutputInterface, _max: i64) -> Self { todo!() } - pub fn start(&mut self, max: Option<i64>) { + pub fn start(&mut self, _max: Option<i64>) { todo!() } - pub fn advance(&mut self, step: i64) { + pub fn advance(&mut self, _step: i64) { todo!() } @@ -20,7 +20,7 @@ impl ProgressBar { todo!() } - pub fn set_format(&mut self, format: &str) { + pub fn set_format(&mut self, _format: &str) { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/helper/question_helper.rs b/crates/shirabe-external-packages/src/symfony/component/console/helper/question_helper.rs index 2f2acf8..705cb9a 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/helper/question_helper.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/helper/question_helper.rs @@ -9,9 +9,9 @@ pub struct QuestionHelper; impl QuestionHelper { pub fn ask( &self, - input: &mut dyn InputInterface, - output: &mut dyn OutputInterface, - question: &Question, + _input: &mut dyn InputInterface, + _output: &mut dyn OutputInterface, + _question: &Question, ) -> Option<PhpMixed> { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/helper/table.rs b/crates/shirabe-external-packages/src/symfony/component/console/helper/table.rs index c24a19e..ba01e07 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/helper/table.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/helper/table.rs @@ -5,19 +5,19 @@ use shirabe_php_shim::PhpMixed; pub struct Table; impl Table { - pub fn new(output: &dyn OutputInterface) -> Self { + pub fn new(_output: &dyn OutputInterface) -> Self { todo!() } - pub fn set_headers(&mut self, headers: Vec<PhpMixed>) -> &mut Self { + pub fn set_headers(&mut self, _headers: Vec<PhpMixed>) -> &mut Self { todo!() } - pub fn set_rows(&mut self, rows: Vec<PhpMixed>) -> &mut Self { + pub fn set_rows(&mut self, _rows: Vec<PhpMixed>) -> &mut Self { todo!() } - pub fn add_row(&mut self, row: PhpMixed) -> &mut Self { + pub fn add_row(&mut self, _row: PhpMixed) -> &mut Self { todo!() } @@ -25,11 +25,11 @@ impl Table { todo!() } - pub fn set_style(&mut self, style: &str) -> &mut Self { + pub fn set_style(&mut self, _style: &str) -> &mut Self { todo!() } - pub fn set_column_widths(&mut self, widths: Vec<i64>) -> &mut Self { + pub fn set_column_widths(&mut self, _widths: Vec<i64>) -> &mut Self { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/helper/table_separator.rs b/crates/shirabe-external-packages/src/symfony/component/console/helper/table_separator.rs index 7b4b2e2..22ac013 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/helper/table_separator.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/helper/table_separator.rs @@ -1,6 +1,12 @@ #[derive(Debug)] pub struct TableSeparator; +impl Default for TableSeparator { + fn default() -> Self { + Self::new() + } +} + impl TableSeparator { pub fn new() -> Self { todo!() diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/array_input.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/array_input.rs index b09762c..83f487b 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/array_input.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/input/array_input.rs @@ -8,8 +8,8 @@ pub struct ArrayInput; impl ArrayInput { pub fn new( - parameters: IndexMap<String, PhpMixed>, - definition: Option<InputDefinition>, + _parameters: IndexMap<String, PhpMixed>, + _definition: Option<InputDefinition>, ) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/input_definition.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/input_definition.rs index 7a46004..74839fc 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/input_definition.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/input/input_definition.rs @@ -4,27 +4,27 @@ use shirabe_php_shim::PhpMixed; pub struct InputDefinition; impl InputDefinition { - pub fn new(definition: Vec<PhpMixed>) -> Self { + pub fn new(_definition: Vec<PhpMixed>) -> Self { todo!() } - pub fn add_argument(&mut self, argument: PhpMixed) { + pub fn add_argument(&mut self, _argument: PhpMixed) { todo!() } - pub fn add_option(&mut self, option: PhpMixed) { + pub fn add_option(&mut self, _option: PhpMixed) { todo!() } - pub fn has_option(&self, name: &str) -> bool { + pub fn has_option(&self, _name: &str) -> bool { todo!() } - pub fn get_option(&self, name: &str) -> anyhow::Result<PhpMixed> { + pub fn get_option(&self, _name: &str) -> anyhow::Result<PhpMixed> { todo!() } - pub fn has_argument(&self, name: &str) -> bool { + pub fn has_argument(&self, _name: &str) -> bool { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/input_option.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/input_option.rs index 9c188ba..673ca07 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/input_option.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/input/input_option.rs @@ -11,11 +11,11 @@ impl InputOption { pub const VALUE_NEGATABLE: i64 = 16; pub fn new( - name: &str, - shortcut: Option<&str>, - mode: Option<i64>, - description: &str, - default: PhpMixed, + _name: &str, + _shortcut: Option<&str>, + _mode: Option<i64>, + _description: &str, + _default: PhpMixed, ) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/input/string_input.rs b/crates/shirabe-external-packages/src/symfony/component/console/input/string_input.rs index 248782d..5baaede 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/input/string_input.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/input/string_input.rs @@ -7,7 +7,7 @@ use shirabe_php_shim::PhpMixed; pub struct StringInput; impl StringInput { - pub fn new(input: &str) -> Self { + pub fn new(_input: &str) -> Self { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/output/console_output.rs b/crates/shirabe-external-packages/src/symfony/component/console/output/console_output.rs index 150c8ae..73c5c46 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/output/console_output.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/output/console_output.rs @@ -1,5 +1,4 @@ use crate::symfony::component::console::formatter::output_formatter::OutputFormatter; -use crate::symfony::component::console::output::console_output_interface::ConsoleOutputInterface; use crate::symfony::component::console::output::output_interface::OutputInterface; #[derive(Debug)] @@ -7,9 +6,9 @@ pub struct ConsoleOutput; impl ConsoleOutput { pub fn new( - verbosity: i64, - decorated: Option<bool>, - formatter: Option<OutputFormatter>, + _verbosity: i64, + _decorated: Option<bool>, + _formatter: Option<OutputFormatter>, ) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/question/choice_question.rs b/crates/shirabe-external-packages/src/symfony/component/console/question/choice_question.rs index e134de2..0544ffd 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/question/choice_question.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/question/choice_question.rs @@ -5,15 +5,15 @@ use shirabe_php_shim::PhpMixed; pub struct ChoiceQuestion(pub Question); impl ChoiceQuestion { - pub fn new(question: &str, choices: Vec<PhpMixed>, default: Option<PhpMixed>) -> Self { + pub fn new(_question: &str, _choices: Vec<PhpMixed>, _default: Option<PhpMixed>) -> Self { todo!() } - pub fn set_multiselect(&mut self, multiselect: bool) { + pub fn set_multiselect(&mut self, _multiselect: bool) { todo!() } - pub fn set_error_message(&mut self, error_message: &str) { + pub fn set_error_message(&mut self, _error_message: &str) { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/question/question.rs b/crates/shirabe-external-packages/src/symfony/component/console/question/question.rs index d749fce..c83bbcd 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/question/question.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/question/question.rs @@ -4,26 +4,26 @@ use shirabe_php_shim::PhpMixed; pub struct Question; impl Question { - pub fn new(question: &str, default: Option<PhpMixed>) -> Self { + pub fn new(_question: &str, _default: Option<PhpMixed>) -> Self { todo!() } pub fn set_validator( &mut self, - validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, + _validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, ) { todo!() } - pub fn set_max_attempts(&mut self, attempts: Option<i64>) { + pub fn set_max_attempts(&mut self, _attempts: Option<i64>) { todo!() } - pub fn set_hidden(&mut self, hidden: bool) { + pub fn set_hidden(&mut self, _hidden: bool) { todo!() } - pub fn set_hidden_fallback(&mut self, fallback: bool) { + pub fn set_hidden_fallback(&mut self, _fallback: bool) { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/single_command_application.rs b/crates/shirabe-external-packages/src/symfony/component/console/single_command_application.rs index cce75db..9273477 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/single_command_application.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/single_command_application.rs @@ -1,24 +1,28 @@ -use shirabe_php_shim::PhpMixed; - #[derive(Debug)] pub struct SingleCommandApplication; +impl Default for SingleCommandApplication { + fn default() -> Self { + Self::new() + } +} + impl SingleCommandApplication { pub fn new() -> Self { todo!() } - pub fn set_name(&mut self, name: &str) -> &mut Self { + pub fn set_name(&mut self, _name: &str) -> &mut Self { todo!() } - pub fn set_version(&mut self, version: &str) -> &mut Self { + pub fn set_version(&mut self, _version: &str) -> &mut Self { todo!() } pub fn set_code( &mut self, - code: Box<dyn Fn(&dyn std::any::Any, &dyn std::any::Any) -> i64>, + _code: Box<dyn Fn(&dyn std::any::Any, &dyn std::any::Any) -> i64>, ) -> &mut Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/console/terminal.rs b/crates/shirabe-external-packages/src/symfony/component/console/terminal.rs index f960a50..251d71e 100644 --- a/crates/shirabe-external-packages/src/symfony/component/console/terminal.rs +++ b/crates/shirabe-external-packages/src/symfony/component/console/terminal.rs @@ -1,6 +1,12 @@ #[derive(Debug)] pub struct Terminal; +impl Default for Terminal { + fn default() -> Self { + Self::new() + } +} + impl Terminal { pub fn new() -> Self { todo!() diff --git a/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs b/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs index ef48c3d..522309e 100644 --- a/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs +++ b/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs @@ -3,6 +3,12 @@ use shirabe_php_shim::PhpMixed; #[derive(Debug, Clone)] pub struct Filesystem; +impl Default for Filesystem { + fn default() -> Self { + Self::new() + } +} + impl Filesystem { pub fn new() -> Self { todo!() @@ -10,117 +16,122 @@ impl Filesystem { pub fn copy( &self, - origin_file: &str, - target_file: &str, - override_file: bool, + _origin_file: &str, + _target_file: &str, + _override_file: bool, ) -> anyhow::Result<()> { todo!() } - pub fn mkdir(&self, dirs: PhpMixed, mode: u32) -> anyhow::Result<()> { + pub fn mkdir(&self, _dirs: PhpMixed, _mode: u32) -> anyhow::Result<()> { todo!() } - pub fn exists(&self, files: PhpMixed) -> bool { + pub fn exists(&self, _files: PhpMixed) -> bool { todo!() } pub fn touch( &self, - files: PhpMixed, - time: Option<i64>, - atime: Option<i64>, + _files: PhpMixed, + _time: Option<i64>, + _atime: Option<i64>, ) -> anyhow::Result<()> { todo!() } - pub fn remove(&self, files: PhpMixed) -> anyhow::Result<()> { + pub fn remove(&self, _files: PhpMixed) -> anyhow::Result<()> { todo!() } pub fn chmod( &self, - files: PhpMixed, - mode: u32, - umask: u32, - recursive: bool, + _files: PhpMixed, + _mode: u32, + _umask: u32, + _recursive: bool, ) -> anyhow::Result<()> { todo!() } - pub fn chown(&self, files: PhpMixed, user: PhpMixed, recursive: bool) -> anyhow::Result<()> { + pub fn chown(&self, _files: PhpMixed, _user: PhpMixed, _recursive: bool) -> anyhow::Result<()> { todo!() } - pub fn chgrp(&self, files: PhpMixed, group: PhpMixed, recursive: bool) -> anyhow::Result<()> { + pub fn chgrp( + &self, + _files: PhpMixed, + _group: PhpMixed, + _recursive: bool, + ) -> anyhow::Result<()> { todo!() } - pub fn rename(&self, origin: &str, target: &str, override_file: bool) -> anyhow::Result<()> { + pub fn rename(&self, _origin: &str, _target: &str, _override_file: bool) -> anyhow::Result<()> { todo!() } pub fn symlink( &self, - origin_dir: &str, - target_dir: &str, - copy_on_windows: bool, + _origin_dir: &str, + _target_dir: &str, + _copy_on_windows: bool, ) -> anyhow::Result<()> { todo!() } - pub fn hard_link(&self, origin_file: &str, target_files: PhpMixed) -> anyhow::Result<()> { + pub fn hard_link(&self, _origin_file: &str, _target_files: PhpMixed) -> anyhow::Result<()> { todo!() } - pub fn read_link(&self, path: &str) -> String { + pub fn read_link(&self, _path: &str) -> String { todo!() } - pub fn make_path_relative(&self, end_path: &str, start_path: &str) -> String { + pub fn make_path_relative(&self, _end_path: &str, _start_path: &str) -> String { todo!() } pub fn mirror( &self, - origin_dir: &str, - target_dir: &str, - iterator: Option<PhpMixed>, - options: &indexmap::IndexMap<String, PhpMixed>, + _origin_dir: &str, + _target_dir: &str, + _iterator: Option<PhpMixed>, + _options: &indexmap::IndexMap<String, PhpMixed>, ) -> anyhow::Result<()> { todo!() } - pub fn is_absolute_path(&self, file: &str) -> bool { + pub fn is_absolute_path(&self, _file: &str) -> bool { todo!() } - pub fn dump_file(&self, filename: &str, content: &str) -> anyhow::Result<()> { + pub fn dump_file(&self, _filename: &str, _content: &str) -> anyhow::Result<()> { todo!() } - pub fn append_to_file(&self, filename: &str, content: &str) -> anyhow::Result<()> { + pub fn append_to_file(&self, _filename: &str, _content: &str) -> anyhow::Result<()> { todo!() } - pub fn temp_nam(&self, dir: &str, prefix: &str) -> anyhow::Result<String> { + pub fn temp_nam(&self, _dir: &str, _prefix: &str) -> anyhow::Result<String> { todo!() } // Static-style helper methods used in the ported codebase - pub fn is_readable(path: &str) -> bool { + pub fn is_readable(_path: &str) -> bool { todo!() } - pub fn is_local_path(path: &str) -> bool { + pub fn is_local_path(_path: &str) -> bool { todo!() } - pub fn trim_trailing_slash(path: &str) -> String { + pub fn trim_trailing_slash(_path: &str) -> String { todo!() } - pub fn get_platform_path(path: &str) -> String { + pub fn get_platform_path(_path: &str) -> String { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/finder/finder.rs b/crates/shirabe-external-packages/src/symfony/component/finder/finder.rs index 4a19b0f..ae95aeb 100644 --- a/crates/shirabe-external-packages/src/symfony/component/finder/finder.rs +++ b/crates/shirabe-external-packages/src/symfony/component/finder/finder.rs @@ -3,6 +3,12 @@ use crate::symfony::component::finder::spl_file_info::SplFileInfo; #[derive(Debug)] pub struct Finder; +impl Default for Finder { + fn default() -> Self { + Self::new() + } +} + impl Finder { pub fn new() -> Self { todo!() @@ -20,11 +26,11 @@ impl Finder { todo!() } - pub fn depth(&mut self, level: i64) -> &mut Self { + pub fn depth(&mut self, _level: i64) -> &mut Self { todo!() } - pub fn r#in(&mut self, dirs: &str) -> &mut Self { + pub fn r#in(&mut self, _dirs: &str) -> &mut Self { todo!() } @@ -32,23 +38,23 @@ impl Finder { todo!() } - pub fn exclude(&mut self, exclude: &[String]) -> &mut Self { + pub fn exclude(&mut self, _exclude: &[String]) -> &mut Self { todo!() } - pub fn ignore_vcs(&mut self, ignore_vcs: bool) -> &mut Self { + pub fn ignore_vcs(&mut self, _ignore_vcs: bool) -> &mut Self { todo!() } - pub fn ignore_dot_files(&mut self, ignore_dot_files: bool) -> &mut Self { + pub fn ignore_dot_files(&mut self, _ignore_dot_files: bool) -> &mut Self { todo!() } - pub fn not_name(&mut self, pattern: &str) -> &mut Self { + pub fn not_name(&mut self, _pattern: &str) -> &mut Self { todo!() } - pub fn name(&mut self, pattern: &str) -> &mut Self { + pub fn name(&mut self, _pattern: &str) -> &mut Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/finder/glob.rs b/crates/shirabe-external-packages/src/symfony/component/finder/glob.rs index d6aadd2..08ab6df 100644 --- a/crates/shirabe-external-packages/src/symfony/component/finder/glob.rs +++ b/crates/shirabe-external-packages/src/symfony/component/finder/glob.rs @@ -2,7 +2,11 @@ pub struct Glob; impl Glob { - pub fn to_regex(glob: &str, strict_leading_dot: bool, strict_wildcard_slash: bool) -> String { + pub fn to_regex( + _glob: &str, + _strict_leading_dot: bool, + _strict_wildcard_slash: bool, + ) -> String { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs b/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs index fa37718..31a0e50 100644 --- a/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs +++ b/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs @@ -2,7 +2,7 @@ pub struct SplFileInfo; impl SplFileInfo { - pub fn new(path: &str) -> Self { + pub fn new(_path: &str) -> Self { todo!() } @@ -18,7 +18,7 @@ impl SplFileInfo { todo!() } - pub fn get_basename(&self, suffix: Option<&str>) -> String { + pub fn get_basename(&self, _suffix: Option<&str>) -> String { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs b/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs index 9aa5a8b..ae8e5dc 100644 --- a/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs +++ b/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs @@ -1,16 +1,22 @@ #[derive(Debug)] pub struct ExecutableFinder; +impl Default for ExecutableFinder { + fn default() -> Self { + Self::new() + } +} + impl ExecutableFinder { pub fn new() -> Self { todo!() } - pub fn add_suffix(&mut self, suffix: &str) { + pub fn add_suffix(&mut self, _suffix: &str) { todo!() } - pub fn find(&self, name: &str, default: Option<&str>, dirs: &[String]) -> Option<String> { + pub fn find(&self, _name: &str, _default: Option<&str>, _dirs: &[String]) -> Option<String> { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs b/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs index be99e8c..0346d10 100644 --- a/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs +++ b/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs @@ -1,12 +1,18 @@ #[derive(Debug)] pub struct PhpExecutableFinder; +impl Default for PhpExecutableFinder { + fn default() -> Self { + Self::new() + } +} + impl PhpExecutableFinder { pub fn new() -> Self { todo!() } - pub fn find(&self, include_args: bool) -> Option<String> { + pub fn find(&self, _include_args: bool) -> Option<String> { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/process/process.rs b/crates/shirabe-external-packages/src/symfony/component/process/process.rs index c955790..d0cc249 100644 --- a/crates/shirabe-external-packages/src/symfony/component/process/process.rs +++ b/crates/shirabe-external-packages/src/symfony/component/process/process.rs @@ -1,5 +1,4 @@ use indexmap::IndexMap; -use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct Process; @@ -9,57 +8,57 @@ impl Process { pub const OUT: &'static str = "out"; pub fn new( - command: Vec<String>, - cwd: Option<String>, - env: Option<IndexMap<String, String>>, - input: Option<String>, - timeout: Option<f64>, + _command: Vec<String>, + _cwd: Option<String>, + _env: Option<IndexMap<String, String>>, + _input: Option<String>, + _timeout: Option<f64>, ) -> Self { todo!() } pub fn from_shell_commandline( - command: &str, - cwd: Option<&str>, - env: Option<IndexMap<String, String>>, - input: Option<String>, - timeout: Option<f64>, + _command: &str, + _cwd: Option<&str>, + _env: Option<IndexMap<String, String>>, + _input: Option<String>, + _timeout: Option<f64>, ) -> Self { todo!() } - pub fn set_timeout(&mut self, timeout: Option<f64>) -> &mut Self { + pub fn set_timeout(&mut self, _timeout: Option<f64>) -> &mut Self { todo!() } - pub fn set_env(&mut self, env: IndexMap<String, String>) -> &mut Self { + pub fn set_env(&mut self, _env: IndexMap<String, String>) -> &mut Self { todo!() } - pub fn set_input(&mut self, input: Option<String>) -> &mut Self { + pub fn set_input(&mut self, _input: Option<String>) -> &mut Self { todo!() } - pub fn run(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 { + pub fn run(&mut self, _callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 { todo!() } pub fn must_run( &mut self, - callback: Option<Box<dyn FnMut(&str, &str)>>, + _callback: Option<Box<dyn FnMut(&str, &str)>>, ) -> anyhow::Result<&mut Self> { todo!() } - pub fn start(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) { + pub fn start(&mut self, _callback: Option<Box<dyn FnMut(&str, &str)>>) { todo!() } - pub fn wait(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 { + pub fn wait(&mut self, _callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 { todo!() } - pub fn stop(&mut self, timeout: f64, signal: Option<i64>) -> Option<i64> { + pub fn stop(&mut self, _timeout: f64, _signal: Option<i64>) -> Option<i64> { todo!() } @@ -107,7 +106,7 @@ impl Process { todo!() } - pub fn set_working_directory(&mut self, cwd: &str) -> &mut Self { + pub fn set_working_directory(&mut self, _cwd: &str) -> &mut Self { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/completion/completion_input.rs b/crates/shirabe-external-packages/src/symfony/console/completion/completion_input.rs index a4b3d3e..1203ec8 100644 --- a/crates/shirabe-external-packages/src/symfony/console/completion/completion_input.rs +++ b/crates/shirabe-external-packages/src/symfony/console/completion/completion_input.rs @@ -1,5 +1,3 @@ -use shirabe_php_shim::PhpMixed; - #[derive(Debug)] pub struct CompletionInput; @@ -16,11 +14,11 @@ impl CompletionInput { todo!() } - pub fn must_suggest_option_values_for(&self, name: &str) -> bool { + pub fn must_suggest_option_values_for(&self, _name: &str) -> bool { todo!() } - pub fn must_suggest_argument_values_for(&self, name: &str) -> bool { + pub fn must_suggest_argument_values_for(&self, _name: &str) -> bool { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/completion/completion_suggestions.rs b/crates/shirabe-external-packages/src/symfony/console/completion/completion_suggestions.rs index 709cdcd..7dae1fc 100644 --- a/crates/shirabe-external-packages/src/symfony/console/completion/completion_suggestions.rs +++ b/crates/shirabe-external-packages/src/symfony/console/completion/completion_suggestions.rs @@ -4,11 +4,11 @@ use shirabe_php_shim::PhpMixed; pub struct CompletionSuggestions; impl CompletionSuggestions { - pub fn suggest_values(&mut self, values: Vec<PhpMixed>) { + pub fn suggest_values(&mut self, _values: Vec<PhpMixed>) { todo!() } - pub fn suggest_value(&mut self, value: PhpMixed) { + pub fn suggest_value(&mut self, _value: PhpMixed) { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/completion/suggestion.rs b/crates/shirabe-external-packages/src/symfony/console/completion/suggestion.rs index 1d6d0f0..666e474 100644 --- a/crates/shirabe-external-packages/src/symfony/console/completion/suggestion.rs +++ b/crates/shirabe-external-packages/src/symfony/console/completion/suggestion.rs @@ -2,7 +2,7 @@ pub struct Suggestion; impl Suggestion { - pub fn new(value: String, description: Option<String>) -> Self { + pub fn new(_value: String, _description: Option<String>) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs index 03c622b..5eb2f93 100644 --- a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs +++ b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter.rs @@ -2,11 +2,11 @@ pub struct OutputFormatter; impl OutputFormatter { - pub fn new(decorated: bool) -> Self { + pub fn new(_decorated: bool) -> Self { todo!() } - pub fn format(&self, message: &str) -> String { + pub fn format(&self, _message: &str) -> String { todo!() } @@ -14,11 +14,11 @@ impl OutputFormatter { todo!() } - pub fn set_decorated(&mut self, decorated: bool) { + pub fn set_decorated(&mut self, _decorated: bool) { todo!() } - pub fn escape(text: &str) -> String { + pub fn escape(_text: &str) -> String { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style.rs b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style.rs index c82cf35..6299157 100644 --- a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style.rs +++ b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style.rs @@ -3,9 +3,9 @@ pub struct OutputFormatterStyle; impl OutputFormatterStyle { pub fn new( - foreground: Option<&str>, - background: Option<&str>, - options: Option<Vec<String>>, + _foreground: Option<&str>, + _background: Option<&str>, + _options: Option<Vec<String>>, ) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/console/helper/helper_set.rs b/crates/shirabe-external-packages/src/symfony/console/helper/helper_set.rs index 9448310..f8b2e24 100644 --- a/crates/shirabe-external-packages/src/symfony/console/helper/helper_set.rs +++ b/crates/shirabe-external-packages/src/symfony/console/helper/helper_set.rs @@ -4,19 +4,19 @@ use shirabe_php_shim::PhpMixed; pub struct HelperSet; impl HelperSet { - pub fn new(helpers: Vec<PhpMixed>) -> Self { + pub fn new(_helpers: Vec<PhpMixed>) -> Self { todo!() } - pub fn get(&self, name: &str) -> Option<PhpMixed> { + pub fn get(&self, _name: &str) -> Option<PhpMixed> { todo!() } - pub fn set(&mut self, helper: PhpMixed, alias: Option<&str>) { + pub fn set(&mut self, _helper: PhpMixed, _alias: Option<&str>) { todo!() } - pub fn has(&self, name: &str) -> bool { + pub fn has(&self, _name: &str) -> bool { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/helper/question_helper.rs b/crates/shirabe-external-packages/src/symfony/console/helper/question_helper.rs index 3a2bd5b..c7d55be 100644 --- a/crates/shirabe-external-packages/src/symfony/console/helper/question_helper.rs +++ b/crates/shirabe-external-packages/src/symfony/console/helper/question_helper.rs @@ -6,9 +6,9 @@ pub struct QuestionHelper; impl QuestionHelper { pub fn ask( &self, - input: &mut dyn std::any::Any, - output: &mut dyn std::any::Any, - question: &dyn std::any::Any, + _input: &mut dyn std::any::Any, + _output: &mut dyn std::any::Any, + _question: &dyn std::any::Any, ) -> Option<PhpMixed> { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/console/helper/table.rs b/crates/shirabe-external-packages/src/symfony/console/helper/table.rs index 2a8848d..f5e7e0c 100644 --- a/crates/shirabe-external-packages/src/symfony/console/helper/table.rs +++ b/crates/shirabe-external-packages/src/symfony/console/helper/table.rs @@ -4,19 +4,19 @@ use shirabe_php_shim::PhpMixed; pub struct Table; impl Table { - pub fn new(output: &dyn std::any::Any) -> Self { + pub fn new(_output: &dyn std::any::Any) -> Self { todo!() } - pub fn set_headers(&mut self, headers: Vec<PhpMixed>) -> &mut Self { + pub fn set_headers(&mut self, _headers: Vec<PhpMixed>) -> &mut Self { todo!() } - pub fn set_rows(&mut self, rows: Vec<PhpMixed>) -> &mut Self { + pub fn set_rows(&mut self, _rows: Vec<PhpMixed>) -> &mut Self { todo!() } - pub fn add_row(&mut self, row: PhpMixed) -> &mut Self { + pub fn add_row(&mut self, _row: PhpMixed) -> &mut Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/console/input/array_input.rs b/crates/shirabe-external-packages/src/symfony/console/input/array_input.rs index 68c589e..8feeeb8 100644 --- a/crates/shirabe-external-packages/src/symfony/console/input/array_input.rs +++ b/crates/shirabe-external-packages/src/symfony/console/input/array_input.rs @@ -6,7 +6,7 @@ use shirabe_php_shim::PhpMixed; pub struct ArrayInput; impl ArrayInput { - pub fn new(parameters: IndexMap<String, PhpMixed>) -> Self { + pub fn new(_parameters: IndexMap<String, PhpMixed>) -> Self { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/input/input_argument.rs b/crates/shirabe-external-packages/src/symfony/console/input/input_argument.rs index f5c29e8..84b722d 100644 --- a/crates/shirabe-external-packages/src/symfony/console/input/input_argument.rs +++ b/crates/shirabe-external-packages/src/symfony/console/input/input_argument.rs @@ -9,10 +9,10 @@ impl InputArgument { pub const IS_ARRAY: i64 = 4; pub fn new( - name: &str, - mode: Option<i64>, - description: &str, - default: Option<PhpMixed>, + _name: &str, + _mode: Option<i64>, + _description: &str, + _default: Option<PhpMixed>, ) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/console/input/input_option.rs b/crates/shirabe-external-packages/src/symfony/console/input/input_option.rs index 9c188ba..673ca07 100644 --- a/crates/shirabe-external-packages/src/symfony/console/input/input_option.rs +++ b/crates/shirabe-external-packages/src/symfony/console/input/input_option.rs @@ -11,11 +11,11 @@ impl InputOption { pub const VALUE_NEGATABLE: i64 = 16; pub fn new( - name: &str, - shortcut: Option<&str>, - mode: Option<i64>, - description: &str, - default: PhpMixed, + _name: &str, + _shortcut: Option<&str>, + _mode: Option<i64>, + _description: &str, + _default: PhpMixed, ) -> Self { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/console/input/string_input.rs b/crates/shirabe-external-packages/src/symfony/console/input/string_input.rs index 12c6d9d..6c3ebad 100644 --- a/crates/shirabe-external-packages/src/symfony/console/input/string_input.rs +++ b/crates/shirabe-external-packages/src/symfony/console/input/string_input.rs @@ -6,7 +6,7 @@ use shirabe_php_shim::PhpMixed; pub struct StringInput; impl StringInput { - pub fn new(input: &str) -> Self { + pub fn new(_input: &str) -> Self { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs b/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs index e5d83fb..068b678 100644 --- a/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs +++ b/crates/shirabe-external-packages/src/symfony/console/output/stream_output.rs @@ -5,7 +5,7 @@ use shirabe_php_shim::PhpMixed; pub struct StreamOutput; impl StreamOutput { - pub fn new(stream: PhpMixed, verbosity: i64, decorated: Option<bool>) -> Self { + pub fn new(_stream: PhpMixed, _verbosity: i64, _decorated: Option<bool>) -> Self { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/console/question/question.rs b/crates/shirabe-external-packages/src/symfony/console/question/question.rs index 34bb6a4..4cc4d6d 100644 --- a/crates/shirabe-external-packages/src/symfony/console/question/question.rs +++ b/crates/shirabe-external-packages/src/symfony/console/question/question.rs @@ -4,22 +4,22 @@ use shirabe_php_shim::PhpMixed; pub struct Question; impl Question { - pub fn new(question: &str, default: Option<PhpMixed>) -> Self { + pub fn new(_question: &str, _default: Option<PhpMixed>) -> Self { todo!() } pub fn set_validator( &mut self, - validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, + _validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, ) { todo!() } - pub fn set_max_attempts(&mut self, attempts: Option<i64>) { + pub fn set_max_attempts(&mut self, _attempts: Option<i64>) { todo!() } - pub fn set_hidden(&mut self, hidden: bool) { + pub fn set_hidden(&mut self, _hidden: bool) { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs b/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs index 7f7acd6..4269337 100644 --- a/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs +++ b/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs @@ -6,89 +6,89 @@ use shirabe_php_shim::PhpMixed; pub struct SymfonyStyle; impl SymfonyStyle { - pub fn new(input: &dyn InputInterface, output: &dyn OutputInterface) -> Self { + pub fn new(_input: &dyn InputInterface, _output: &dyn OutputInterface) -> Self { todo!() } - pub fn title(&mut self, message: &str) { + pub fn title(&mut self, _message: &str) { todo!() } - pub fn section(&mut self, message: &str) { + pub fn section(&mut self, _message: &str) { todo!() } - pub fn text(&mut self, message: &str) { + pub fn text(&mut self, _message: &str) { todo!() } - pub fn comment(&mut self, message: &str) { + pub fn comment(&mut self, _message: &str) { todo!() } - pub fn success(&mut self, message: PhpMixed) { + pub fn success(&mut self, _message: PhpMixed) { todo!() } - pub fn error(&mut self, message: PhpMixed) { + pub fn error(&mut self, _message: PhpMixed) { todo!() } - pub fn warning(&mut self, message: PhpMixed) { + pub fn warning(&mut self, _message: PhpMixed) { todo!() } - pub fn note(&mut self, message: PhpMixed) { + pub fn note(&mut self, _message: PhpMixed) { todo!() } - pub fn listing(&mut self, elements: &[String]) { + pub fn listing(&mut self, _elements: &[String]) { todo!() } - pub fn new_line(&mut self, count: i64) { + pub fn new_line(&mut self, _count: i64) { todo!() } pub fn ask( &mut self, - question: &str, - default: Option<&str>, - validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, + _question: &str, + _default: Option<&str>, + _validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, ) -> PhpMixed { todo!() } pub fn ask_hidden( &mut self, - question: &str, - validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, + _question: &str, + _validator: Option<Box<dyn Fn(Option<PhpMixed>) -> anyhow::Result<PhpMixed>>>, ) -> PhpMixed { todo!() } - pub fn confirm(&mut self, question: &str, default: bool) -> bool { + pub fn confirm(&mut self, _question: &str, _default: bool) -> bool { todo!() } pub fn choice( &mut self, - question: &str, - choices: Vec<PhpMixed>, - default: Option<PhpMixed>, + _question: &str, + _choices: Vec<PhpMixed>, + _default: Option<PhpMixed>, ) -> PhpMixed { todo!() } - pub fn table(&mut self, headers: Vec<PhpMixed>, rows: Vec<PhpMixed>) { + pub fn table(&mut self, _headers: Vec<PhpMixed>, _rows: Vec<PhpMixed>) { todo!() } - pub fn progress_start(&mut self, max: i64) { + pub fn progress_start(&mut self, _max: i64) { todo!() } - pub fn progress_advance(&mut self, step: i64) { + pub fn progress_advance(&mut self, _step: i64) { todo!() } @@ -100,11 +100,11 @@ impl SymfonyStyle { todo!() } - pub fn writeln(&mut self, messages: PhpMixed, r#type: i64) { + pub fn writeln(&mut self, _messages: PhpMixed, _type: i64) { todo!() } - pub fn write(&mut self, messages: PhpMixed, newline: bool, r#type: i64) { + pub fn write(&mut self, _messages: PhpMixed, _newline: bool, _type: i64) { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/process/executable_finder.rs b/crates/shirabe-external-packages/src/symfony/process/executable_finder.rs index 9aa5a8b..ae8e5dc 100644 --- a/crates/shirabe-external-packages/src/symfony/process/executable_finder.rs +++ b/crates/shirabe-external-packages/src/symfony/process/executable_finder.rs @@ -1,16 +1,22 @@ #[derive(Debug)] pub struct ExecutableFinder; +impl Default for ExecutableFinder { + fn default() -> Self { + Self::new() + } +} + impl ExecutableFinder { pub fn new() -> Self { todo!() } - pub fn add_suffix(&mut self, suffix: &str) { + pub fn add_suffix(&mut self, _suffix: &str) { todo!() } - pub fn find(&self, name: &str, default: Option<&str>, dirs: &[String]) -> Option<String> { + pub fn find(&self, _name: &str, _default: Option<&str>, _dirs: &[String]) -> Option<String> { todo!() } } |
