You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to lint a directory with files that are missing godoc in a null module with golint
demonstration
Here's a script to demonstrate the problem:
#!/bin/shcd$(mktemp -d)
cat <<EOF > lint.gopackage lintimport "fmt"func MissingDoc() { fmt.Println("missing doc")}EOFprintf"linting a file\n">&2
golangci-lint run -v --print-issued-lines=false --disable-all --exclude-use-default=false --enable=golint $PWD/lint.go
printf"linting a directory in a null module\n">&2
golangci-lint run -v --print-issued-lines=false --disable-all --exclude-use-default=false --enable=golint $PWD
go mod init lint
printf"linting a directory in a module\n">&2
golangci-lint run -v --print-issued-lines=false --disable-all --exclude-use-default=false --enable=golint $PWD
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
reproduction
Try to lint a directory with files that are missing godoc in a null module with golint
demonstration
Here's a script to demonstrate the problem:
expected result
missing godoc is correctly identified
actual result
no errors are reported
environment
The text was updated successfully, but these errors were encountered: