mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-13 23:08:45 -04:00
feat: add logrlint (#3093)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
320a18eb37
commit
f48530e25e
10 changed files with 69 additions and 0 deletions
test
|
@ -25,6 +25,18 @@ func TestTypecheck(t *testing.T) {
|
|||
testSourcesFromDir(t, filepath.Join(testdataDir, "notcompiles"))
|
||||
}
|
||||
|
||||
func TestSourcesFromTestdataSubDir(t *testing.T) {
|
||||
subDirs := []string{
|
||||
"logrlint",
|
||||
}
|
||||
|
||||
for _, dir := range subDirs {
|
||||
t.Run(dir, func(t *testing.T) {
|
||||
testSourcesFromDir(t, filepath.Join(testdataDir, dir))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func testSourcesFromDir(t *testing.T, dir string) {
|
||||
t.Helper()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue