95b1b8d756
(Part of https://github.com/dart-lang/sdk/issues/63288) This change migrates the front_end package to use the new constructor declaration syntax, described in https://github.com/dart-lang/language/blob/main/accepted/future-releases/primary-constructors/feature-specification.md#abbreviations-of-in-body-constructor-declarations. This change was performed in an automated fashion, by (a) enabling the lints `unnecessary_type_name_in_constructor` and `unnecessary_const_in_enum_constructor`, (b) fixing the resulting lint failures using `dart fix`, and then (c) reformatting the affected files. To ease code review, I've reverted unrelated formatting changes. Change-Id: I6b48c0f1c762c3fa132fbd79382496ca6a6a6964 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/508368 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
31 lines
932 B
YAML
31 lines
932 B
YAML
# Copyright (c) 2019, 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.
|
|
|
|
include: analysis_options_no_lints.yaml
|
|
|
|
analyzer:
|
|
errors:
|
|
illegal_language_version_override: ignore
|
|
|
|
linter:
|
|
rules:
|
|
- unnecessary_type_name_in_constructor
|
|
- unnecessary_const_in_enum_constructor
|
|
- collection_methods_unrelated_type
|
|
- curly_braces_in_flow_control_structures
|
|
- depend_on_referenced_packages
|
|
- prefer_adjacent_string_concatenation
|
|
- unawaited_futures
|
|
- avoid_void_async
|
|
- recursive_getters
|
|
- avoid_empty_else
|
|
- empty_statements
|
|
- valid_regexps
|
|
- lines_longer_than_80_chars
|
|
- unrelated_type_equality_checks
|
|
- annotate_overrides
|
|
- always_declare_return_types
|
|
- deprecated_member_use_from_same_package
|
|
# - always_specify_types
|