[patch] rubocop fixes