[pkg] ignore some intentional analysis issues

Change-Id: I0838cc90113efc8749032e49da70d3ab913112d4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/249720
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
Devon Carew 2022-07-01 20:04:10 +00:00 committed by Commit Bot
parent 624dd76b6f
commit d2a3849f92
17 changed files with 25 additions and 16 deletions

View file

@ -478,7 +478,7 @@
* Deprecated `AstFactory.indexExpressionForTarget()`. Please use
`indexExpressionForTarget2` instead.
* Deprecated `ClassElement.isOrInheritsProxy` and `ClassElement.isProxy`. The
`@proxy` annotation is deprecated in the langauge, and will be removed.
`@proxy` annotation is deprecated in the language, and will be removed.
* Added new error codes: BODY_MIGHT_COMPLETE_NORMALLY,
CASE_EXPRESSION_TYPE_IS_NOT_SWITCH_EXPRESSION_SUBTYPE,
DEFINITELY_UNASSIGNED_LATE_LOCAL_VARIABLE, LATE_FINAL_LOCAL_ALREADY_ASSIGNED,

View file

@ -1,13 +0,0 @@
name: language_versioning_2.7_test
version: 1.0.0
description: >
Tests of language versioning.
Stored as a package in order to have its own package configuration
and default language version
# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none
environment:
sdk: '>=2.7.0 <3.0.0'

View file

@ -0,0 +1,8 @@
include: package:lints/recommended.yaml
analyzer:
exclude:
# These files have intentional errors.
- test/lib_ex2.7_test.dart
- test/lib_ex2.8_test.dart
- test/lib_im2.7_test.dart

View file

@ -0,0 +1,14 @@
name: language_versioning_2_7_test
version: 1.0.0
description: >
Tests of language versioning. Stored as a package in order to have its own
package configuration and default language version
# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none
environment:
sdk: '>=2.7.0 <3.0.0'
dev_dependencies:
lints: any

View file

@ -8,7 +8,7 @@
part "src/part_of_ex2.7_v_ex2.7.dart";
// Specification requires the part file to have
// the same explicit langauge version marker
// the same explicit language version marker
// as the including library,
// not just the same languge version.
part "src/part_of_ex2.7_v_im2.7.dart";

View file

@ -7,7 +7,7 @@
part "src/part_of_im2.7_v_im2.7.dart";
// Specification requires the part fsrc/ile to have
// the same explicit langauge version marker
// the same explicit language version marker
// as the including library,
// not just the same languge version.
part "src/part_of_im2.7_v_ex2.7.dart";