Files
sdk/pkg/compiler/analysis_options.yaml
T
Stephen Adams 33ed2d83ab [dart2js] Add lints
Add `unneccessary_statements`.

Add `unneccesary_ignore` so we can better maintain the ignores.

Change-Id: I50303be70fd6dbc14bdf0c5f0af9e58a1c6ec042
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/420464
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
2025-04-04 15:06:36 -07:00

24 lines
669 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
language:
strict-inference: true
strict-raw-types: true
include: package:lints/recommended.yaml
linter:
rules:
- always_declare_return_types
- avoid_dynamic_calls
- no_default_cases
- unnecessary_ignore
- unnecessary_statements