Skip to content

Conversation

@danhunsaker
Copy link

  • Only works for checks that support exclusions (errcheck)
  • Other checks silently ignore the setting, since they don't support it

There might be some fancy magic we could do with, say, find -type f -iname '*.go' ... instead of ./..., but even that only works for checks that support lists of files rather than just a single package name/path. Or, well, we'd have to do some major refactoring on the checks that don't support file lists. And probably all the checks, at that, since command lines have a length limit, so large projects would break the logic with a full listing of all non-excluded files.

Anyway, this is the best I can do at the moment without addressing the problems above. Addresses #11.

Enjoy!

- Only works for checks that support exclusions (`errcheck`)
- Other checks silently ignore the setting, since they don't support it

There might be some fancy magic we could do with, say,
`find -type f -iname '*.go' ...` instead of `./...`, but even that only
works for checks that support lists of files rather than just a single
package name/path. Or, well, we'd have to do some major refactoring on
the checks that don't support file lists. And probably all the checks,
at that, since command lines have a length limit, so large projects would
break the logic with a full listing of all non-excluded files.

Anyway, this is the best I can do at the moment without addressing the
problems above. Addresses grandcolline#11.

Enjoy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant