Skip to content

Commit 55f8a48

Browse files
committed
Update state of JS rule GCI31 in RULES.md
1 parent 360daa8 commit 55f8a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RULES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Some are applicable for different technologies.
4343
| GCI28 | Optimize read file exceptions | | || 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 |
4444
| GCI29 | Avoid usage of CSS animations | ESLint key : @ecocode/avoid-css-animations /// type : Front-end | ||||||| 🚫 |
4545
| GCI30 | Provide a print stylesheet | ESLint key : @ecocode/provide-print-css /// type : Front-end | ||||||| 🚫 |
46-
| GCI31 | Prefer lighter formats for image files | ESLint key : ... /// type : ... | | 🚧 || 🚀 |||| 🚀 |
46+
| GCI31 | Prefer lighter formats for image files | ESLint key : ... /// type : ... | | 🚧 || |||| 🚀 |
4747
| GCI32 | Initialize builder/buffer with the appropriate size | If you know in advance how many characters would be appended, initialize builder/buffer with the appropriate size. They will thus never have to be resized. This saves CPU cycles and therefore consumes less energy. | || 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 |
4848
| GCI35 | Using try...catch calls (on File Not Found error) | When an exception is thrown, a variable (the exception itself) is created in the catch block and destroyed at the end of the block. Creating this variable and destroying it consumes CPU cycles and RAM unnecessarily. That is why it is important not to use this construction and to prefer, as much as possible, a logical test. This new rule replace old GCI34 only for a particular use case (FileNotFoundException) | [cnumr best practices (3rd edition) BP_047 (no longer exists in edition 4)](https://www.greenit.fr/2019/05/07/ecoconception-web-les-115-bonnes-pratiques-3eme-edition/) | 🚫 || 🚀 || 🚀 | 🚫 | 🚫 |
4949
| GCI36 | Avoid autoplay for videos and audio content | Autoplaying media consumes unnecessary energy, especially when users might not be actively engaging with the content. | [cnumr best practices BP_4003](https://github.com/cnumr/best-practices/blob/main/chapters/BP_4003_en.md) | 🚫 | 🚫 || 🚫 | 🚫 | 🚫 | 🚧 |

0 commit comments

Comments
 (0)