aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/advisory
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-17 14:33:13 +0900
committernsfisis <nsfisis@gmail.com>2026-05-17 14:38:16 +0900
commit3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3 (patch)
tree712ae7832124da20739f5b389cebe4f44abd7225 /crates/shirabe/src/advisory
parentac59538140a93d9a023da2115148bc9779223978 (diff)
downloadphp-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.tar.gz
php-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.tar.zst
php-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.zip
fix(compile): extract constants from traits to make them dyn-compatible
Diffstat (limited to 'crates/shirabe/src/advisory')
-rw-r--r--crates/shirabe/src/advisory/auditor.rs19
1 files changed, 10 insertions, 9 deletions
diff --git a/crates/shirabe/src/advisory/auditor.rs b/crates/shirabe/src/advisory/auditor.rs
index 37c86d9..e2fb965 100644
--- a/crates/shirabe/src/advisory/auditor.rs
+++ b/crates/shirabe/src/advisory/auditor.rs
@@ -1,5 +1,6 @@
//! ref: composer/src/Composer/Advisory/Auditor.php
+use crate::io::io_interface;
use anyhow::Result;
use indexmap::IndexMap;
use shirabe_external_packages::composer::pcre::preg::Preg;
@@ -178,7 +179,7 @@ impl Auditor {
JsonFile::INDENT_DEFAULT,
)),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
return Ok(audit_bitmask);
@@ -225,7 +226,7 @@ impl Auditor {
],
)),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
self.output_advisories(io, advisories_to_output, format)?;
}
@@ -237,7 +238,7 @@ impl Auditor {
"Run \"composer audit\" for a full list of advisories.".to_string(),
),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
}
} else {
@@ -246,7 +247,7 @@ impl Auditor {
"<info>No security vulnerability advisories found.</info>".to_string(),
),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
}
@@ -256,13 +257,13 @@ impl Auditor {
"<warning>The following repositories were unreachable:</warning>".to_string(),
),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
for repo in &unreachable_repos {
io.write_error(
PhpMixed::String(format!(" - {}", repo)),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
}
}
@@ -603,7 +604,7 @@ impl Auditor {
.collect(),
),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
}
@@ -628,7 +629,7 @@ impl Auditor {
],
)),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
if format == Self::FORMAT_PLAIN {
@@ -647,7 +648,7 @@ impl Auditor {
],
)),
true,
- IOInterface::NORMAL,
+ io_interface::NORMAL,
);
}