22 lines
599 B
C#
22 lines
599 B
C#
|
|
using StellaOps.Scanner.Analyzers.Lang.Plugin;
|
|
using System;
|
|
|
|
namespace StellaOps.Scanner.Analyzers.Lang.Bun;
|
|
|
|
/// <summary>
|
|
/// Restart-time plugin that exposes the Bun language analyzer.
|
|
/// </summary>
|
|
public sealed class BunAnalyzerPlugin : ILanguageAnalyzerPlugin
|
|
{
|
|
public string Name => "StellaOps.Scanner.Analyzers.Lang.Bun";
|
|
|
|
public bool IsAvailable(IServiceProvider services) => services is not null;
|
|
|
|
public ILanguageAnalyzer CreateAnalyzer(IServiceProvider services)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(services);
|
|
return new BunLanguageAnalyzer();
|
|
}
|
|
}
|