pub struct PmdProviderConfig {
pub configured: bool,
pub java_path: String,
pub pmd_path: String,
pub rulesets: Vec<String>,
pub timeout_ms: u64,
pub include_patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub severity_map: HashMap<String, Severity>,
pub fail_on_error: bool,
pub min_priority: u8,
pub extra_args: Vec<String>,
}Expand description
PMD Java provider configuration
Fields§
§configured: boolWhether PMD provider is configured (separate from enabled list)
java_path: StringPath to Java executable
pmd_path: StringPath to PMD installation (either pmd binary or pmd-dist directory) If empty, will try to find ‘pmd’ in PATH
rulesets: Vec<String>PMD rulesets to use
timeout_ms: u64Timeout for PMD execution in milliseconds
include_patterns: Vec<String>File patterns to include for PMD analysis
exclude_patterns: Vec<String>File patterns to exclude from PMD analysis
severity_map: HashMap<String, Severity>Severity mapping from PMD priority to RMA severity Keys: “1”, “2”, “3”, “4”, “5” (PMD priorities) Values: “critical”, “error”, “warning”, “info”
fail_on_error: boolWhether to fail the scan if PMD itself fails (not findings, but tool errors)
min_priority: u8Minimum PMD priority to report (1=highest, 5=lowest)
extra_args: Vec<String>Additional PMD command-line arguments
Trait Implementations§
Source§impl Clone for PmdProviderConfig
impl Clone for PmdProviderConfig
Source§fn clone(&self) -> PmdProviderConfig
fn clone(&self) -> PmdProviderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PmdProviderConfig
impl Debug for PmdProviderConfig
Source§impl Default for PmdProviderConfig
impl Default for PmdProviderConfig
Source§impl<'de> Deserialize<'de> for PmdProviderConfig
impl<'de> Deserialize<'de> for PmdProviderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PmdProviderConfig
impl RefUnwindSafe for PmdProviderConfig
impl Send for PmdProviderConfig
impl Sync for PmdProviderConfig
impl Unpin for PmdProviderConfig
impl UnwindSafe for PmdProviderConfig
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