diff --git a/analysis_options.yaml b/analysis_options.yaml index c24ef9e35..4905ebee9 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -11,6 +11,9 @@ analyzer: included_file_warning: ignore # false positive when using Freezed invalid_annotation_target: ignore + # I prefer specifying a parameter on a widget even if they are unused (such as Key) + # for the sake of consistency. + unused_element_parameter: false linter: rules: diff --git a/examples/marvel/analysis_options.yaml b/examples/marvel/analysis_options.yaml index fd37ac1ff..611834f1a 100644 --- a/examples/marvel/analysis_options.yaml +++ b/examples/marvel/analysis_options.yaml @@ -6,3 +6,6 @@ analyzer: errors: # Some assets are voluntarily gitignored asset_does_not_exist: ignore + # I prefer specifying a parameter on a widget even if they are unused (such as Key) + # for the sake of consistency. + unused_element_parameter: false \ No newline at end of file