File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
apps/oxlint/src/output_formatter Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 11use std:: hash:: { DefaultHasher , Hash , Hasher } ;
22
3+ use serde:: Serialize ;
4+
35use oxc_diagnostics:: {
46 Error , Severity ,
57 reporter:: { DiagnosticReporter , DiagnosticResult , Info } ,
@@ -10,19 +12,19 @@ use crate::output_formatter::InternalFormatter;
1012#[ derive( Debug , Default ) ]
1113pub struct GitlabOutputFormatter ;
1214
13- #[ derive( Debug , serde :: Serialize ) ]
15+ #[ derive( Debug , Serialize ) ]
1416struct GitlabErrorLocationLinesJson {
1517 begin : usize ,
1618 end : usize ,
1719}
1820
19- #[ derive( Debug , serde :: Serialize ) ]
21+ #[ derive( Debug , Serialize ) ]
2022struct GitlabErrorLocationJson {
2123 path : String ,
2224 lines : GitlabErrorLocationLinesJson ,
2325}
2426
25- #[ derive( Debug , serde :: Serialize ) ]
27+ #[ derive( Debug , Serialize ) ]
2628struct GitlabErrorJson {
2729 description : String ,
2830 check_name : String ,
Original file line number Diff line number Diff line change 1- use std:: cell:: RefCell ;
2- use std:: rc:: Rc ;
1+ use std:: { cell:: RefCell , rc:: Rc } ;
2+
3+ use miette:: JSONReportHandler ;
4+ use serde:: Serialize ;
35
46use oxc_diagnostics:: {
57 Error ,
68 reporter:: { DiagnosticReporter , DiagnosticResult } ,
79} ;
810use oxc_linter:: { RuleCategory , rules:: RULES } ;
911
10- use miette:: JSONReportHandler ;
11-
1212use crate :: output_formatter:: InternalFormatter ;
1313
1414#[ derive( Debug , Default ) ]
@@ -18,7 +18,7 @@ pub struct JsonOutputFormatter {
1818
1919impl InternalFormatter for JsonOutputFormatter {
2020 fn all_rules ( & self ) -> Option < String > {
21- #[ derive( Debug , serde :: Serialize ) ]
21+ #[ derive( Debug , Serialize ) ]
2222 struct RuleInfoJson < ' a > {
2323 scope : & ' a str ,
2424 value : & ' a str ,
You can’t perform that action at this time.
0 commit comments