[issue-23] Fix rubocop citations and add only_if enabled guards