mirror of
https://github.com/flutter/packages.git
synced 2025-08-06 17:28:42 +08:00
[flutter_plugin_tools] Check 'implements' for unpublished plugins (#4273)
This commit is contained in:
@ -97,6 +97,16 @@ class PubspecCheckCommand extends PackageLoopingCommand {
|
||||
printError('$listIndentation${sectionOrder.join('\n$listIndentation')}');
|
||||
}
|
||||
|
||||
if (isPlugin) {
|
||||
final String? error = _checkForImplementsError(pubspec, package: package);
|
||||
if (error != null) {
|
||||
printError('$indentation$error');
|
||||
passing = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Ignore metadata that's only relevant for published packages if the
|
||||
// packages is not intended for publishing.
|
||||
if (pubspec.publishTo != 'none') {
|
||||
final List<String> repositoryErrors =
|
||||
_checkForRepositoryLinkErrors(pubspec, package: package);
|
||||
@ -114,15 +124,6 @@ class PubspecCheckCommand extends PackageLoopingCommand {
|
||||
'${indentation * 2}$_expectedIssueLinkFormat<package label>');
|
||||
passing = false;
|
||||
}
|
||||
|
||||
if (isPlugin) {
|
||||
final String? error =
|
||||
_checkForImplementsError(pubspec, package: package);
|
||||
if (error != null) {
|
||||
printError('$indentation$error');
|
||||
passing = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return passing;
|
||||
|
Reference in New Issue
Block a user