Skip to content

Commit

Permalink
🐛 dotnet provider is source only
Browse files Browse the repository at this point in the history
Signed-off-by: David Zager <[email protected]>
  • Loading branch information
djzager committed Jun 26, 2024
1 parent 4a684cf commit 91404a7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import (
"os/exec"
"path/filepath"

"github.com/swaggest/openapi-go/openapi3"
"github.com/go-logr/logr"
"github.com/konveyor/analyzer-lsp/provider"
"github.com/swaggest/openapi-go/openapi3"

"go.lsp.dev/jsonrpc2"
"go.lsp.dev/protocol"
"go.lsp.dev/uri"
)

type dotnetProvider struct{
type dotnetProvider struct {
Log logr.Logger
}

Expand All @@ -41,6 +41,7 @@ type dotnetCondition struct {

// Example:
// dotnet.referenced:
//
// namespace: System.Web.Mvc
// pattern: HttpNotFound
type referenceCondition struct {
Expand All @@ -66,7 +67,7 @@ func (p *dotnetProvider) Capabilities() []provider.Capability {

func (p *dotnetProvider) Init(ctx context.Context, log logr.Logger, config provider.InitConfig) (provider.ServiceClient, error) {
var mode provider.AnalysisMode = provider.AnalysisMode(config.AnalysisMode)
if mode != provider.FullAnalysisMode {
if mode != provider.SourceOnlyAnalysisMode {
return nil, fmt.Errorf("only full analysis is supported")
}

Expand Down

0 comments on commit 91404a7

Please sign in to comment.