Charting: fix rubocop complaints.