diff --git a/apps/oxlint/src/output_formatter/checkstyle.rs b/apps/oxlint/src/output_formatter/checkstyle.rs index 5c134e7295c43..871e9f659755d 100644 --- a/apps/oxlint/src/output_formatter/checkstyle.rs +++ b/apps/oxlint/src/output_formatter/checkstyle.rs @@ -13,10 +13,6 @@ use crate::output_formatter::InternalFormatter; pub struct CheckStyleOutputFormatter; impl InternalFormatter for CheckStyleOutputFormatter { - fn all_rules(&self) -> Option { - None - } - fn get_diagnostic_reporter(&self) -> Box { Box::new(CheckstyleReporter::default()) } diff --git a/apps/oxlint/src/output_formatter/github.rs b/apps/oxlint/src/output_formatter/github.rs index 1d5b51e941134..3242d06cba8bd 100644 --- a/apps/oxlint/src/output_formatter/github.rs +++ b/apps/oxlint/src/output_formatter/github.rs @@ -11,10 +11,6 @@ use crate::output_formatter::InternalFormatter; pub struct GithubOutputFormatter; impl InternalFormatter for GithubOutputFormatter { - fn all_rules(&self) -> Option { - None - } - fn get_diagnostic_reporter(&self) -> Box { Box::new(GithubReporter) } diff --git a/apps/oxlint/src/output_formatter/mod.rs b/apps/oxlint/src/output_formatter/mod.rs index 061e2eb0527bd..e01e58369a6d9 100644 --- a/apps/oxlint/src/output_formatter/mod.rs +++ b/apps/oxlint/src/output_formatter/mod.rs @@ -62,7 +62,9 @@ pub struct LintCommandInfo { /// The Formatter is then managed by [`OutputFormatter`]. trait InternalFormatter { /// Print all available rules by oxlint - fn all_rules(&self) -> Option; + fn all_rules(&self) -> Option { + None + } /// At the end of the Lint command the Formatter can output extra information. fn lint_command_info(&self, _lint_command_info: &LintCommandInfo) -> Option { diff --git a/apps/oxlint/src/output_formatter/stylish.rs b/apps/oxlint/src/output_formatter/stylish.rs index 03704f04f786c..727c8d3b72160 100644 --- a/apps/oxlint/src/output_formatter/stylish.rs +++ b/apps/oxlint/src/output_formatter/stylish.rs @@ -10,10 +10,6 @@ use crate::output_formatter::InternalFormatter; pub struct StylishOutputFormatter; impl InternalFormatter for StylishOutputFormatter { - fn all_rules(&self) -> Option { - None - } - fn get_diagnostic_reporter(&self) -> Box { Box::new(StylishReporter::default()) } diff --git a/apps/oxlint/src/output_formatter/unix.rs b/apps/oxlint/src/output_formatter/unix.rs index 4d0b6ed9b678a..0078e819e3a12 100644 --- a/apps/oxlint/src/output_formatter/unix.rs +++ b/apps/oxlint/src/output_formatter/unix.rs @@ -11,10 +11,6 @@ use crate::output_formatter::InternalFormatter; pub struct UnixOutputFormatter; impl InternalFormatter for UnixOutputFormatter { - fn all_rules(&self) -> Option { - None - } - fn get_diagnostic_reporter(&self) -> Box { Box::new(UnixReporter::default()) }