You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RULES.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ Some are applicable for different technologies.
86
86
| GCI107 | Data : Avoid Iterative Matrix Operations | Use vectorization by the usage of the built-in functions of TensorFlow, NumPy or Pandas || 🚫 | 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI107)|
87
87
| GCI108 | Prefer Append Left | When you want to insert an element at the beginning of a list, it's better to use a deques or a double linkedlist. || ❓ | ❓ | ❓ | 🚀 | ❓ | ❓ | ❓ |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI108)|
88
88
| GCI203 | Detect unoptimized file formats | When it is possible, to use svg format image over other image format || 🚧 | 🚀 | 🚀 | ✅ | 🚀 | 🚀 | 🚫 |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI203)|
89
-
| GCI404 | Avoid list comprehension in iterations | Use generator comprehension instead of list comprehension in for loop declaration || 🚫 | 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI204)|
89
+
| GCI404 | Avoid list comprehension in iterations | Use generator comprehension instead of list comprehension in for loop declaration || 🚫 | 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI404)|
90
90
| GCI522 | Sobriety: Brightness Override | To avoid draining the battery, iOS and Android devices adapt the brightness of the screen depending on the environment light. || 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 | 🚫 |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI522)|
91
91
| GCI523 | Sobriety: Thrifty Geolocation (minTime) | High-precision geolocation typically requires more power from the device's GPS hardware. || 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 | 🚫 |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI523)|
92
92
| GCI530 | Sobriety: Torch Free | Turning on the torch mode programmatically must absolutely be avoided because the flashlight is one of the most energy-intensive component. || 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 | 🚫 |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI530)|
@@ -97,7 +97,7 @@ Some are applicable for different technologies.
97
97
|| Resize images browser-side | Do not resize images using the HEIGHT and WIDTH attributes of the HTML code. This approach requires transferring these images to their original size, wasting bandwidth and CPU cycles. |[cnumr best practices (3rd edition) BP_034](https://github.com/cnumr/best-practices/blob/main/chapters/BP_034_fr.md)| 🚫 | 🚫 | 🚧 | 🚫 | 🚫 | 🚫 | 🚀 ||
98
98
|| Modify the DOM when traversing it | Modifying the DOM (Document Object Model) as you traverse it can lead to situations where the loop becomes very resource-intensive, especially CPU cycles. |[cnumr best practices (3rd edition) BP_041](https://github.com/cnumr/best-practices/blob/main/chapters/BP_041_fr.md)| 🚫 | 🚫 | 🚧 | 🚫 | 🚫 | 🚫 | 🚫 ||
99
99
|| Edit DOM elements to make it invisible | When an element of the Document Object Model (DOM) needs to be modified by several properties, each change in style or content will generate a repaint or reflow. |[cnumr best practices (3rd edition) BP_042](https://github.com/cnumr/best-practices/blob/main/chapters/BP_042_fr.md)| 🚫 | 🚫 | 🚀 | 🚫 | 🚫 | 🚫 | 🚫 ||
100
-
| GCI535 | Use native Intl.NumberFormat to format numbers | There's no need to use a library to display formatted numbers in a recent browser. Use Intl.NumberFormat for that use case. || 🚫 | 🚫 | 🚧 | 🚫 | 🚫 | 🚫 | 🚫 ||
100
+
| GCI535 | Use native Intl.NumberFormat to format numbers | There's no need to use a library to display formatted numbers in a recent browser. Use Intl.NumberFormat for that use case. || 🚫 | 🚫 | 🚧 | 🚫 | 🚫 | 🚫 | 🚫 |[documentation](https://github.com/green-code-initiative/creedengo-rules-specifications/tree/main/src/main/rules/GCI535)|
0 commit comments