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

Commit

Permalink
Fix newly enforced package:pedantic lints
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
natebosch committed Dec 10, 2019
1 parent 1905ad2 commit 1c65936
Show file tree
Hide file tree
Showing 22 changed files with 5,186 additions and 4,928 deletions.
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include: package:pedantic/analysis_options.yaml
analyzer:
errors:
# https://github.com/dart-lang/linter/issues/1649
prefer_collection_literals: ignore
unused_element: error
unused_import: error
unused_local_variable: error
Expand Down
Loading

0 comments on commit 1c65936

Please sign in to comment.