Skip to content

Commit 17484a8

Browse files
authored
[jnigen] clean up analysis option files (#2412)
1 parent 9849007 commit 17484a8

File tree

12 files changed

+6
-187
lines changed

12 files changed

+6
-187
lines changed

pkgs/jni/analysis_options.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
include: package:dart_flutter_team_lints/analysis_options.yaml
22

33
analyzer:
4-
errors:
5-
todo: ignore
64
exclude: [build/**, third_party/**]
75
language:
8-
strict-casts: true
9-
strict-inference: true
106
strict-raw-types: true
117

128
linter:
139
rules:
14-
dangling_library_doc_comments: true
1510
prefer_final_locals: true
1611
prefer_const_declarations: true
Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

123
analyzer:
@@ -15,22 +6,9 @@ analyzer:
156
strict-raw-types: true
167

178
linter:
18-
# The lint rules applied to this project can be customized in the
19-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
20-
# included above or to enable additional rules. A list of all available lints
21-
# and their documentation is published at
22-
# https://dart-lang.github.io/linter/lints/index.html.
23-
#
24-
# Instead of disabling a lint rule for the entire project in the
25-
# section below, it can also be suppressed for a single line of code
26-
# or a specific dart file by using the `// ignore: name_of_lint` and
27-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
28-
# producing the lint.
299
rules:
30-
- dangling_library_doc_comments
3110
- prefer_final_locals
3211
- prefer_const_declarations
33-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
34-
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
12+
3513
# Additional information about this file can be found at
3614
# https://dart.dev/guides/language/analysis-options

pkgs/jnigen/analysis_options.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@
55
include: package:dart_flutter_team_lints/analysis_options.yaml
66

77
analyzer:
8-
errors:
9-
todo: ignore
108
exclude: [build/**, example/**]
119
language:
12-
strict-casts: true
13-
strict-inference: true
1410
strict-raw-types: true
1511

1612
linter:
1713
rules:
18-
dangling_library_doc_comments: true
1914
prefer_final_locals: true
2015
prefer_const_declarations: true
Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

12-
linter:
13-
# The lint rules applied to this project can be customized in the
14-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15-
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
18-
#
19-
# Instead of disabling a lint rule for the entire project in the
20-
# section below, it can also be suppressed for a single line of code
21-
# or a specific dart file by using the `// ignore: name_of_lint` and
22-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23-
# producing the lint.
24-
rules:
25-
- dangling_library_doc_comments
26-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
27-
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
283
# Additional information about this file can be found at
294
# https://dart.dev/guides/language/analysis-options
Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

12-
linter:
13-
# The lint rules applied to this project can be customized in the
14-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15-
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
18-
#
19-
# Instead of disabling a lint rule for the entire project in the
20-
# section below, it can also be suppressed for a single line of code
21-
# or a specific dart file by using the `// ignore: name_of_lint` and
22-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23-
# producing the lint.
24-
rules:
25-
- dangling_library_doc_comments
26-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
27-
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
283
# Additional information about this file can be found at
294
# https://dart.dev/guides/language/analysis-options
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
include: package:flutter_lints/flutter.yaml
2+
3+
# For additional information about configuring this file, see
4+
# https://dart.dev/guides/language/analysis-options
Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

12-
linter:
13-
# The lint rules applied to this project can be customized in the
14-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15-
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
18-
#
19-
# Instead of disabling a lint rule for the entire project in the
20-
# section below, it can also be suppressed for a single line of code
21-
# or a specific dart file by using the `// ignore: name_of_lint` and
22-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23-
# producing the lint.
24-
rules:
25-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26-
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27-
283
# Additional information about this file can be found at
294
# https://dart.dev/guides/language/analysis-options
Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

12-
linter:
13-
# The lint rules applied to this project can be customized in the
14-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15-
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
18-
#
19-
# Instead of disabling a lint rule for the entire project in the
20-
# section below, it can also be suppressed for a single line of code
21-
# or a specific dart file by using the `// ignore: name_of_lint` and
22-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23-
# producing the lint.
24-
rules:
25-
- dangling_library_doc_comments
26-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
27-
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
283
# Additional information about this file can be found at
294
# https://dart.dev/guides/language/analysis-options
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include: package:flutter_lints/flutter.yaml
1+
include: package:lints/recommended.yaml
22

33
# Additional information about this file can be found at
44
# https://dart.dev/guides/language/analysis-options
Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,4 @@
1-
# This file configures the static analysis results for your project (errors,
2-
# warnings, and lints).
3-
#
4-
# This enables the 'recommended' set of lints from `package:lints`.
5-
# This set helps identify many issues that may lead to problems when running
6-
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
7-
# style and format.
8-
#
9-
# If you want a smaller set of lints you can change this to specify
10-
# 'package:lints/core.yaml'. These are just the most critical lints
11-
# (the recommended set includes the core lints).
12-
# The core lints are also what is used by pub.dev for scoring packages.
13-
141
include: package:lints/recommended.yaml
152

16-
# Uncomment the following section to specify additional rules.
17-
18-
linter:
19-
rules:
20-
- dangling_library_doc_comments
21-
# - camel_case_types
22-
23-
# analyzer:
24-
# exclude:
25-
# - path/to/excluded/files/**
26-
27-
# For more information about the core and recommended set of lints, see
28-
# https://dart.dev/go/core-lints
29-
303
# For additional information about configuring this file, see
314
# https://dart.dev/guides/language/analysis-options

0 commit comments

Comments
 (0)