Add RuboCop to build pipeline and fix offences.