Skip to content

Commit a033dcd

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 56aa38f commit a033dcd

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
@@ -29,6 +29,8 @@ words:
2929
# CDN host name
3030
- gfgac2cmf7b8cuay
3131
- Getenv
32+
- GOWORK
33+
- Gowork
3234
- goversioninfo
3335
- OPENCODE
3436
- 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)