That's potentially a bug in rubocop if so, as it's perfectly valid to have such variables in method definitions.