AVOID annotating types for function expression parameters Error
chilex111 opened this issue · 1 comments
BAD:
var names = people.map((Person person) => person.name);
GOOD:
var names = people.map((person) => person.name);
This is the example you gave but whenever I implement the approved method I get errors "Missing parameter type person"
analysis_options.yaml
include: package:effective_dart/analysis_options.yaml
analyzer:
exclude:
- "build/**"
- "lib/generated/**"
strong-mode:
implicit-casts: false
implicit-dynamic: false
linter:
rules:
- camel_case_types
Hi @chilex111
I believe you are talking about https://dart-lang.github.io/linter/lints/avoid_types_on_closure_parameters.html, right? This repository only collect the Effective Dart rules, but for questions about them not functioning, visit and create an issue in https://github.com/dart-lang/linter
Your setting looks just fine. So there might be really some issue in the rule. Did you check that your analysis server refreshed after adding these settings?