mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
acbbfd60fb
In a recent change I added a new value to an enum and had no easy way to statically find all the switches where I might need to handle that new enum value. Instead I had to wait for runtime errors (or worse-yet incorrect generated code) to find what I had missed. Though it may be add a little inconvience to now allow "default" cases, the static warnings/checks it provides are worth it. Change-Id: I2347bcec77ee8bc0a5618ea4dbc6e0840bdf2f6c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/343321 Commit-Queue: Nate Biggs <natebiggs@google.com> Reviewed-by: Mayank Patke <fishythefish@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
22 lines
640 B
YAML
22 lines
640 B
YAML
# Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
analyzer:
|
|
errors:
|
|
todo: ignore
|
|
# Allow deprecated calls from within the same package
|
|
deprecated_member_use_from_same_package: ignore
|
|
illegal_language_version_override: ignore
|
|
|
|
linter:
|
|
rules:
|
|
- annotate_overrides
|
|
- avoid_dynamic_calls
|
|
- prefer_final_fields
|
|
- prefer_if_null_operators
|
|
- prefer_null_aware_operators
|
|
- use_super_parameters
|
|
- exhaustive_cases
|
|
- no_default_cases
|