-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
r: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
Description
Steps to Reproduce
- enable
prefer_final_parametersinanalysis_options.yaml:linter: rules: prefer_final_parameters: true
- run
dart analyze
Expected results:
no error, as it's a generated file that should never trigger any lint errors
either final should be added to the registrar parameter, or the rule should be ignored like the others
Actual results:
info - Prefer final for parameter declarations if they are not reassigned -
lib\generated_plugin_registrant.dart:13:22 - prefer_final_parameters
Code sample
//
// Generated file. Do not edit.
//
// ignore_for_file: directives_ordering
// ignore_for_file: lines_longer_than_80_chars
// ignore_for_file: depend_on_referenced_packages
import 'package:file_picker/_internal/file_picker_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
FilePickerWeb.registerWith(registrar);
registrar.registerMessageHandler();
}DetachHead and KotlinIsland
Metadata
Metadata
Assignees
Labels
r: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue