Previously, the linter started linting starting from the moving branch HEAD.
Of course, this is always the latest commit, rendering the linter ineffective.
Description
Update the golangci configuration to mitigate this problem. Besides, I remove depguard as it seems a bit over the top.
We now actually only highlight new issues now, i.e., issues that will come on top of dev.
Feel free to run it locally on older changes to find meaningful issues.
Motivation and Context
Previously, the linter started linting starting from the moving branch
HEAD
. Of course, this is always the latest commit, rendering the linter ineffective.Description
Update the golangci configuration to mitigate this problem. Besides, I remove
depguard
as it seems a bit over the top. We now actually only highlight new issues now, i.e., issues that will come on top ofdev
. Feel free to run it locally on older changes to find meaningful issues.Steps for Testing
None. A passing CI should be enough.