pub struct Doctor { /* private fields */ }Expand description
Doctor performs comprehensive project health analysis.
Implementations§
Source§impl Doctor
impl Doctor
Sourcepub fn new(
config: &ProjectConfig,
verbose: bool,
) -> Result<Self, ForgeGuardError>
pub fn new( config: &ProjectConfig, verbose: bool, ) -> Result<Self, ForgeGuardError>
Create a new doctor instance.
Sourcepub fn check_foundry_version(&mut self) -> Result<String, ForgeGuardError>
pub fn check_foundry_version(&mut self) -> Result<String, ForgeGuardError>
Check installed Foundry version.
Sourcepub fn check_solidity_version(&mut self) -> Result<String, ForgeGuardError>
pub fn check_solidity_version(&mut self) -> Result<String, ForgeGuardError>
Check Solidity compiler version.
Sourcepub fn check_project_structure(
&mut self,
) -> Result<Vec<String>, ForgeGuardError>
pub fn check_project_structure( &mut self, ) -> Result<Vec<String>, ForgeGuardError>
Check project structure for common issues.
Sourcepub fn check_dependencies(&mut self) -> Result<Vec<String>, ForgeGuardError>
pub fn check_dependencies(&mut self) -> Result<Vec<String>, ForgeGuardError>
Check for vulnerable dependencies.
Sourcepub fn check_compiler_settings(
&mut self,
) -> Result<Vec<String>, ForgeGuardError>
pub fn check_compiler_settings( &mut self, ) -> Result<Vec<String>, ForgeGuardError>
Check compiler settings for security issues.
Sourcepub fn check_rpc_connectivity(
&mut self,
chain: &str,
) -> Result<(), ForgeGuardError>
pub fn check_rpc_connectivity( &mut self, chain: &str, ) -> Result<(), ForgeGuardError>
Check RPC connectivity.
Sourcepub fn check_security_config(&mut self) -> Result<Vec<String>, ForgeGuardError>
pub fn check_security_config(&mut self) -> Result<Vec<String>, ForgeGuardError>
Check security configuration.
Sourcepub fn generate_report(&self, healthy: bool) -> DoctorReport
pub fn generate_report(&self, healthy: bool) -> DoctorReport
Generate a complete doctor report.
Auto Trait Implementations§
impl Freeze for Doctor
impl RefUnwindSafe for Doctor
impl Send for Doctor
impl Sync for Doctor
impl Unpin for Doctor
impl UnsafeUnpin for Doctor
impl UnwindSafe for Doctor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more