fixes #7186 - fixing rubocop to run properly