It would be very convenient to ignore files based on patterns in addition to (instead of?) extensions.
For example, we use Google's protocol buffers and put them all into a src-generated directory. It would be ideal to excuse these, any any other auto-generated files, from any checks.
Attached a naive first attempt at this feature.