mirror of
https://github.com/flutter/packages.git
synced 2025-06-19 22:03:33 +08:00
Add missing licenses, and add a check (#3720)
Adds a new CI check that all code files have a copyright+license block (and that it's one we are expecting to see). Fixes the ~350 files (!) that did not have them. This includes all of the files in the .../example/ directories, following the example of flutter/flutter. (This does mean some manual intervention will be needed when generating new example directories in the future, but it's one-time per example.) Also standardized some variants that used different line breaks than most of the rest of the repo (likely added since I standardized them all a while ago, but didn't add a check for at the time to enforce going forward), to simplify the checks. Fixes flutter/flutter#77114
This commit is contained in:
@ -19,6 +19,7 @@ import 'drive_examples_command.dart';
|
||||
import 'firebase_test_lab_command.dart';
|
||||
import 'format_command.dart';
|
||||
import 'java_test_command.dart';
|
||||
import 'license_check_command.dart';
|
||||
import 'lint_podspecs_command.dart';
|
||||
import 'list_command.dart';
|
||||
import 'test_command.dart';
|
||||
@ -50,6 +51,7 @@ void main(List<String> args) {
|
||||
..addCommand(FirebaseTestLabCommand(packagesDir, fileSystem))
|
||||
..addCommand(FormatCommand(packagesDir, fileSystem))
|
||||
..addCommand(JavaTestCommand(packagesDir, fileSystem))
|
||||
..addCommand(LicenseCheckCommand(packagesDir, fileSystem))
|
||||
..addCommand(LintPodspecsCommand(packagesDir, fileSystem))
|
||||
..addCommand(ListCommand(packagesDir, fileSystem))
|
||||
..addCommand(PublishCheckCommand(packagesDir, fileSystem))
|
||||
|
Reference in New Issue
Block a user