Skip to content

Commit 00559e0

Browse files
Merge pull request #198 from Workiva/add-nnbd-lints
Add NNBD-related lints
2 parents d0a0fe5 + f3a663b commit 00559e0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/v1.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ analyzer:
102102
camel_case_extensions: warning
103103
camel_case_types: warning
104104
cancel_subscriptions: warning
105+
cast_nullable_to_non_nullable: warning
105106
close_sinks: warning
106107
empty_catches: warning
107108
empty_constructor_bodies: warning
@@ -115,6 +116,7 @@ analyzer:
115116
list_remove_unrelated_type: warning
116117
no_adjacent_strings_in_list: warning
117118
no_duplicate_case_values: warning
119+
null_check_on_nullable_type_parameter: warning
118120
null_closures: warning
119121
only_throw_errors: warning
120122
prefer_contains: warning
@@ -125,6 +127,7 @@ analyzer:
125127
prefer_is_not_empty: warning
126128
recursive_getters: warning
127129
slash_for_doc_comments: warning
130+
tighten_type_of_initializing_formals: warning
128131
type_init_formals: warning
129132
unnecessary_const: warning
130133
unnecessary_new: warning
@@ -156,6 +159,7 @@ linter:
156159
- camel_case_extensions
157160
- camel_case_types
158161
- cancel_subscriptions
162+
- cast_nullable_to_non_nullable
159163
- close_sinks
160164
- empty_catches
161165
- empty_constructor_bodies
@@ -169,6 +173,7 @@ linter:
169173
- list_remove_unrelated_type
170174
- no_adjacent_strings_in_list
171175
- no_duplicate_case_values
176+
- null_check_on_nullable_type_parameter
172177
- null_closures
173178
- only_throw_errors
174179
- prefer_contains
@@ -179,6 +184,7 @@ linter:
179184
- prefer_is_not_empty
180185
- recursive_getters
181186
- slash_for_doc_comments
187+
- tighten_type_of_initializing_formals
182188
- type_init_formals
183189
- unnecessary_const
184190
- unnecessary_new

lib/v2.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ analyzer:
113113
camel_case_extensions: warning
114114
camel_case_types: warning
115115
cancel_subscriptions: warning
116+
cast_nullable_to_non_nullable: warning
116117
close_sinks: warning
117118
empty_catches: warning
118119
empty_constructor_bodies: warning
@@ -126,6 +127,7 @@ analyzer:
126127
list_remove_unrelated_type: warning
127128
no_adjacent_strings_in_list: warning
128129
no_duplicate_case_values: warning
130+
null_check_on_nullable_type_parameter: warning
129131
null_closures: warning
130132
only_throw_errors: warning
131133
prefer_contains: warning
@@ -136,6 +138,7 @@ analyzer:
136138
prefer_is_not_empty: warning
137139
recursive_getters: warning
138140
slash_for_doc_comments: warning
141+
tighten_type_of_initializing_formals: warning
139142
type_init_formals: warning
140143
unnecessary_const: warning
141144
unnecessary_new: warning
@@ -171,6 +174,7 @@ linter:
171174
- camel_case_extensions
172175
- camel_case_types
173176
- cancel_subscriptions
177+
- cast_nullable_to_non_nullable
174178
- close_sinks
175179
- empty_catches
176180
- empty_constructor_bodies
@@ -184,6 +188,7 @@ linter:
184188
- list_remove_unrelated_type
185189
- no_adjacent_strings_in_list
186190
- no_duplicate_case_values
191+
- null_check_on_nullable_type_parameter
187192
- null_closures
188193
- only_throw_errors
189194
- prefer_contains
@@ -194,6 +199,7 @@ linter:
194199
- prefer_is_not_empty
195200
- recursive_getters
196201
- slash_for_doc_comments
202+
- tighten_type_of_initializing_formals
197203
- type_init_formals
198204
- unnecessary_const
199205
- unnecessary_new

0 commit comments

Comments
 (0)