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 committed 2024-11-29 11:03:27 +02:00
1 parent acbcb771af
commit 9637a8132e
4 files changed
+107 -188

No files matched your search

+3 -1
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,
)
}
})
}