Skip to content

Commit

Permalink
Check cc files (#123704)
Browse files Browse the repository at this point in the history
Check cc files
  • Loading branch information
goderbauer authored Mar 29, 2023
1 parent fa01649 commit 42f61b3
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev/bots/analyze.dart
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ Future<void> verifyNoMissingLicense(String workingDirectory, { bool checkMinimum
await _verifyNoMissingLicenseForExtension(workingDirectory, 'java', overrideMinimumMatches ?? 39, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'h', overrideMinimumMatches ?? 30, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'm', overrideMinimumMatches ?? 30, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'cc', overrideMinimumMatches ?? 10, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'cpp', overrideMinimumMatches ?? 0, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'swift', overrideMinimumMatches ?? 10, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'gradle', overrideMinimumMatches ?? 80, _generateLicense('// '));
Expand Down Expand Up @@ -2073,8 +2074,10 @@ bool _isGeneratedPluginRegistrant(File file) {
final String filename = path.basename(file.path);
return !file.path.contains('.pub-cache')
&& (filename == 'GeneratedPluginRegistrant.java' ||
filename == 'GeneratedPluginRegistrant.swift' ||
filename == 'GeneratedPluginRegistrant.h' ||
filename == 'GeneratedPluginRegistrant.m' ||
filename == 'generated_plugin_registrant.dart' ||
filename == 'generated_plugin_registrant.h');
filename == 'generated_plugin_registrant.h' ||
filename == 'generated_plugin_registrant.cc');
}
4 changes: 4 additions & 0 deletions dev/integration_tests/flutter_gallery/linux/main.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 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.

#include "my_application.h"

int main(int argc, char** argv) {
Expand Down
4 changes: 4 additions & 0 deletions dev/integration_tests/flutter_gallery/linux/my_application.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 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.

#include "my_application.h"

#include <flutter_linux/flutter_linux.h>
Expand Down
4 changes: 4 additions & 0 deletions dev/integration_tests/ui/linux/main.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 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.

#include "my_application.h"

int main(int argc, char** argv) {
Expand Down
4 changes: 4 additions & 0 deletions dev/integration_tests/ui/linux/my_application.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 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.

#include "my_application.h"

#include <flutter_linux/flutter_linux.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/api/linux/main.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 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.

#include "my_application.h"

int main(int argc, char** argv) {
Expand Down
4 changes: 4 additions & 0 deletions examples/api/linux/my_application.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 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.

#include "my_application.h"

#include <flutter_linux/flutter_linux.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/hello_world/linux/main.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 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.

#include "my_application.h"

int main(int argc, char** argv) {
Expand Down
4 changes: 4 additions & 0 deletions examples/platform_channel/linux/main.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 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.

#include "my_application.h"

int main(int argc, char** argv) {
Expand Down

0 comments on commit 42f61b3

Please sign in to comment.