Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 1c65936

Browse files
committed
Fix newly enforced package:pedantic lints
- always_declare_return_types - annotate_overrides - omit_local_variable_types - prefer_conditional_assignment - prefer_if_null_operators - prefer_single_quotes - use_function_type_syntax_for_parameters Ignore prefer_collection_literals lints since they would require incorrect code where a `{}` (statically a `Map`) is assigned to a static `LinkedHashMap`. See https://github.com/dart-lang/linter/issues/1649
1 parent 1905ad2 commit 1c65936

22 files changed

+5186
-4928
lines changed

analysis_options.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include: package:pedantic/analysis_options.yaml
22
analyzer:
33
errors:
4+
# https://github.com/dart-lang/linter/issues/1649
5+
prefer_collection_literals: ignore
46
unused_element: error
57
unused_import: error
68
unused_local_variable: error

0 commit comments

Comments
 (0)