1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-29 22:28:23 +02:00

refactor: enable few linters in golangci-lint config (#1580)

This commit is contained in:
Oleksandr Redko
2025-11-15 20:50:52 +02:00
committed by GitHub
parent d81298b0ce
commit 5dc6ed197b
23 changed files with 50 additions and 41 deletions

View File

@@ -37,7 +37,7 @@ func New(reader ReadFile, maxOpenFiles int) Linter {
}
}
func (l Linter) readFile(path string) (result []byte, err error) {
func (l *Linter) readFile(path string) (result []byte, err error) {
if l.fileReadTokens != nil {
// "take" a token by writing to the channel.
// It will block if no more space in the channel's buffer