solid-software / solid_lints

🟧 Lints for Dart and Flutter based on software industry standards and best practices.
Other
36 stars 18 forks source link

One `avoid-unnecessary-type-casts` lint triggers multiple issues #54

Closed yurii-prykhodko-solid closed 11 months ago

yurii-prykhodko-solid commented 11 months ago
image
❯ dart run custom_lint    
  avoid_unnecessary_type_casts_test.dart:17:19 • Avoid unnecessary usage of as operator. • avoid-unnecessary-type-casts • INFO
  avoid_unnecessary_type_casts_test.dart:17:19 • Avoid unnecessary usage of as operator. • avoid-unnecessary-type-casts • INFO
  avoid_unnecessary_type_casts_test.dart:17:19 • Avoid unnecessary usage of as operator. • avoid-unnecessary-type-casts • INFO
  avoid_unnecessary_type_casts_test.dart:17:19 • Avoid unnecessary usage of as operator. • avoid-unnecessary-type-casts • INFO
  avoid_unnecessary_type_casts_test.dart:17:19 • Avoid unnecessary usage of as operator. • avoid-unnecessary-type-casts • INFO
DenisBogatirov commented 11 months ago

Same happening with newline-before-return and avoid-unrelated-type-assertions