mirror of
https://github.com/flutter/packages.git
synced 2025-08-16 13:01:29 +08:00
Standardize Copyrights: Chromium->Flutter (#2996)
In all copyright messages (and in the Xcode project organization name) standardize on "The Flutter Authors", adding "The Chromium Authors" to the Flutter AUTHORS list. This reduces inconsistency in the copyright lines in this repository, moving closer to a single consistent copyright+license (as in flutter/engine and flutter/flutter) Updates the validation script to no longer accept "The Chromium Authors" or "the Chromium project authors" in first-party code.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
// Copyright 2017 The Chromium Authors. All rights reserved.
|
||||
// Copyright 2017 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -60,13 +60,7 @@ final RegExp _workivaLicenseRegex = RegExp(
|
||||
multiLine: true,
|
||||
dotAll: true);
|
||||
|
||||
// TODO(stuartmorgan): Replace this with a single string once all the copyrights
|
||||
// are standardized.
|
||||
final List<String> _firstPartyAuthors = <String>[
|
||||
'The Chromium Authors',
|
||||
'the Chromium project authors',
|
||||
'The Flutter Authors',
|
||||
];
|
||||
const String _firstPartyAuthors = 'The Flutter Authors';
|
||||
|
||||
// The exact format of the BSD license that our license files should contain.
|
||||
// Slight variants are not accepted because they may prevent consolidation in
|
||||
@ -129,7 +123,7 @@ class LicenseCheckCommand extends PluginCommand {
|
||||
p.basename(file.basename) == 'LICENSE' && !_isThirdParty(file));
|
||||
|
||||
final bool copyrightCheckSucceeded = await _checkCodeLicenses(codeFiles);
|
||||
print('\n=======================================\n');
|
||||
_print('\n=======================================\n');
|
||||
final bool licenseCheckSucceeded =
|
||||
await _checkLicenseFiles(firstPartyLicenseFiles);
|
||||
|
||||
@ -170,7 +164,7 @@ class LicenseCheckCommand extends PluginCommand {
|
||||
continue;
|
||||
}
|
||||
final String author = copyright.group(1);
|
||||
if (!_firstPartyAuthors.contains(author) && !_isThirdParty(file)) {
|
||||
if (author != _firstPartyAuthors && !_isThirdParty(file)) {
|
||||
misplacedThirdPartyFiles.add(file);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user