Skip to content

Commit

Permalink
Fix newly enforced package:pedantic lints (dart-archive/html#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 b66bc50 commit bb459ab
Show file tree
Hide file tree
Showing 22 changed files with 5,188 additions and 4,929 deletions.
2 changes: 2 additions & 0 deletions pkgs/html/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 bb459ab

Please sign in to comment.