dart-sdk/pkg/analyzer_plugin/analysis_options.yaml
Paul Berry 701cd77844 Ignore TODO in pkg/analyzer_plugin.
The analyzer team has decided to adopt the convention of using `TODO`
comments to document long term issues that should persist in the
codebase, and `FIXME` comments to document short term issues that need
immediate attention.  They may even consider adding a presubmit hook
to ensure that `FIXME` comments are only used during local
development.

Accordingly, it makes sense to suppress `TODO` comments from being
surfaced to the IDE "problems" view (since there are hundreds of them,
and they're not immediately actionable).  This makes VSCode's
"problems" view much more usable in "tree" mode.

(See also https://dart-review.googlesource.com/c/sdk/+/295662, which
made the corresponding change to the `analysis_server` and `analyzer`
packages, and https://dart-review.googlesource.com/c/sdk/+/325121,
which made the corresponding change to the `linter` package).

Change-Id: Ifbd2f6bed468408b1906b25ab94f745eed0b3e55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358980
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-03-21 16:38:11 +00:00

27 lines
649 B
YAML

include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
errors:
todo: ignore
# Remove from lints/recommended:
constant_identifier_names: ignore
implementation_imports: ignore
non_constant_identifier_names: ignore
# Existing violations (3)
library_private_types_in_public_api: ignore
linter:
rules:
- always_declare_return_types
- enable_null_safety
- flutter_style_todos
- library_annotations
- omit_local_variable_types
- prefer_single_quotes
- unawaited_futures
- unnecessary_library_directive
- unnecessary_parenthesis
- unreachable_from_main