gitmoji icon indicating copy to clipboard operation
gitmoji copied to clipboard

🛸 for extracting code to a separate function or new file

Open simonaltrogge opened this issue 8 months ago • 0 comments

Emoji symbol

🛸

Emoji code

:flying_saucer:

Emoji description

Extract code into a separate function or new file.

Describe the use case of your emoji

When restructuring a project, I sometimes break apart a file and extract, for example, a class into its separate file. Alternatively, this could be also used when extracting some logic into its own function to be used in multiple places instead of repeating code.

I see, however, that this is most likely a more specific case of the "Refactor code." (♻️) case.

Is this use case covered by an existing emoji?

Yes ✅

Does this emoji fall into the "how" or the "what" category?

  • [X] This proposal do not describe "how" a commit was made, but does in fact describe "what" is the contents of the commit about.

Examples

🛸 Extract authentication into reusable function 🛸 Move some large class into a separate file

Validations

simonaltrogge avatar Jun 19 '24 10:06 simonaltrogge