pub struct StackComplyEngine { /* private fields */ }Expand description
Stack Compliance Engine
Orchestrates compliance checks across all PAIML stack projects.
Implementations§
Source§impl StackComplyEngine
impl StackComplyEngine
Sourcepub fn new(config: ComplyConfig) -> StackComplyEngine
pub fn new(config: ComplyConfig) -> StackComplyEngine
Create a new compliance engine with default rules
Sourcepub fn default_for_workspace(workspace: &Path) -> StackComplyEngine
pub fn default_for_workspace(workspace: &Path) -> StackComplyEngine
Create engine with default configuration
Sourcepub fn register_rule(&mut self, rule: Box<dyn StackComplianceRule>)
pub fn register_rule(&mut self, rule: Box<dyn StackComplianceRule>)
Register a custom compliance rule
Sourcepub fn discover_projects(
&mut self,
workspace: &Path,
) -> Result<&[ProjectInfo], Error>
pub fn discover_projects( &mut self, workspace: &Path, ) -> Result<&[ProjectInfo], Error>
Discover projects in the workspace
Sourcepub fn check_all(&self) -> ComplyReport
pub fn check_all(&self) -> ComplyReport
Run all compliance checks
Sourcepub fn check_rule(&self, rule_id: &str) -> ComplyReport
pub fn check_rule(&self, rule_id: &str) -> ComplyReport
Run a specific rule
Sourcepub fn fix_all(&self, dry_run: bool) -> ComplyReport
pub fn fix_all(&self, dry_run: bool) -> ComplyReport
Attempt to fix violations
Sourcepub fn available_rules(&self) -> Vec<(&str, &str)>
pub fn available_rules(&self) -> Vec<(&str, &str)>
Get list of available rules
Sourcepub fn projects(&self) -> &[ProjectInfo]
pub fn projects(&self) -> &[ProjectInfo]
Get list of discovered projects
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackComplyEngine
impl !RefUnwindSafe for StackComplyEngine
impl Send for StackComplyEngine
impl Sync for StackComplyEngine
impl Unpin for StackComplyEngine
impl UnsafeUnpin for StackComplyEngine
impl !UnwindSafe for StackComplyEngine
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
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