This code is mostly a copy-paste from existing pull requests so there's no point in running Rubocop on it.
Attach a file by drag & drop or click to upload