We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running golangci-lint run on a repository with nearly 4000 .go files on macOS High Sierra, a "too man open files" error is encountered:
golangci-lint run
WARN[0015] running error: can't print 49 issues: can't read file path/to/file.go for printing issued line: open path/to/file.go: too many open files
macOS High Sierra defaults to an open file limit of 256, and can be increased for a shell session with ulimit -n.
ulimit -n
Perhaps this issue can be documented in README.md. Or golangcli-lint can increase its open file limit with Setrlimit.
golangcli-lint
The text was updated successfully, but these errors were encountered:
hi, thank you for the issue! It's a file descriptor leak in errcheck: normal behavior is to get only 1 opened file at a time. I will fix it.
func readfile(filename string) []string { var f, err = os.Open(filename) if err != nil { return nil } var lines []string var scanner = bufio.NewScanner(f) for scanner.Scan() { lines = append(lines, scanner.Text()) } return lines }
Sorry, something went wrong.
Fix #102: fix file descriptors leak inside errcheck
c4e5d76
2de1f87
No branches or pull requests
When running
golangci-lint run
on a repository with nearly 4000 .go files on macOS High Sierra, a "too man open files" error is encountered:macOS High Sierra defaults to an open file limit of 256, and can be increased for a shell session with
ulimit -n
.Perhaps this issue can be documented in README.md. Or
golangcli-lint
can increase its open file limit with Setrlimit.The text was updated successfully, but these errors were encountered: