From c794221f9631521aab050dc5e53cb4d63e470d92 Mon Sep 17 00:00:00 2001 From: Alexandre Ardhuin Date: Fri, 21 Apr 2017 08:52:07 +0200 Subject: [PATCH] enable lint prefer_adjacent_string_concatenation (#9493) --- .analysis_options | 2 +- .analysis_options_repo | 2 +- packages/flutter/lib/src/widgets/dismissible.dart | 4 ++-- packages/flutter/test/material/text_field_test.dart | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.analysis_options b/.analysis_options index 1b3dd87552..fb8f2f7acf 100644 --- a/.analysis_options +++ b/.analysis_options @@ -90,7 +90,7 @@ linter: - package_api_docs - package_prefixed_library_names # - parameter_assignments # we do this commonly - # - prefer_adjacent_string_concatenation # not yet tested + - prefer_adjacent_string_concatenation - prefer_collection_literals - prefer_const_constructors - prefer_contains diff --git a/.analysis_options_repo b/.analysis_options_repo index 09e4b6a815..01641fa581 100644 --- a/.analysis_options_repo +++ b/.analysis_options_repo @@ -88,7 +88,7 @@ linter: - package_api_docs - package_prefixed_library_names # - parameter_assignments # we do this commonly - # - prefer_adjacent_string_concatenation # not yet tested + - prefer_adjacent_string_concatenation - prefer_collection_literals - prefer_const_constructors - prefer_contains diff --git a/packages/flutter/lib/src/widgets/dismissible.dart b/packages/flutter/lib/src/widgets/dismissible.dart index 09fd6be9bc..ca8a3166b2 100644 --- a/packages/flutter/lib/src/widgets/dismissible.dart +++ b/packages/flutter/lib/src/widgets/dismissible.dart @@ -377,8 +377,8 @@ class _DismissibleState extends State with TickerProviderStateMixin if (_resizeAnimation.status != AnimationStatus.forward) { assert(_resizeAnimation.status == AnimationStatus.completed); throw new FlutterError( - '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' + + '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' 'widget from the application once that handler has fired.' ); } diff --git a/packages/flutter/test/material/text_field_test.dart b/packages/flutter/test/material/text_field_test.dart index c9a9a28f20..1fcbb4586a 100644 --- a/packages/flutter/test/material/text_field_test.dart +++ b/packages/flutter/test/material/text_field_test.dart @@ -40,8 +40,8 @@ void main() { SystemChannels.platform.setMockMethodCallHandler(mockClipboard.handleMethodCall); const String kThreeLines = - 'First line of text is ' + - 'Second line goes until ' + + 'First line of text is ' + 'Second line goes until ' 'Third line of stuff '; const String kFourLines = kThreeLines +