File tree 5 files changed +3
-17
lines changed
apps/oxlint/src/output_formatter
5 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ use crate::output_formatter::InternalFormatter;
13
13
pub struct CheckStyleOutputFormatter ;
14
14
15
15
impl InternalFormatter for CheckStyleOutputFormatter {
16
- fn all_rules ( & self ) -> Option < String > {
17
- None
18
- }
19
-
20
16
fn get_diagnostic_reporter ( & self ) -> Box < dyn DiagnosticReporter > {
21
17
Box :: new ( CheckstyleReporter :: default ( ) )
22
18
}
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ use crate::output_formatter::InternalFormatter;
11
11
pub struct GithubOutputFormatter ;
12
12
13
13
impl InternalFormatter for GithubOutputFormatter {
14
- fn all_rules ( & self ) -> Option < String > {
15
- None
16
- }
17
-
18
14
fn get_diagnostic_reporter ( & self ) -> Box < dyn DiagnosticReporter > {
19
15
Box :: new ( GithubReporter )
20
16
}
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ pub struct LintCommandInfo {
62
62
/// The Formatter is then managed by [`OutputFormatter`].
63
63
trait InternalFormatter {
64
64
/// Print all available rules by oxlint
65
- fn all_rules ( & self ) -> Option < String > ;
65
+ fn all_rules ( & self ) -> Option < String > {
66
+ None
67
+ }
66
68
67
69
/// At the end of the Lint command the Formatter can output extra information.
68
70
fn lint_command_info ( & self , _lint_command_info : & LintCommandInfo ) -> Option < String > {
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ use crate::output_formatter::InternalFormatter;
10
10
pub struct StylishOutputFormatter ;
11
11
12
12
impl InternalFormatter for StylishOutputFormatter {
13
- fn all_rules ( & self ) -> Option < String > {
14
- None
15
- }
16
-
17
13
fn get_diagnostic_reporter ( & self ) -> Box < dyn DiagnosticReporter > {
18
14
Box :: new ( StylishReporter :: default ( ) )
19
15
}
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ use crate::output_formatter::InternalFormatter;
11
11
pub struct UnixOutputFormatter ;
12
12
13
13
impl InternalFormatter for UnixOutputFormatter {
14
- fn all_rules ( & self ) -> Option < String > {
15
- None
16
- }
17
-
18
14
fn get_diagnostic_reporter ( & self ) -> Box < dyn DiagnosticReporter > {
19
15
Box :: new ( UnixReporter :: default ( ) )
20
16
}
You can’t perform that action at this time.
0 commit comments