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

Enable pubspec dependency sorting lint #3983

Merged
merged 2 commits into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ linter:
- slash_for_doc_comments
# - sort_child_properties_last # not yet tested
- sort_constructors_first
# - sort_pub_dependencies # prevents separating pinned transitive dependencies
- sort_unnamed_constructors_first
- test_types_in_equals
- throw_in_finally
Expand Down Expand Up @@ -243,3 +242,6 @@ linter:
# separately when moving to a shared file.
- no_runtimeType_toString # use objectRuntimeType from package:foundation
- public_member_api_docs # see https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#documentation-dartdocs-javadocs-etc
# Flutter has a specific use case for dependencies that are intentionally
# not sorted, which doesn't apply to this repo.
- sort_pub_dependencies
11 changes: 5 additions & 6 deletions packages/espresso/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ dependencies:
sdk: flutter

dev_dependencies:
flutter_test:
sdk: flutter
flutter_driver:
sdk: flutter
pedantic: ^1.10.0

espresso:
# When depending on this package from a real application you should use:
# espresso: ^x.y.z
# See https://dart.dev/tools/pub/dependencies#version-constraints
# The example app is bundled with the plugin so we use a path dependency on
# the parent directory to use the current plugin's version.
path: ../
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
pedantic: ^1.10.0

flutter:
uses-material-design: true
4 changes: 2 additions & 2 deletions packages/path_provider/path_provider/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ dependencies:
path: ../

dev_dependencies:
integration_test:
sdk: flutter
flutter_driver:
sdk: flutter
integration_test:
sdk: flutter
pedantic: ^1.10.0

flutter:
Expand Down
4 changes: 2 additions & 2 deletions packages/path_provider/path_provider/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ dependencies:
path_provider_windows: ^2.0.0

dev_dependencies:
flutter_test:
sdk: flutter
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
integration_test:
sdk: flutter
pedantic: ^1.10.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ dependencies:
path: ../

dev_dependencies:
flutter_test:
sdk: flutter
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
integration_test:
sdk: flutter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ dependencies:
path_provider_platform_interface: ^2.0.0

dev_dependencies:
integration_test:
sdk: flutter
flutter_driver:
sdk: flutter
integration_test:
sdk: flutter
pedantic: ^1.8.0

flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ dependencies:
path: ../

dev_dependencies:
integration_test:
sdk: flutter
flutter_driver:
sdk: flutter
integration_test:
sdk: flutter
pedantic: ^1.10.0

flutter:
Expand Down