Skip to content

Commit

Permalink
Ignore unused_element_parameter (#126926)
Browse files Browse the repository at this point in the history
When the analyzer detects an unused parameter, it reports `unused_element` which can be ignored with an inline ignore like `// ignore: unused_element`. The analyzer will start reporting instead, `unused_element_parameter`. There are ignores in flutter/flutter that need to be updated to the new code. In order to incrementally migrate, they can be changed to `// ignore: unused_element, unused_element_parameter`.

After flutter/flutter is using a new enough analyzer, we can then change those to `// ignore: unused_element_parameter`.

Work towards flutter/flutter#126924
  • Loading branch information
srawlins authored May 17, 2023
1 parent 9657289 commit 7a32504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/widgets/widget_inspector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3256,7 +3256,7 @@ class _Location {
required this.file,
required this.line,
required this.column,
// ignore: unused_element
// ignore: unused_element, unused_element_parameter
this.name,
});

Expand Down

0 comments on commit 7a32504

Please sign in to comment.