Skip to content

Commit d5bf4b8

Browse files
Copilotanimator
andcommitted
Address review comments: Remove security notices from code generators, restore debugPrint statements, remove extra documentation files
Co-authored-by: animator <[email protected]>
1 parent e3fa16f commit d5bf4b8

File tree

10 files changed

+8
-1838
lines changed

10 files changed

+8
-1838
lines changed

lib/codegen/go/http.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ func main() {
8989
HttpRequestModel requestModel,
9090
) {
9191
try {
92-
String result = "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n";
93-
result += "// This code is generated for testing purposes\n\n";
92+
String result = "";
9493
var hasBody = false;
9594

9695
String url = requestModel.url;

lib/codegen/java/okhttp.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ import okhttp3.MultipartBody;""";
9292
HttpRequestModel requestModel,
9393
) {
9494
try {
95-
String result = "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n";
96-
result += "// This code is generated for testing purposes\n\n";
95+
String result = "";
9796
bool hasQuery = false;
9897
bool hasBody = false;
9998
bool hasFormData = false;

lib/codegen/kotlin/okhttp.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ import okhttp3.MediaType.Companion.toMediaType""";
8080
HttpRequestModel requestModel,
8181
) {
8282
try {
83-
String result = "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n";
84-
result += "// This code is generated for testing purposes\n\n";
83+
String result = "";
8584
bool hasQuery = false;
8685
bool hasBody = false;
8786
bool hasFormData = false;

lib/codegen/python/requests.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ print('Response Body:', response.text)
8282
String? boundary,
8383
}) {
8484
try {
85-
String result = "# SECURITY NOTICE: Please validate all inputs and URLs before use in production\n";
86-
result += "# This code is generated for testing purposes\n\n";
85+
String result = "";
8786
bool hasQuery = false;
8887
bool hasHeaders = false;
8988
bool hasBody = false;

lib/services/hive_services.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Future<bool> openHiveBoxes() async {
5757
}
5858
return true;
5959
} catch (e) {
60-
// Error opening Hive boxes - logging suppressed for security
60+
debugPrint("ERROR OPEN HIVE BOXES: $e");
6161
return false;
6262
}
6363
}
@@ -74,7 +74,7 @@ Future<void> clearHiveBoxes() async {
7474
}
7575
}
7676
} catch (e) {
77-
// Error clearing Hive boxes - logging suppressed for security
77+
debugPrint("ERROR CLEAR HIVE BOXES: $e");
7878
}
7979
}
8080

@@ -91,7 +91,7 @@ Future<void> deleteHiveBoxes() async {
9191
}
9292
await Hive.close();
9393
} catch (e) {
94-
// Error deleting Hive boxes - logging suppressed for security
94+
debugPrint("ERROR DELETE HIVE BOXES: $e");
9595
}
9696
}
9797

@@ -105,7 +105,7 @@ class HiveHandler {
105105
late final LazyBox dashBotBox;
106106

107107
HiveHandler() {
108-
// Initialize Hive boxes
108+
debugPrint("Trying to open Hive boxes");
109109
dataBox = Hive.box(kDataBox);
110110
environmentBox = Hive.box(kEnvironmentBox);
111111
historyMetaBox = Hive.box(kHistoryMetaBox);

0 commit comments

Comments
 (0)