Update golangci-lint to v2.7.2 and migrate configuration#7386
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot update configuration see https://github.com/githubnext/gh-aw/actions/runs/20460163097/job/58791308416#step:7:1 |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Configuration migrated to v2 format using the migration tool. The changes include:
All originally enabled linters (errcheck, govet, ineffassign, misspell, revive, staticcheck, unused) are still active and the linter now works successfully. Commit: 92dc6ac Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot format and lint |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Formatting and linting complete. Applied golangci-lint v2 auto-fixes and manual corrections to 63 files:
Commit: a7bc3ba |
|
@copilot fix compilation, run tests and fix code |
The automatic conversion of if-else to switch statement introduced a bug in the getIndentation function. In a switch statement, 'break' only breaks out of the switch, not the outer for loop. Reverted to if-else with nolint comment explaining why switch is not appropriate here. Fixes test failures in TestOnSectionWithQuotes and related tests. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed compilation and test issues. The problem was an incorrect if-else to switch conversion in the bundler code that changed the behavior of
The issue was that golangci-lint's auto-fix suggested using a switch statement, but in this specific case the Commit: f5a4e57 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Update golangci-lint to v2.7.2
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.