Add rubocop config.

Exclude autogenerated files so that it won't crash (and report offences
in generated code).