Skip to content

WIP: Testing the vim macros for ce/60546

Sam Beckham requested to merge TEST-export-default into master

What does this MR do?

This will likely not be merged. It's a POC to see how quick/easy it was to update every actions and getters file with a handful of VIM macros. The vast majority of the files are updated without issue but there's a couple that need a little extra work. Since this is aPOC we should leave them for now.

It took about an hour including writing the macros, I expect if we needed to do it again we could do it in half that time.

The macros are as follows:

let @f="/export"
let @e="@fd2exf=xhr:<Esc>"
let @i="gg@fOexport default {<Esc>x"
let @o="@e@f /;Nr,"
let @p="o};<Esc>jdG"

To run them on a file, open it then type @i22@o@p (where 22 is the number of exported actions). You should be able to see if there are any issues with the file if you have linting and/or prettier setup. If there are no issues, you're done. If there are issues, fix them. There were only 3 or 4 files that had issues in this run and most were a simple fix.

https://gitlab.com/gitlab-org/gitlab-ce/issues/60546

Edited by Sam Beckham

Merge request reports