Skip to content

Commit 77e6327

Browse files
wbrezaCopilot
andcommitted
fix: resolve CI lint/spell/snapshot issues
- Add nolint:gosec directive for intentional context.Background() in background goroutine (tool_update_check.go) - Add GOWORK/Gowork to cspell dictionary (magefile.go references) - Update TestUsage-azd.snap to include new build command Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 71128b5 commit 77e6327

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

cli/azd/.vscode/cspell.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ words:
2626
# CDN host name
2727
- gfgac2cmf7b8cuay
2828
- Getenv
29+
- GOWORK
30+
- Gowork
2931
- goversioninfo
3032
- OPENCODE
3133
- opencode

cli/azd/cmd/middleware/tool_update_check.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func (m *ToolUpdateCheckMiddleware) triggerBackgroundCheckIfNeeded(ctx context.C
155155
return
156156
}
157157

158+
//nolint:gosec // G118 – intentional: goroutine outlives request; parent ctx is cancelled on return.
158159
go func() {
159160
defer func() {
160161
if r := recover(); r != nil {

cli/azd/cmd/testdata/TestUsage-azd.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Commands
2626

2727
Beta commands
2828
add : Add a component to your project.
29+
build : Builds the application's code.
2930
extension : Manage azd extensions.
3031
hooks : Develop, test and run hooks for a project.
3132
infra : Manage your Infrastructure as Code (IaC).

0 commit comments

Comments
 (0)