add rubocop and fix rules