Skip to content

Commit be34b0b

Browse files
Centralize analysis options (flutter#957)
1 parent bdf7ad3 commit be34b0b

File tree

39 files changed

+157
-697
lines changed

39 files changed

+157
-697
lines changed
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml

analysis_options.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
analyzer:
4+
strong-mode:
5+
implicit-casts: false
6+
implicit-dynamic: false
7+
8+
linter:
9+
rules:
10+
avoid_types_on_closure_parameters: true
11+
avoid_void_async: true
12+
cancel_subscriptions: true
13+
close_sinks: true
14+
directives_ordering: true
15+
package_api_docs: true
16+
package_prefixed_library_names: true
17+
test_types_in_equals: true
18+
throw_in_finally: true
19+
unnecessary_statements: true
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../analysis_options.yaml

animations/analysis_options.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
1+
include: ../analysis_options.yaml
72

83
linter:
94
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
155
# Required because of the numbered sources in lib/src/basics
166
file_names: false
17-
package_api_docs: true
18-
package_prefixed_library_names: true
19-
test_types_in_equals: true
20-
throw_in_finally: true
21-
unnecessary_statements: true
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../../analysis_options.yaml
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1-
include: package:flutter_lints/flutter.yaml
1+
include: ../../analysis_options.yaml
22

33
analyzer:
44
exclude:
55
- lib/model/rule.g.dart
66
- test/widget_test.mocks.dart
7-
strong-mode:
8-
implicit-casts: false
9-
implicit-dynamic: false
10-
11-
linter:
12-
rules:
13-
avoid_types_on_closure_parameters: true
14-
avoid_void_async: true
15-
cancel_subscriptions: true
16-
close_sinks: true
17-
directives_ordering: true
18-
package_api_docs: true
19-
package_prefixed_library_names: true
20-
test_types_in_equals: true
21-
throw_in_finally: true
22-
unnecessary_statements: true
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../../analysis_options.yaml
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_api_docs: true
16-
package_prefixed_library_names: true
17-
test_types_in_equals: true
18-
throw_in_finally: true
19-
unnecessary_statements: true
1+
include: ../analysis_options.yaml

0 commit comments

Comments
 (0)