golangci / golangci-lint

Fast linters runner for Go
https://golangci-lint.run
GNU General Public License v3.0
14.85k stars 1.34k forks source link

dev: avoid panic in processors #4777

Closed alexandear closed 1 month ago

alexandear commented 1 month ago

Refactor code by removing panic calls in processors.

ldez commented 1 month ago

Those cases cannot happen this is why there is a panic and not an error.

alexandear commented 1 month ago

Those cases cannot happen this is why there is a panic and not an error.

Okay.

Should I remove the unused root field from the PathPrettifier in this PR?

ldez commented 1 month ago

You can create a dedicated PR to clean the PathPrettifier construction.