execute method
Executes the method and returns a score between 0 and 100
Implementation
@override
Future<({double score, String? reason})> execute() async {
final deviceInfo = await DeviceInfoPlugin().deviceInfo;
if (deviceInfo is AndroidDeviceInfo) {
final host = deviceInfo.host.toLowerCase();
if (host.contains('jenkins') || host.contains('build')) {
return (score: score, reason: "$reason $host");
}
}
return (score: 0.0, reason: null);
}