Skip to content

Commit 42f61b3

Browse files
authored
Check cc files (#123704)
Check cc files
1 parent fa01649 commit 42f61b3

File tree

9 files changed

+36
-1
lines changed

9 files changed

+36
-1
lines changed

dev/bots/analyze.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ Future<void> verifyNoMissingLicense(String workingDirectory, { bool checkMinimum
606606
await _verifyNoMissingLicenseForExtension(workingDirectory, 'java', overrideMinimumMatches ?? 39, _generateLicense('// '));
607607
await _verifyNoMissingLicenseForExtension(workingDirectory, 'h', overrideMinimumMatches ?? 30, _generateLicense('// '));
608608
await _verifyNoMissingLicenseForExtension(workingDirectory, 'm', overrideMinimumMatches ?? 30, _generateLicense('// '));
609+
await _verifyNoMissingLicenseForExtension(workingDirectory, 'cc', overrideMinimumMatches ?? 10, _generateLicense('// '));
609610
await _verifyNoMissingLicenseForExtension(workingDirectory, 'cpp', overrideMinimumMatches ?? 0, _generateLicense('// '));
610611
await _verifyNoMissingLicenseForExtension(workingDirectory, 'swift', overrideMinimumMatches ?? 10, _generateLicense('// '));
611612
await _verifyNoMissingLicenseForExtension(workingDirectory, 'gradle', overrideMinimumMatches ?? 80, _generateLicense('// '));
@@ -2073,8 +2074,10 @@ bool _isGeneratedPluginRegistrant(File file) {
20732074
final String filename = path.basename(file.path);
20742075
return !file.path.contains('.pub-cache')
20752076
&& (filename == 'GeneratedPluginRegistrant.java' ||
2077+
filename == 'GeneratedPluginRegistrant.swift' ||
20762078
filename == 'GeneratedPluginRegistrant.h' ||
20772079
filename == 'GeneratedPluginRegistrant.m' ||
20782080
filename == 'generated_plugin_registrant.dart' ||
2079-
filename == 'generated_plugin_registrant.h');
2081+
filename == 'generated_plugin_registrant.h' ||
2082+
filename == 'generated_plugin_registrant.cc');
20802083
}

dev/integration_tests/flutter_gallery/linux/main.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
#include "my_application.h"
26

37
int main(int argc, char** argv) {

dev/integration_tests/flutter_gallery/linux/my_application.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
#include "my_application.h"
26

37
#include <flutter_linux/flutter_linux.h>

dev/integration_tests/ui/linux/main.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
#include "my_application.h"
26

37
int main(int argc, char** argv) {

dev/integration_tests/ui/linux/my_application.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
#include "my_application.h"
26

37
#include <flutter_linux/flutter_linux.h>

examples/api/linux/main.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
#include "my_application.h"
26

37
int main(int argc, char** argv) {

examples/api/linux/my_application.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
#include "my_application.h"
26

37
#include <flutter_linux/flutter_linux.h>

examples/hello_world/linux/main.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
#include "my_application.h"
26

37
int main(int argc, char** argv) {

examples/platform_channel/linux/main.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
#include "my_application.h"
26

37
int main(int argc, char** argv) {

0 commit comments

Comments
 (0)