From 09d64ed8e96e537dfff7bc89dccd2b54c02989c6 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Fri, 29 Apr 2022 21:47:35 -0700 Subject: [PATCH 1/2] Update pubspec.yaml --- pubspec.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 1a72733..29eaf2c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,10 @@ name: test_reflective_loader version: 0.2.0 - description: Support for discovering tests and test suites using reflection. -homepage: https://github.com/dart-lang/test_reflective_loader +repository: https://github.com/dart-lang/test_reflective_loader environment: - sdk: '>=2.12.0-0 <3.0.0' + sdk: '>=2.12.0 <3.0.0' dependencies: test: '>=1.16.0 <2.0.0' From 0a5a1d4ced14b6eca946303632fae80d3011daf6 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Sat, 30 Apr 2022 04:58:34 +0000 Subject: [PATCH 2/2] use package:lints; update changelog --- CHANGELOG.md | 5 +++++ analysis_options.yaml | 2 +- lib/test_reflective_loader.dart | 2 +- pubspec.yaml | 3 ++- test/test_reflective_loader_test.dart | 2 ++ 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb0f5ab..0395858 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.2.1-dev + +- Use package:lints for analysis. +- Populate the pubspec `repository` field. + ## 0.2.0 - Stable null safety release. diff --git a/analysis_options.yaml b/analysis_options.yaml index 180004e..31466c3 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,4 +1,4 @@ -analyzer: +include: package:lints/core.yaml linter: rules: diff --git a/lib/test_reflective_loader.dart b/lib/test_reflective_loader.dart index fe78b9d..e03eb7a 100644 --- a/lib/test_reflective_loader.dart +++ b/lib/test_reflective_loader.dart @@ -278,7 +278,7 @@ Future _runTest(ClassMirror classMirror, Symbol symbol) { .whenComplete(() => _invokeSymbolIfExists(instanceMirror, #tearDown)); } -typedef dynamic _TestFunction(); +typedef _TestFunction = dynamic Function(); /** * A marker annotation used to annotate test methods which are expected to fail. diff --git a/pubspec.yaml b/pubspec.yaml index 29eaf2c..51cb753 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: test_reflective_loader -version: 0.2.0 +version: 0.2.1-dev description: Support for discovering tests and test suites using reflection. repository: https://github.com/dart-lang/test_reflective_loader @@ -7,4 +7,5 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: + lints: ^1.0.0 test: '>=1.16.0 <2.0.0' diff --git a/test/test_reflective_loader_test.dart b/test/test_reflective_loader_test.dart index 2c69cce..d303a75 100644 --- a/test/test_reflective_loader_test.dart +++ b/test/test_reflective_loader_test.dart @@ -2,6 +2,8 @@ // 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. +// ignore_for_file: non_constant_identifier_names + import 'dart:async'; import 'package:test/test.dart';