green-code-initiative / ecoCode-android

Reduce the environmental footprint of your Java-based Android apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
54 stars 17 forks source link

[ESOB006] iOS Sobriety - Usage of `AVCaptureDevice#torchMode` or `AVCaptureDevice#setTorchModeOn(level:)` must absolutely be avoided #56

Closed jduigoudev closed 1 year ago

jduigoudev commented 1 year ago

Description

Usage of AVCaptureDevice#torchMode or AVCaptureDevice#setTorchModeOn(level:) must absolutely be avoided. These methods can be used to access the device's flashlight, which can be a potential security risk and should only be used when necessary.

Types of changes

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

zippy1978 commented 1 year ago

Close https://github.com/green-code-initiative/ecoCode-mobile/issues/41