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
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ Some are applicable for different technologies.
73
73
| GCI94 | Use orElseGet instead of orElse | Parameter of orElse() is evaluated, even when having a non-empty Optional. Supplier method of orElseGet passed as an argument is only executed when an Optional value isn’t present. Therefore, using orElseGet() will save computing time. |[Optimized use of Java Optional Else](https://github.com/green-code-initiative/creedengo-challenge/issues/77)| ✅ | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 |
74
74
| GCI203 | Detect unoptimized file formats | When it is possible, to use svg format image over other image format || 🚧 | 🚀 | 🚀 | ✅ | 🚀 | 🚀 | 🚫 |
75
75
| GCI404 | Avoid list comprehension in iterations | Use generator comprehension instead of list comprehension in for loop declaration || 🚫 | 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 |
76
-
| GCI522 | Sobriety: Brightness Override | To avoid draining the battery, iOS and Android devices adapt the brightness of the screen depending on the environment light.|| 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 | 🚫 |
76
+
| GCI522 | Sobriety: Brightness Override | To avoid draining the battery, iOS and Android devices adapt the brightness of the screen depending on the environment light.| 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 | 🚫 |
77
77
| GCI523 | Sobriety: Thrifty Geolocation (minTime) | High-precision geolocation typically requires more power from the device's GPS hardware. || 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 | 🚫 |
78
78
| 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. || 🚫 | 🚫 | ✅ | 🚫 | 🚫 | 🚫 | 🚫 |
79
79
|| Use official social media sharing buttons | These JavaScript plugins are very resource-intensive: to work, they require a large number of requests and download heavy files. It is better to prefer direct links. |[cnumr best practices (3rd edition) BP_019](https://github.com/cnumr/best-practices/blob/main/chapters/BP_019_fr.md)| 🚫 | 🚫 | 🚀 | 🚫 | 🚫 | 🚫 | 🚀 |
@@ -83,6 +83,9 @@ Some are applicable for different technologies.
83
83
|| 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)| 🚫 | 🚫 | 🚧 | 🚫 | 🚫 | 🚫 | 🚀 |
84
84
|| 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)| 🚫 | 🚫 | 🚧 | 🚫 | 🚫 | 🚫 | 🚫 |
85
85
|| 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)| 🚫 | 🚫 | 🚀 | 🚫 | 🚫 | 🚫 | 🚫 |
86
+
| GSI1200 | To use list comprehension instead for loop in simple iterations ||| ❓ | ❓ | 🚀 | ❓ | ❓ |❓ |❓ |
0 commit comments