feat(quality): harden lint rules and add quality-gate tests
This commit is contained in:
@@ -136,7 +136,11 @@ class Emisora {
|
||||
/// Lista de géneros/tags como lista limpia.
|
||||
List<String> get generos {
|
||||
if (tags == null || tags!.isEmpty) return [];
|
||||
return tags!.split(',').map((t) => t.trim()).where((t) => t.isNotEmpty).toList();
|
||||
return tags!
|
||||
.split(',')
|
||||
.map((t) => t.trim())
|
||||
.where((t) => t.isNotEmpty)
|
||||
.toList();
|
||||
}
|
||||
|
||||
static String? _nonEmpty(String? s) =>
|
||||
@@ -148,7 +152,9 @@ class Emisora {
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is Emisora && runtimeType == other.runtimeType && uuid == other.uuid;
|
||||
other is Emisora &&
|
||||
runtimeType == other.runtimeType &&
|
||||
uuid == other.uuid;
|
||||
|
||||
@override
|
||||
int get hashCode => uuid.hashCode;
|
||||
|
||||
Reference in New Issue
Block a user