20 lines
517 B
C#
20 lines
517 B
C#
|
|
using StellaOps.Scanner.Analyzers.Lang;
|
|
using StellaOps.Scanner.Analyzers.Lang.Plugin;
|
|
using System;
|
|
|
|
namespace StellaOps.Scanner.Analyzers.Lang.Deno;
|
|
|
|
public sealed class DenoAnalyzerPlugin : ILanguageAnalyzerPlugin
|
|
{
|
|
public string Name => "deno";
|
|
|
|
public bool IsAvailable(IServiceProvider services) => services is not null;
|
|
|
|
public ILanguageAnalyzer CreateAnalyzer(IServiceProvider services)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(services);
|
|
return new DenoLanguageAnalyzer();
|
|
}
|
|
}
|