Expand description
Stable diagnostic codes and severity levels for Perl LSP.
This crate provides the canonical definitions of diagnostic codes used throughout the Perl LSP ecosystem. These codes are stable and can be referenced in documentation and error messages.
§Code Ranges
| Range | Category |
|---|---|
| PL001-PL099 | Parser diagnostics |
| PL100-PL199 | Strict/warnings |
| PL200-PL299 | Package/module |
| PL300-PL399 | Subroutine |
| PL400-PL499 | Best practices |
| PC001-PC005 | Perl::Critic violations |
§Example
use perl_diagnostics_codes::{DiagnosticCode, DiagnosticSeverity};
let code = DiagnosticCode::ParseError;
assert_eq!(code.as_str(), "PL001");
assert_eq!(code.severity(), DiagnosticSeverity::Error);Enums§
- Diagnostic
Category - Category of diagnostic codes.
- Diagnostic
Code - Stable diagnostic codes for Perl LSP.
- Diagnostic
Severity - Severity level of a diagnostic.
- Diagnostic
Tag - Diagnostic tags for additional classification.