File tree Expand file tree Collapse file tree 5 files changed +2
-223
lines changed
analysis_server/lib/src/services/correction Expand file tree Collapse file tree 5 files changed +2
-223
lines changed Original file line number Diff line number Diff line change @@ -1869,8 +1869,6 @@ LintCode.analyzer_public_api_exports_non_public_name:
18691869 status : noFix
18701870LintCode.analyzer_public_api_impl_in_public_api :
18711871 status : noFix
1872- LintCode.analyzer_use_new_elements :
1873- status : noFix
18741872LintCode.annotate_overrides :
18751873 status : hasFix
18761874LintCode.annotate_redeclares :
Original file line number Diff line number Diff line change @@ -1894,7 +1894,6 @@ class AnalysisDriver {
18941894 signature.addUint32List (_saltForResolution);
18951895 if (file.workspacePackage case PubPackage pubPackage) {
18961896 signature.addString (pubPackage.pubspecContent ?? '' );
1897- signature.addString (pubPackage.analyzerUseNewElementsContent ?? '' );
18981897 }
18991898 signature.addString (library.file.uriStr);
19001899 signature.addString (library.libraryCycle.apiSignature);
Original file line number Diff line number Diff line change @@ -416,9 +416,6 @@ class PubPackage extends WorkspacePackage {
416416
417417 final String ? pubspecContent;
418418
419- // TODO(scheglov): remove when we are done migrating
420- final String ? analyzerUseNewElementsContent;
421-
422419 final Pubspec ? pubspec;
423420
424421 final File pubspecFile;
@@ -446,11 +443,6 @@ class PubPackage extends WorkspacePackage {
446443 pubspecFile,
447444 pubspec,
448445 packageName,
449- analyzerUseNewElementsContent: _fileContentOrNull (
450- pubspecFile.parent.getChildAssumingFile (
451- 'analyzer_use_new_elements.txt' ,
452- ),
453- ),
454446 );
455447 }
456448
@@ -460,9 +452,8 @@ class PubPackage extends WorkspacePackage {
460452 this .pubspecContent,
461453 this .pubspecFile,
462454 this .pubspec,
463- this ._name, {
464- required this .analyzerUseNewElementsContent,
465- });
455+ this ._name,
456+ );
466457
467458 /// The version range for the SDK specified for this package , or `null` if
468459 /// it is ill-formatted or not set.
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import 'rules/always_require_non_null_named_parameters.dart';
1212import 'rules/always_specify_types.dart' ;
1313import 'rules/always_use_package_imports.dart' ;
1414import 'rules/analyzer_public_api.dart' ;
15- import 'rules/analyzer_use_new_elements.dart' ;
1615import 'rules/annotate_overrides.dart' ;
1716import 'rules/annotate_redeclares.dart' ;
1817import 'rules/avoid_annotating_with_dynamic.dart' ;
@@ -265,7 +264,6 @@ void registerLintRules() {
265264 ..registerLintRule (AlwaysSpecifyTypes ())
266265 ..registerLintRule (AlwaysUsePackageImports ())
267266 ..registerLintRule (AnalyzerPublicApi ())
268- ..registerLintRule (AnalyzerUseNewElements ())
269267 ..registerLintRule (AnnotateOverrides ())
270268 ..registerLintRule (AnnotateRedeclares ())
271269 ..registerLintRule (AvoidAnnotatingWithDynamic ())
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments