diff --git a/engine/src/flutter/analysis_options.yaml b/engine/src/flutter/analysis_options.yaml index 248a9f2ace..771f8790dd 100644 --- a/engine/src/flutter/analysis_options.yaml +++ b/engine/src/flutter/analysis_options.yaml @@ -212,9 +212,7 @@ linter: - unnecessary_null_in_if_null_operators - unnecessary_nullable_for_final_variable_declarations - unnecessary_overrides - # TODO(zanderso): Temporarily disabling to unblock a Dart -> Engine roll. - # https://github.com/flutter/engine/pull/55927. - # - unnecessary_parenthesis + - unnecessary_parenthesis # - unnecessary_raw_strings # what's "necessary" is a matter of opinion; consistency across strings can help readability more than this lint - unnecessary_statements - unnecessary_string_escapes diff --git a/engine/src/flutter/ci/licenses_golden/tool_signature b/engine/src/flutter/ci/licenses_golden/tool_signature index 4cc7ffd679..abb989ef90 100644 --- a/engine/src/flutter/ci/licenses_golden/tool_signature +++ b/engine/src/flutter/ci/licenses_golden/tool_signature @@ -1,2 +1,2 @@ -Signature: 8859e172e060ecb45aa665c3119d5d25 +Signature: dbe5e49be0f842a35b32e2e3ecfff7a6 diff --git a/engine/src/flutter/tools/licenses/lib/patterns.dart b/engine/src/flutter/tools/licenses/lib/patterns.dart index b54425a0b1..231a16b8ae 100644 --- a/engine/src/flutter/tools/licenses/lib/patterns.dart +++ b/engine/src/flutter/tools/licenses/lib/patterns.dart @@ -1012,13 +1012,11 @@ final List csTemplateLicenses = [ // Seen in Mesa, among others. RegExp( kIndent + - ( - r'(?:' // this bit is optional - r'Licensed under the MIT license:\n' // seen in expat - r'\1\2? *\n' // blank line - r'\1\2' // this is the prefix for the next block (handled by kIndent if this optional bit is skipped) - r')?' // end of optional bit - ) + r'(?:' // this bit is optional + r'Licensed under the MIT license:\n' // seen in expat + r'\1\2? *\n' // blank line + r'\1\2' // this is the prefix for the next block (handled by kIndent if this optional bit is skipped) + r')?' // end of optional bit + ( r'Permission is hereby granted, free of charge, to any person obtaining ' @@ -1270,40 +1268,36 @@ final List csTemplateLicenses = [ // freetype2. RegExp( kIndent + - ( - r'Permission to use, copy, modify, distribute, and sell this software and its ' - r'documentation for any purpose is hereby granted without fee, provided that ' - r'the above copyright notice appear in all copies and that both that ' - r'copyright notice and this permission notice appear in supporting ' - r'documentation\. ' - r'The above copyright notice and this permission notice shall be included in ' - r'all copies or substantial portions of the Software\. ' - r'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ' - r'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ' - r'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\. IN NO EVENT SHALL THE ' - r'OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN ' - r'AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN ' - r'CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\. ' - r'Except as contained in this notice, the name of The Open Group shall not be ' - r'used in advertising or otherwise to promote the sale, use or other dealings ' - r'in this Software without prior written authorization from The Open Group\. ' - .replaceAll(' ', _linebreak) - ), + r'Permission to use, copy, modify, distribute, and sell this software and its ' + r'documentation for any purpose is hereby granted without fee, provided that ' + r'the above copyright notice appear in all copies and that both that ' + r'copyright notice and this permission notice appear in supporting ' + r'documentation\. ' + r'The above copyright notice and this permission notice shall be included in ' + r'all copies or substantial portions of the Software\. ' + r'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ' + r'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ' + r'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\. IN NO EVENT SHALL THE ' + r'OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN ' + r'AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN ' + r'CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\. ' + r'Except as contained in this notice, the name of The Open Group shall not be ' + r'used in advertising or otherwise to promote the sale, use or other dealings ' + r'in this Software without prior written authorization from The Open Group\. ' + .replaceAll(' ', _linebreak), multiLine: true, ), // libjpeg-turbo RegExp( kIndent + - ( - r'Permission to use, copy, modify, and distribute this software and its ' - r'documentation for any purpose and without fee is hereby granted, provided ' - r'that the above copyright notice appear in all copies and that both that ' - r'copyright notice and this permission notice appear in supporting ' - r'documentation\. This software is provided "as is" without express or ' - r'implied warranty\.' - .replaceAll(' ', _linebreak) - ), + r'Permission to use, copy, modify, and distribute this software and its ' + r'documentation for any purpose and without fee is hereby granted, provided ' + r'that the above copyright notice appear in all copies and that both that ' + r'copyright notice and this permission notice appear in supporting ' + r'documentation\. This software is provided "as is" without express or ' + r'implied warranty\.' + .replaceAll(' ', _linebreak), multiLine: true, ), ]; @@ -1357,17 +1351,15 @@ final List csNoticeLicenses = [ // Freetype RegExp( kIndent + - ( - r'This software was written by Alexander Peslyak in 2001\. No copyright is ' - r'claimed, and the software is hereby placed in the public domain\. In case ' - r'this attempt to disclaim copyright and place the software in the public ' - r'domain is deemed null and void, then the software is Copyright \(c\) 2001 ' - r'Alexander Peslyak and it is hereby released to the general public under the ' - r'following terms: Redistribution and use in source and binary forms, with or ' - r"without modification, are permitted\. There\'s ABSOLUTELY NO WARRANTY, " - r'express or implied\.(?: \(This is a heavily cut-down "BSD license"\.\))?' - .replaceAll(' ', _linebreak) - ), + r'This software was written by Alexander Peslyak in 2001\. No copyright is ' + r'claimed, and the software is hereby placed in the public domain\. In case ' + r'this attempt to disclaim copyright and place the software in the public ' + r'domain is deemed null and void, then the software is Copyright \(c\) 2001 ' + r'Alexander Peslyak and it is hereby released to the general public under the ' + r'following terms: Redistribution and use in source and binary forms, with or ' + r"without modification, are permitted\. There\'s ABSOLUTELY NO WARRANTY, " + r'express or implied\.(?: \(This is a heavily cut-down "BSD license"\.\))?' + .replaceAll(' ', _linebreak), multiLine: true, ), @@ -1469,12 +1461,10 @@ final List csNoticeLicenses = [ // Seen in libjpeg-turbo (with a copyright), zlib.h RegExp( kIndent + - ( - r" This software is provided 'as-is', without any express or implied " - r'warranty\. In no event will the authors be held liable for any damages ' - r'arising from the use of this software\.' - .replaceAll(' ', _linebreak) - ) + r" This software is provided 'as-is', without any express or implied " + r'warranty\. In no event will the authors be held liable for any damages ' + r'arising from the use of this software\.' + .replaceAll(' ', _linebreak) + ( r' Permission is granted to anyone to use this software for any purpose, '