Skip to content

Commit

Permalink
feat: plugin loader (#4234)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendjr authored and ematipico committed Nov 6, 2024
1 parent ce96c2a commit bf41c78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions crates/biome_plugin_loader/src/analyzer_plugin.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use biome_analyze::RuleDiagnostic;
use biome_parser::AnyParse;
use std::{fmt::Debug, path::PathBuf};

/// Definition of an analyzer plugin.
pub trait AnalyzerPlugin: Debug {
fn evaluate(&self, root: AnyParse, path: PathBuf) -> Vec<RuleDiagnostic>;
}
1 change: 0 additions & 1 deletion crates/biome_plugin_loader/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pub enum PluginDiagnostic {

impl From<CompileError> for PluginDiagnostic {
fn from(value: CompileError) -> Self {
println!("Compile Error: {value:?}");
PluginDiagnostic::Compile(CompileDiagnostic {
source: Some(Error::from(value)),
})
Expand Down

0 comments on commit bf41c78

Please sign in to comment.