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 (#111)
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 authored Dec 11, 2019
1 parent 1905ad2 commit 083a36c
Show file tree
Hide file tree
Showing 22 changed files with 5,188 additions and 4,929 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 083a36c

Please sign in to comment.