-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
ecocode-rules-specifications/src/main/rules/EC530/java/EC530.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"tags": [ | ||
"sobriety", | ||
"environment", | ||
"ecocode", | ||
"android", | ||
"eco-design" | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
ecocode-rules-specifications/src/main/rules/EC530/javascript/EC530.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
== Why is this an issue? | ||
|
||
Turning on the torch mode programmatically with `react-native-torch` must absolutely be avoided because the flashlight is one of the most energy-intensive component. | ||
|
||
## Non compliant Code Example | ||
|
||
[source,js,data-diff-id="2",data-diff-type="noncompliant"] | ||
---- | ||
import Torch from 'react-native-torch'; // Non-compliant | ||
---- | ||
|
||
[source,js,data-diff-id="2",data-diff-type="compliant"] | ||
---- | ||
import axios from 'axios'; // Compliant | ||
---- | ||
|
||
== Resources | ||
|
||
=== Documentation | ||
|
||
- [CNUMR best practices mobile](https://github.com/cnumr/best-practices-mobile) - Torch free |
9 changes: 9 additions & 0 deletions
9
ecocode-rules-specifications/src/main/rules/EC530/javascript/EC530.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"tags": [ | ||
"sobriety", | ||
"environment", | ||
"ecocode", | ||
"react-native", | ||
"eco-design" | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
ecocode-rules-specifications/src/main/rules/EC530/swift/EC530.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"tags": [ | ||
"sobriety", | ||
"environment", | ||
"ecocode", | ||
"ios", | ||
"eco-design" | ||
] | ||
} |