-
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.
Merge pull request #54 from raft-tech/feature/vscode
Adds VS Code files
- Loading branch information
Showing
8 changed files
with
137 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
|
||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"golang.go", | ||
"SonarSource.sonarlint-vscode" | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [ | ||
|
||
] | ||
} |
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,22 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Go Test", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "test", | ||
"program": "${fileDirname}", | ||
"env": { | ||
"PATH": "${env:PATH}:${workspaceFolder}/bin" | ||
}, | ||
"presentation": { | ||
"hidden": false, | ||
"group": "test", | ||
"order": 1, | ||
|
||
}, | ||
"preLaunchTask": "go: build inspections", | ||
} | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"go.testEnvVars": { | ||
"PATH": "${env:PATH}:${workspaceFolder}/bin" | ||
}, | ||
"go.testFlags": [ | ||
"--ginkgo.github-output" | ||
], | ||
"sonarlint.connectedMode.project": { | ||
"connectionId": "raft-tech", | ||
"projectKey": "raft-tech_konfirm-inspect" | ||
} | ||
} |
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,80 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "go: test", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
}, | ||
"type": "go", | ||
"command": "test", | ||
"args": ["./cmd/...", "./internal/...", "./pkg/..."], | ||
"options": { | ||
"env": { | ||
"PATH": "${env:PATH}:${workspaceFolder}/bin" | ||
} | ||
}, | ||
"problemMatcher": [ | ||
"$go" | ||
] | ||
}, | ||
{ | ||
"label": "go: build inspections", | ||
"detail": "Buils all Konfirm inspections required for testing", | ||
"dependsOn": [ | ||
"go: build konfirm-http", | ||
"go: build konfirm-storage" | ||
], | ||
"problemMatcher": [ | ||
"$go" | ||
] | ||
}, | ||
{ | ||
"label": "go: build konfirm-http", | ||
"detail": "Builds konfirm-http, which is required for testing", | ||
"group": "build", | ||
"hide": true, | ||
"type": "go", | ||
"command": "test", | ||
"args": [ | ||
"-tags", | ||
"inspection", | ||
"-c", | ||
"-o", | ||
"bin/konfirm-http", | ||
"./inspections/http" | ||
], | ||
"problemMatcher": [ | ||
"$go" | ||
], | ||
"presentation": { | ||
"reveal": "silent", | ||
"revealProblems": "onProblem", | ||
} | ||
}, | ||
{ | ||
"label": "go: build konfirm-storage", | ||
"detail": "Builds konfirm-storage, which is required for testing", | ||
"group": "build", | ||
"hide": true, | ||
"type": "go", | ||
"command": "test", | ||
"args": [ | ||
"-tags", | ||
"inspection", | ||
"-c", | ||
"-o", | ||
"bin/konfirm-storage", | ||
"./inspections/storage" | ||
], | ||
"problemMatcher": [ | ||
"$go" | ||
], | ||
"presentation": { | ||
"reveal": "silent", | ||
"revealProblems": "onProblem", | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build inspection | ||
|
||
/* | ||
* Copyright (c) 2024 Raft, LLC | ||
* | ||
|
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
//go:build inspection | ||
// +build inspection | ||
|
||
/* | ||
* Copyright (c) 2024 Raft, LLC | ||
* | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build inspection | ||
|
||
/* | ||
* Copyright (c) 2024 Raft, LLC | ||
* | ||
|