#Please add support for golangci-lint version 2+

1 messages · Page 1 of 1 (latest)

stray mica
#

I updated my golangci-lint config from v1 to v2 and now CodeRabbit summary reports

"There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (1.64.8)
Error: can't load config: sort-results should be 'true' to use sort-order
Failed executing command with error: can't load config: sort-results should be 'true' to use sort-order"

ornate moat
#

I have experienced this issue too; if you are a Pro user, you should be able to configure CodeRabbit to use a v1 golangci-lint config file, as long as you name it something that golangci-lint v2 will not automatically try to use.

This doesn't achieve the desired outcome of CodeRabbit using v2 itself, but should deal with the annoying warning (i.e. allow your project to use v2 linting while CodeRabbit continues using v1).