1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//! Parser modules for various diagnostic tool outputs.
//!
//! Each parser converts tool-specific output format into unified `Diagnostic` structs.
//!
//! # Supported Tools
//!
//! ## Python
//! - `pyright`: Type checker with JSON output (`--outputjson`)
//! - `ruff`: Fast linter with JSON output (`--output-format json`)
//!
//! ## TypeScript/JavaScript
//! - `tsc`: TypeScript compiler (text output, parsed via regex)
//! - `eslint`: Linter with JSON output (`-f json`)
//!
//! ## Rust
//! - `cargo`: Compiler with JSON output (`--message-format=json`)
//! - `clippy`: Linter using same format as cargo
//!
//! ## Go
//! - `go vet`: Static analysis with JSON output (`-json`)
//! - `golangci-lint`: Meta-linter with JSON output (`--out-format json`)
//!
//! ## Kotlin
//! - `kotlinc`: Compiler with GCC-like text output
//! - `detekt`: Static analysis with text output
//!
//! ## Swift
//! - `swiftc`: Compiler with GCC-like text output
//! - `swiftlint`: Linter with JSON output (`--reporter json`)
//!
//! ## C#
//! - `dotnet build`: Compiler/analyzer with MSBuild text output
//!
//! ## Scala
//! - `scalac`: Compiler with GCC-like text output
//!
//! ## Elixir
//! - `mix compile`: Compiler with text output
//! - `credo`: Static analysis with JSON output (`--format json`)
//!
//! ## Lua
//! - `luacheck`: Linter with plain text output (`--formatter plain`)
//!
//! ## Java
//! - `javac`: Compiler with text output
//! - `checkstyle`: Style checker with plain text output (`-f plain`)
//!
//! ## C/C++
//! - `clang`/`gcc`: Compiler with GCC-style text output (`-fsyntax-only -Wall`)
//! - `clang-tidy`: Static analysis with GCC-style text output
//!
//! ## Ruby
//! - `rubocop`: Linter with JSON output (`--format json`)
//!
//! ## PHP
//! - `php -l`: Syntax checker with text output
//! - `phpstan`: Static analysis with JSON output (`--error-format=json`)
pub use parse_cargo_output;
pub use parse_clang_output;
pub use parse_dotnet_build_output;
pub use ;
pub use parse_eslint_output;
pub use ;
pub use ;
pub use ;
pub use parse_luacheck_output;
pub use ;
pub use parse_pyright_output;
pub use parse_rubocop_output;
pub use parse_ruff_output;
pub use parse_scalac_output;
pub use ;
pub use ;
use crateSeverity;
/// Map a string severity to our Severity enum.
/// Used by multiple parsers with similar severity naming.