mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![Paul Berry](/assets/img/avatar_default.png)
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. Change-Id: I11a0c59132fb98c1c86fb4adf22d1fdf3b547c80 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/295662 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
include: package:lints/recommended.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
strict-raw-types: true
|
|
exclude:
|
|
- test/mock_packages/**
|
|
errors:
|
|
# Increase the severity of the unused_import hint.
|
|
unused_import: warning
|
|
|
|
# Lints from the recommended set that conflict w/ analyzer style or will
|
|
# require some work to reach compliance.
|
|
# See: https://github.com/dart-lang/sdk/issues/48785
|
|
|
|
# We have some long test class names which include one or more underscores
|
|
# to improve readability.
|
|
camel_case_types: ignore
|
|
constant_identifier_names: ignore
|
|
file_names: ignore
|
|
# This package imports much of the implementation libraries of the
|
|
# 'analyzer' (and sometimes the '_fe_analyzer_shared' package), because it
|
|
# is tightly integrated. This will not likely change any time soon.
|
|
implementation_imports: ignore
|
|
non_constant_identifier_names: ignore
|
|
overridden_fields: ignore
|
|
prefer_void_to_null: ignore
|
|
todo: ignore
|
|
|
|
linter:
|
|
rules:
|
|
- collection_methods_unrelated_type
|
|
- dangling_library_doc_comments
|
|
- depend_on_referenced_packages
|
|
- implicit_call_tearoffs
|
|
- library_annotations
|
|
- unawaited_futures
|
|
- unnecessary_breaks
|
|
- unnecessary_library_directive
|
|
- unnecessary_parenthesis
|
|
- unreachable_from_main
|
|
- use_super_parameters
|