pub enum IssueKind {
VariableShadowing,
UnusedVariable,
UndeclaredVariable,
VariableRedeclaration,
DuplicateParameter,
ParameterShadowsGlobal,
UnusedParameter,
UnquotedBareword,
UninitializedVariable,
CaptureVarWithoutRegexMatch,
}Expand description
Scope analysis issue types and analyzer. Category of scope-related issue detected during analysis.
Variants§
VariableShadowing
A variable declared in an inner scope shadows one in an outer scope.
UnusedVariable
A declared variable is never read.
UndeclaredVariable
A variable is used without a prior declaration (my/our/local).
VariableRedeclaration
The same variable name is declared twice in the same scope.
DuplicateParameter
A subroutine parameter name appears more than once in the signature.
ParameterShadowsGlobal
A parameter name shadows a package-level (our) variable.
UnusedParameter
A subroutine parameter is never used inside the body.
UnquotedBareword
A bareword was used where a string or identifier was expected.
UninitializedVariable
A variable was accessed before any initializing assignment.
CaptureVarWithoutRegexMatch
Capture variable ($1, $2, etc.) used with no preceding regex match in scope.
Trait Implementations§
impl Copy for IssueKind
impl StructuralPartialEq for IssueKind
Auto Trait Implementations§
impl Freeze for IssueKind
impl RefUnwindSafe for IssueKind
impl Send for IssueKind
impl Sync for IssueKind
impl Unpin for IssueKind
impl UnsafeUnpin for IssueKind
impl UnwindSafe for IssueKind
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