Commit c794221f authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

enable lint prefer_adjacent_string_concatenation (#9493)

parent 9b250cb6
...@@ -90,7 +90,7 @@ linter: ...@@ -90,7 +90,7 @@ linter:
- package_api_docs - package_api_docs
- package_prefixed_library_names - package_prefixed_library_names
# - parameter_assignments # we do this commonly # - parameter_assignments # we do this commonly
# - prefer_adjacent_string_concatenation # not yet tested - prefer_adjacent_string_concatenation
- prefer_collection_literals - prefer_collection_literals
- prefer_const_constructors - prefer_const_constructors
- prefer_contains - prefer_contains
......
...@@ -88,7 +88,7 @@ linter: ...@@ -88,7 +88,7 @@ linter:
- package_api_docs - package_api_docs
- package_prefixed_library_names - package_prefixed_library_names
# - parameter_assignments # we do this commonly # - parameter_assignments # we do this commonly
# - prefer_adjacent_string_concatenation # not yet tested - prefer_adjacent_string_concatenation
- prefer_collection_literals - prefer_collection_literals
- prefer_const_constructors - prefer_const_constructors
- prefer_contains - prefer_contains
......
...@@ -377,8 +377,8 @@ class _DismissibleState extends State<Dismissible> with TickerProviderStateMixin ...@@ -377,8 +377,8 @@ class _DismissibleState extends State<Dismissible> with TickerProviderStateMixin
if (_resizeAnimation.status != AnimationStatus.forward) { if (_resizeAnimation.status != AnimationStatus.forward) {
assert(_resizeAnimation.status == AnimationStatus.completed); assert(_resizeAnimation.status == AnimationStatus.completed);
throw new FlutterError( throw new FlutterError(
'A dismissed Dismissible widget is still part of the tree.\n' + 'A dismissed Dismissible widget is still part of the tree.\n'
'Make sure to implement the onDismissed handler and to immediately remove the Dismissible\n' + 'Make sure to implement the onDismissed handler and to immediately remove the Dismissible\n'
'widget from the application once that handler has fired.' 'widget from the application once that handler has fired.'
); );
} }
......
...@@ -40,8 +40,8 @@ void main() { ...@@ -40,8 +40,8 @@ void main() {
SystemChannels.platform.setMockMethodCallHandler(mockClipboard.handleMethodCall); SystemChannels.platform.setMockMethodCallHandler(mockClipboard.handleMethodCall);
const String kThreeLines = const String kThreeLines =
'First line of text is ' + 'First line of text is '
'Second line goes until ' + 'Second line goes until '
'Third line of stuff '; 'Third line of stuff ';
const String kFourLines = const String kFourLines =
kThreeLines + kThreeLines +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment