forked from konveyor/analyzer-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 handle correct structs for protobof init calls (konveyor#541)
Adding validation of the keys in provider-specific config to only be strings Adding test cases to validate both JSON and yaml provider settings files will work. fixes konveyor#501 Signed-off-by: Shawn Hurley <shawn@hurley.page>
- Loading branch information
1 parent
ccd6405
commit 4c34d90
Showing
5 changed files
with
221 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
- name: "go" | ||
binaryPath: "/usr/bin/generic-external-provider" | ||
initConfig: | ||
- analysisMode: "full" | ||
providerSpecificConfig: | ||
lspServerName: "generic" | ||
lspServerPath: "/root/go/bin/gopls" | ||
lspServerArgs: | ||
- "string" | ||
lspServerInitializationOptions: "" | ||
workspaceFolders: | ||
- "file:///analyzer-lsp/examples/golang" | ||
dependencyFolders: [] | ||
groupVersionKinds: | ||
- group: "apps" | ||
version: "v1" | ||
kind: "Deployment" | ||
1: "newThing" | ||
object: | ||
nestedObject: "object" | ||
dependencyProviderPath: "/usr/bin/golang-dependency-provider" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
[ | ||
{ | ||
"name": "go", | ||
"binaryPath": "/usr/bin/generic-external-provider", | ||
"initConfig": [{ | ||
"analysisMode": "full", | ||
"providerSpecificConfig": { | ||
"lspServerName": "generic", | ||
"lspServerPath": "/root/go/bin/gopls", | ||
"lspServerArgs": ["string"], | ||
"lspServerInitializationOptions": "", | ||
|
||
"workspaceFolders": ["file:///analyzer-lsp/examples/golang"], | ||
"dependencyFolders": [], | ||
"groupVersionKinds": [{"group": "apps", "version": "v1", "kind": "Deployment"}], | ||
"object": {"nestedObject": "object"}, | ||
|
||
"dependencyProviderPath": "/usr/bin/golang-dependency-provider" | ||
} | ||
}] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- name: "go" | ||
binaryPath: "/usr/bin/generic-external-provider" | ||
initConfig: | ||
- analysisMode: "full" | ||
providerSpecificConfig: | ||
lspServerName: "generic" | ||
lspServerPath: "/root/go/bin/gopls" | ||
lspServerArgs: | ||
- "string" | ||
lspServerInitializationOptions: "" | ||
workspaceFolders: | ||
- "file:///analyzer-lsp/examples/golang" | ||
dependencyFolders: [] | ||
groupVersionKinds: | ||
- group: "apps" | ||
version: "v1" | ||
kind: "Deployment" | ||
object: | ||
nestedObject: "object" | ||
dependencyProviderPath: "/usr/bin/golang-dependency-provider" |