Expand description
Diagnostic catalog with stable codes for consistent LSP error reporting.
This crate provides a focused mapping from perl_diagnostics_codes::DiagnosticCode
to LSP-facing metadata payloads.
Structs§
- Diagnostic
Meta - Diagnostic metadata payload used by LSP diagnostics.
Functions§
- bareword_
filehandle - Bareword filehandle usage diagnostic (PL400).
- critic_
severity_ 1 - Perl::Critic severity-1 violation diagnostic (PC001).
- critic_
severity_ 2 - Perl::Critic severity-2 violation diagnostic (PC002).
- critic_
severity_ 3 - Perl::Critic severity-3 violation diagnostic (PC003).
- critic_
severity_ 4 - Perl::Critic severity-4 violation diagnostic (PC004).
- critic_
severity_ 5 - Perl::Critic severity-5 violation diagnostic (PC005).
- diagnostic_
meta - Build LSP diagnostic metadata from a stable diagnostic code.
- duplicate_
package - Duplicate package declaration diagnostic (PL201).
- duplicate_
sub - Duplicate subroutine definition diagnostic (PL300).
- from_
message - Guess diagnostic metadata from a free-form message.
- implicit_
return - Implicit return value diagnostic (PL402).
- missing_
package_ declaration - Missing package declaration diagnostic (PL200).
- missing_
return - Missing explicit return statement diagnostic (PL301).
- missing_
strict - Missing
use strictpragma diagnostic (PL100). - missing_
warnings - Missing
use warningspragma diagnostic (PL101). - parse_
error - General parse error diagnostic (PL001).
- syntax_
error - Syntax error diagnostic (PL002).
- two_
arg_ open - Two-argument
open()usage diagnostic (PL401). - undefined_
var - Undefined variable diagnostic (PL103).
- unexpected_
eof - Unexpected end-of-file diagnostic (PL003).
- unused_
var - Unused variable diagnostic (PL102).