fixes #5462 - adding some rubocop directives