Added rubocop, and fixed one issue