Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 0268185

Browse files
Enable pubspec dependency sorting lint
Enables the dependencies sorting link in analysis_options.yaml (which applies only to the directories that have migrated off the legacy options already), and fixes the resulting new analysis issues. Part of flutter/flutter#82913
1 parent 30add64 commit 0268185

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

analysis_options.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ linter:
198198
- slash_for_doc_comments
199199
# - sort_child_properties_last # not yet tested
200200
- sort_constructors_first
201-
# - sort_pub_dependencies # prevents separating pinned transitive dependencies
202201
- sort_unnamed_constructors_first
203202
- test_types_in_equals
204203
- throw_in_finally
@@ -243,3 +242,6 @@ linter:
243242
# separately when moving to a shared file.
244243
- no_runtimeType_toString # use objectRuntimeType from package:foundation
245244
- public_member_api_docs # see https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#documentation-dartdocs-javadocs-etc
245+
# Flutter has a specific use case for dependencies that intentionally not
246+
# sorted, which doesn't apply to this repo.
247+
- sort_pub_dependencies

0 commit comments

Comments
 (0)