Adjust lint rules for experimental/web_dashboard (#820)

pull/831/head
Brett Morgan 4 years ago committed by GitHub
parent 9ad1fae51c
commit 40abd00a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,13 +7,11 @@ analyzer:
linter:
rules:
avoid_print: false
avoid_types_on_closure_parameters: true
avoid_void_async: true
cancel_subscriptions: true
close_sinks: true
directives_ordering: true
file_names: false
package_api_docs: true
package_prefixed_library_names: true
test_types_in_equals: true

@ -19,8 +19,7 @@ class FirebaseAuthService implements Auth {
Future<User> signIn() async {
try {
return await _signIn();
} on PlatformException catch (e) {
print('Unable to sign in: $e');
} on PlatformException {
throw SignInException();
}
}

@ -89,11 +89,7 @@ class _EditEntryFormState extends State<EditEntryForm> {
return null;
},
onChanged: (newValue) {
try {
widget.entry.value = int.parse(newValue);
} on FormatException {
print('Entry cannot contain "$newValue". Expected a number');
}
widget.entry.value = int.parse(newValue);
},
),
),

Loading…
Cancel
Save