Skip to content

Commit

Permalink
Merge pull request flutter#1506 from dart-lang/rename_spread_collections
Browse files Browse the repository at this point in the history
Rename spread collections
  • Loading branch information
pq authored Apr 7, 2019
2 parents 0b67ec3 + 0af34d7 commit 4f66a45
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ linter:
- prefer_mixin
- prefer_null_aware_operators
- prefer_single_quotes
- prefer_spread_collections
- prefer_typing_uninitialized_variables
- prefer_void_to_null
- provide_deprecation_message
Expand All @@ -116,7 +117,6 @@ linter:
- sort_constructors_first
- sort_pub_dependencies
- sort_unnamed_constructors_first
- spread_collections
- test_types_in_equals
- throw_in_finally
- type_annotate_public_apis
Expand Down
4 changes: 2 additions & 2 deletions lib/src/rules.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ import 'package:linter/src/rules/prefer_iterable_whereType.dart';
import 'package:linter/src/rules/prefer_mixin.dart';
import 'package:linter/src/rules/prefer_null_aware_operators.dart';
import 'package:linter/src/rules/prefer_single_quotes.dart';
import 'package:linter/src/rules/prefer_spread_collections.dart';
import 'package:linter/src/rules/prefer_typing_uninitialized_variables.dart';
import 'package:linter/src/rules/prefer_void_to_null.dart';
import 'package:linter/src/rules/provide_deprecation_message.dart';
Expand All @@ -118,7 +119,6 @@ import 'package:linter/src/rules/recursive_getters.dart';
import 'package:linter/src/rules/slash_for_doc_comments.dart';
import 'package:linter/src/rules/sort_constructors_first.dart';
import 'package:linter/src/rules/sort_unnamed_constructors_first.dart';
import 'package:linter/src/rules/spread_collections.dart';
import 'package:linter/src/rules/super_goes_last.dart';
import 'package:linter/src/rules/test_types_in_equals.dart';
import 'package:linter/src/rules/throw_in_finally.dart';
Expand Down Expand Up @@ -255,6 +255,7 @@ void registerLintRules() {
..register(new PreferMixin())
..register(new PreferNullAwareOperators())
..register(new PreferSingleQuotes())
..register(new PreferSpreadCollections())
..register(new PreferTypingUninitializedVariables())
..register(new PreferVoidToNull())
..register(new ProvideDeprecationMessage())
Expand All @@ -265,7 +266,6 @@ void registerLintRules() {
..register(new SortConstructorsFirst())
..register(new SortPubDependencies())
..register(new SortUnnamedConstructorsFirst())
..register(new SpreadCollections())
..register(new SuperGoesLast())
..register(new TestTypesInEquals())
..register(new ThrowInFinally())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ var l = ['a', ...?things];
```
''';

class SpreadCollections extends LintRule implements NodeLintRule {
SpreadCollections()
class PreferSpreadCollections extends LintRule implements NodeLintRule {
PreferSpreadCollections()
: super(
name: 'spread_collections',
name: 'prefer_spread_collections',
description: _desc,
details: _details,
group: Group.style);
Expand Down
File renamed without changes.

0 comments on commit 4f66a45

Please sign in to comment.