refactor: fix warnings

This commit is contained in:
edde746
2025-12-13 15:37:55 +01:00
parent 18c322f66a
commit 867992e96b
23 changed files with 141 additions and 172 deletions
+3 -5
View File
@@ -1,5 +1,3 @@
import 'dart:collection';
class LogRedactionManager {
// Size limits for bounded sets (FIFO eviction when exceeded)
static const int _maxTokens = 50;
@@ -7,9 +5,9 @@ class LogRedactionManager {
static const int _maxCustomValues = 50;
// Use LinkedHashSet for FIFO ordering
static final Set<String> _tokens = LinkedHashSet<String>();
static final Set<String> _urls = LinkedHashSet<String>();
static final Set<String> _customValues = LinkedHashSet<String>();
static final Set<String> _tokens = <String>{};
static final Set<String> _urls = <String>{};
static final Set<String> _customValues = <String>{};
static final RegExp _ipv4Pattern = RegExp(
r'\b(\d{1,3})([.-])(\d{1,3})\2(\d{1,3})\2(\d{1,3})\b',