From 9f398fd728ceb3dab7fe340dedf18a71c1c4a950 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Tue, 19 Apr 2022 15:39:57 +0000 Subject: [PATCH] move runtime/tools/wiki/xref_extractor to package:lints Change-Id: Ifdf6419bf42baa4dc6df1b4e140e6239d379fe36 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240916 Reviewed-by: Slava Egorov Commit-Queue: Devon Carew --- .../wiki/xref_extractor/analysis_options.yaml | 15 +-------------- .../wiki/xref_extractor/lib/cquery_driver.dart | 2 +- runtime/tools/wiki/xref_extractor/pubspec.yaml | 6 +++--- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/runtime/tools/wiki/xref_extractor/analysis_options.yaml b/runtime/tools/wiki/xref_extractor/analysis_options.yaml index a686c1b456a..c36c2c5d39f 100644 --- a/runtime/tools/wiki/xref_extractor/analysis_options.yaml +++ b/runtime/tools/wiki/xref_extractor/analysis_options.yaml @@ -1,14 +1 @@ -# Defines a default set of lint rules enforced for -# projects at Google. For details and rationale, -# see https://github.com/dart-lang/pedantic#enabled-lints. -include: package:pedantic/analysis_options.yaml - -# For lint rules and documentation, see http://dart-lang.github.io/linter/lints. -# Uncomment to specify additional rules. -# linter: -# rules: -# - camel_case_types - -analyzer: -# exclude: -# - path/to/excluded/files/** +include: package:lints/core.yaml diff --git a/runtime/tools/wiki/xref_extractor/lib/cquery_driver.dart b/runtime/tools/wiki/xref_extractor/lib/cquery_driver.dart index cfc6a7b78c1..6d77d3962dc 100644 --- a/runtime/tools/wiki/xref_extractor/lib/cquery_driver.dart +++ b/runtime/tools/wiki/xref_extractor/lib/cquery_driver.dart @@ -196,5 +196,5 @@ class _JsonRpcParser { static const CH0 = 48; static const CH9 = 57; static const CR = 13; - static const LF = 10; + static const LF = 10; // ignore: unused_field } diff --git a/runtime/tools/wiki/xref_extractor/pubspec.yaml b/runtime/tools/wiki/xref_extractor/pubspec.yaml index b4e9bd0228a..ec9652d1bff 100644 --- a/runtime/tools/wiki/xref_extractor/pubspec.yaml +++ b/runtime/tools/wiki/xref_extractor/pubspec.yaml @@ -1,7 +1,7 @@ name: xref_extractor description: A sample command-line application. -# version: 1.0.0 -# homepage: https://www.example.com +# This package is not intended for consumption on pub.dev. DO NOT publish. +publish_to: none environment: sdk: '>=2.7.0 <3.0.0' @@ -10,4 +10,4 @@ dependencies: path: ^1.6.0 dev_dependencies: - pedantic: ^1.8.0 + lints: any