DELAPARRA
Index
Color
NL
Category: Status emoji

🎨 Code style

Explained by Updated

What is 🎨 Code style?

🎨 Code style: gitmoji: improve structure or format of the code. In gitmoji, the palette marks a change to code style or structure that does not change behaviour. Reformatting, reordering imports, fixing indentation and applying a linter's suggestions all fall under it. The best way to handle style is to automate it. A formatter such as Pint for PHP, Prettier for JavaScript or Black for Python settles style questions once, and nobody argues about them in reviews again.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about 🎨 Code style

What should you keep in mind with 🎨 Code style?

Keep style changes in separate commits. A pull request where one real fix hides among two hundred reformatted lines is hard to review and hard to revert. If you introduce a formatter to an existing project, do it in one dedicated commit and add that commit to .git-blame-ignore-revs. Then git blame still shows who wrote each line, instead of whoever ran the formatter.

At a glance

CategoryStatus emoji
Explained by
Updated

More Status emoji terms

All terms starting with a number or symbol

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.