perl-diagnostics-codes 0.11.0

Stable diagnostic codes and severity levels for Perl LSP
Documentation
  • Coverage
  • 100%
    45 out of 45 items documented1 out of 14 items with examples
  • Size
  • Source code size: 22.05 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.81 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • EffortlessMetrics/perl-lsp
    0 1 56
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • EffortlessSteven

perl-diagnostics-codes

Stable diagnostic codes and severity levels for the Perl LSP ecosystem.

Part of the tree-sitter-perl-rs workspace.

Overview

This crate defines the canonical DiagnosticCode enum, DiagnosticSeverity levels, DiagnosticTag values, and DiagnosticCategory classifications used across the Perl LSP toolchain. Codes are stable across versions and map directly to LSP protocol values.

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

Usage

use perl_diagnostics_codes::{DiagnosticCode, DiagnosticSeverity};

let code = DiagnosticCode::ParseError;
assert_eq!(code.as_str(), "PL001");
assert_eq!(code.severity(), DiagnosticSeverity::Error);
assert_eq!(code.category(), perl_diagnostics_codes::DiagnosticCategory::Parser);

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.