Skip to content

Commit ad6ae81

Browse files
authored
[ffigen] Remove unnecessary ignore_for_files (#2747)
FFIgen automatically generates `// ignore_for_file: type=lint`, so manually specifying additional lints to ignore has no further effect. This PR cleans up those additional ignores.
1 parent efb2c2c commit ad6ae81

File tree

22 files changed

+18
-63
lines changed

22 files changed

+18
-63
lines changed

pkgs/ffigen/analysis_options.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ analyzer:
1010

1111
# Exclude anything that uses package:objective_c, due to flutter dependency.
1212
# https://github.com/dart-lang/native/issues/1068
13-
- example/objective_c/**
14-
- example/swift/**
1513
- test_flutter/native_objc_test/**
1614
- test/native_objc_test/**
1715
language:

pkgs/ffigen/example/c_json/cjson_generated_bindings.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1919
// THE SOFTWARE.
2020

21-
// ignore_for_file: camel_case_types, non_constant_identifier_names
2221
// AUTO GENERATED FILE, DO NOT EDIT.
2322
//
2423
// Generated by `package:ffigen`.

pkgs/ffigen/example/c_json/config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,3 @@ preamble: |
2929
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3030
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3131
// THE SOFTWARE.
32-
33-
// ignore_for_file: camel_case_types, non_constant_identifier_names

pkgs/ffigen/example/ffinative/config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ preamble: |
1313
// for details. All rights reserved. Use of this source code is governed by a
1414
// BSD-style license that can be found in the LICENSE file.
1515
16-
// ignore_for_file: deprecated_member_use
1716
functions:
1817
symbol-address:
1918
include:

pkgs/ffigen/example/ffinative/lib/generated_bindings.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// ignore_for_file: deprecated_member_use
6-
75
// AUTO GENERATED FILE, DO NOT EDIT.
86
//
97
// Generated by `package:ffigen`.

pkgs/ffigen/example/libclang-example/config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,3 @@ preamble: |
7272
// Exceptions.
7373
// See https://llvm.org/LICENSE.txt for license information.
7474
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
75-
76-
// ignore_for_file: camel_case_types, non_constant_identifier_names

pkgs/ffigen/example/libclang-example/generated_bindings.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See https://llvm.org/LICENSE.txt for license information.
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

6-
// ignore_for_file: camel_case_types, non_constant_identifier_names
7-
86
// AUTO GENERATED FILE, DO NOT EDIT.
97
//
108
// Generated by `package:ffigen`.

pkgs/ffigen/example/objective_c/avf_audio_bindings.dart

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// ignore_for_file: camel_case_types
6-
// ignore_for_file: non_constant_identifier_names
7-
// ignore_for_file: unused_element
8-
// ignore_for_file: unused_field
5+
// TODO(https://github.com/dart-lang/native/issues/2748): Remove this ignore.
96
// ignore_for_file: unused_import
10-
// ignore_for_file: void_checks
11-
// ignore_for_file: annotate_overrides
12-
// ignore_for_file: no_leading_underscores_for_local_identifiers
13-
// ignore_for_file: library_private_types_in_public_api
147

158
// AUTO GENERATED FILE, DO NOT EDIT.
169
//

pkgs/ffigen/example/objective_c/generate_code.dart

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,8 @@ final config = FfiGenerator(
3535
// for details. All rights reserved. Use of this source code is governed by a
3636
// BSD-style license that can be found in the LICENSE file.
3737
38-
// ignore_for_file: camel_case_types
39-
// ignore_for_file: non_constant_identifier_names
40-
// ignore_for_file: unused_element
41-
// ignore_for_file: unused_field
38+
// TODO(https://github.com/dart-lang/native/issues/2748): Remove this ignore.
4239
// ignore_for_file: unused_import
43-
// ignore_for_file: void_checks
44-
// ignore_for_file: annotate_overrides
45-
// ignore_for_file: no_leading_underscores_for_local_identifiers
46-
// ignore_for_file: library_private_types_in_public_api
4740
''',
4841
),
4942
);

pkgs/ffigen/example/objective_c/play_audio.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'dart:ffi';
6+
67
import 'package:objective_c/objective_c.dart';
7-
import 'avf_audio_bindings.dart';
88

99
// TODO(https://github.com/dart-lang/native/issues/1068): Remove this.
10-
import '../../../objective_c/test/setup.dart' as objCSetup;
10+
import '../../../objective_c/test/setup.dart' as objc_setup;
11+
import 'avf_audio_bindings.dart';
1112

1213
const _dylibPath =
1314
'/System/Library/Frameworks/AVFAudio.framework/Versions/Current/AVFAudio';
1415

1516
void main(List<String> args) async {
16-
objCSetup.main([]);
17+
objc_setup.main([]);
1718
DynamicLibrary.open(_dylibPath);
1819
for (final file in args) {
1920
final fileStr = NSString(file);

0 commit comments

Comments
 (0)