-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
531 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
## 2.0.2-dev | ||
|
||
## 2.0.1 | ||
|
||
* Populate the pubspec `repository` field. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,57 @@ | ||
# https://dart.dev/guides/language/analysis-options | ||
include: package:lints/recommended.yaml | ||
|
||
analyzer: | ||
strong-mode: | ||
implicit-casts: false | ||
language: | ||
strict-casts: true | ||
strict-inference: true | ||
strict-raw-types: true | ||
|
||
linter: | ||
rules: | ||
- annotate_overrides | ||
- always_declare_return_types | ||
- avoid_bool_literals_in_conditional_expressions | ||
- avoid_catching_errors | ||
- avoid_classes_with_only_static_members | ||
- avoid_dynamic_calls | ||
- avoid_function_literals_in_foreach_calls | ||
- avoid_init_to_null | ||
- avoid_null_checks_in_equality_operators | ||
- avoid_relative_lib_imports | ||
- avoid_private_typedef_functions | ||
- avoid_redundant_argument_values | ||
- avoid_returning_null | ||
- avoid_returning_null_for_future | ||
- avoid_returning_this | ||
- avoid_unused_constructor_parameters | ||
- await_only_futures | ||
- camel_case_types | ||
- avoid_void_async | ||
- cancel_subscriptions | ||
- comment_references | ||
- constant_identifier_names | ||
- control_flow_in_finally | ||
- directives_ordering | ||
- empty_catches | ||
- empty_constructor_bodies | ||
- empty_statements | ||
- hash_and_equals | ||
- implementation_imports | ||
- iterable_contains_unrelated_type | ||
- library_names | ||
- library_prefixes | ||
- list_remove_unrelated_type | ||
- join_return_with_assignment | ||
- lines_longer_than_80_chars | ||
- literal_only_boolean_expressions | ||
- missing_whitespace_between_adjacent_strings | ||
- no_adjacent_strings_in_list | ||
- non_constant_identifier_names | ||
- no_runtimeType_toString | ||
- omit_local_variable_types | ||
- only_throw_errors | ||
- overridden_fields | ||
- package_api_docs | ||
- package_names | ||
- package_prefixed_library_names | ||
- prefer_adjacent_string_concatenation | ||
- prefer_collection_literals | ||
- prefer_conditional_assignment | ||
- prefer_asserts_in_initializer_lists | ||
- prefer_const_constructors | ||
- prefer_final_fields | ||
- prefer_generic_function_type_aliases | ||
- prefer_initializing_formals | ||
- prefer_interpolation_to_compose_strings | ||
- prefer_const_declarations | ||
- prefer_expression_function_bodies | ||
- prefer_final_locals | ||
- prefer_relative_imports | ||
- prefer_single_quotes | ||
- prefer_typing_uninitialized_variables | ||
- slash_for_doc_comments | ||
- sort_pub_dependencies | ||
- test_types_in_equals | ||
- throw_in_finally | ||
- type_init_formals | ||
- unnecessary_brace_in_string_interps | ||
- unnecessary_const | ||
- unnecessary_getters_setters | ||
- type_annotate_public_apis | ||
- unawaited_futures | ||
- unnecessary_await_in_return | ||
- unnecessary_lambdas | ||
- unnecessary_new | ||
- unnecessary_null_aware_assignments | ||
- unnecessary_parenthesis | ||
- unnecessary_raw_strings | ||
- unnecessary_statements | ||
- unnecessary_this | ||
- use_if_null_to_convert_nulls_to_bools | ||
- use_raw_strings | ||
- use_string_buffers | ||
- use_super_parameters | ||
- require_trailing_commas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'dart:io'; | ||
|
||
import 'package:test/test.dart'; | ||
import 'package:test_descriptor/test_descriptor.dart' as d; | ||
|
||
void main() { | ||
test('Directory.rename', () async { | ||
await d.dir('parent', [ | ||
d.file('sibling', 'sibling-contents'), | ||
d.dir('old-name', [d.file('child', 'child-contents')]) | ||
]).create(); | ||
|
||
await Directory('${d.sandbox}/parent/old-name') | ||
.rename('${d.sandbox}/parent/new-name'); | ||
|
||
await d.dir('parent', [ | ||
d.file('sibling', 'sibling-contents'), | ||
d.dir('new-name', [d.file('child', 'child-contents')]) | ||
]).validate(); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.