add rubocop, fix rubocop issues, fix puppet-lint issues