tools/linters: convert to LinterPlugin implementation

This commit introduces the `LLPlugin` type and converts the existing lll
code such that the LLPlugin implements the register.LinterPlugin
interface. This will allow us to plug it into golangci-linter as a
plugin.
This commit is contained in:
Elle Mouton
2024-11-29 11:01:27 +02:00
parent acbcb771af
commit 9637a8132e
4 changed files with 107 additions and 188 deletions

View File

@@ -90,7 +90,9 @@ func TestGetLLLIssuesForFile(t *testing.T) {
require.Len(t, issues, len(tc.expectedIssue))
for i, issue := range issues {
require.Equal(t, tc.expectedIssue[i], issue.Text)
require.Equal(
t, tc.expectedIssue[i], issue.text,
)
}
})
}