Skip to main content

Crate perl_diagnostics_codes

Crate perl_diagnostics_codes 

Source
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

RangeCategory
PL001-PL099Parser diagnostics
PL100-PL199Strict/warnings
PL200-PL299Package/module
PL300-PL399Subroutine
PL400-PL499Best practices
PC001-PC005Perl::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§

DiagnosticCategory
Category of diagnostic codes.
DiagnosticCode
Stable diagnostic codes for Perl LSP.
DiagnosticSeverity
Severity level of a diagnostic.
DiagnosticTag
Diagnostic tags for additional classification.