From 3d225d6db024cf5c35234ba5965dbd3949ed1d5c Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Thu, 14 Feb 2019 13:15:21 -0800 Subject: [PATCH 1/2] Bump new rules enforced in Google --- CHANGELOG.md | 13 +++++++++++++ lib/analysis_options.yaml | 5 ++++- pubspec.yaml | 4 ++-- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 430803c..f374d7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +## 1.5.0 + +- Enforce three new lint rules: + - `[avoid_shadowing_type_parameters]`, + - `[empty_constructor_bodies]`, + - `[slash_for_doc_comments]` - Violations can be cleaned up with + [the formatter]'s `--fix-doc-comments` flag. + +[avoid_shadowing_type_parameters]: http://dart-lang.github.io/linter/lints/avoid_shadowing_type_parameters.html +[empty_constructor_bodies]: http://dart-lang.github.io/linter/lints/empty_constructor_bodies.html +[slash_for_doc_comments]: http://dart-lang.github.io/linter/lints/slash_for_doc_comments.html +[the formatter]: https://github.com/dart-lang/dart_style#style-fixes + ## 1.4.0 - Enforce `avoid_init_to_null` and `null_closures`. diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 02c6d8b..ab3ac09 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -11,7 +11,9 @@ linter: - avoid_init_to_null - avoid_relative_lib_imports - avoid_return_types_on_setters + - avoid_shadowing_type_parameters - avoid_types_as_parameter_names + - empty_constructor_bodies - no_duplicate_case_values - null_closures - prefer_contains @@ -19,7 +21,8 @@ linter: - prefer_is_empty - prefer_is_not_empty - recursive_getters + - slash_for_doc_comments + - unawaited_futures - unrelated_type_equality_checks - use_rethrow_when_possible - - unawaited_futures - valid_regexps diff --git a/pubspec.yaml b/pubspec.yaml index 84fee05..c1a5caf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ name: pedantic -version: 1.4.0 +version: 1.5.0 description: How to get the most value from Dart static analysis. author: Dart Team homepage: https://github.com/dart-lang/pedantic environment: - sdk: '>=2.0.0 <3.0.0' + sdk: '>=2.1.1-dev.0.0 <3.0.0' From c92a74349a12303f2d3593ad2d66055b395e29d3 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Mon, 18 Feb 2019 14:24:10 -0800 Subject: [PATCH 2/2] Fix md --- CHANGELOG.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f374d7d..2a12c4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,14 @@ ## 1.5.0 - Enforce three new lint rules: - - `[avoid_shadowing_type_parameters]`, - - `[empty_constructor_bodies]`, - - `[slash_for_doc_comments]` - Violations can be cleaned up with + - [`avoid_shadowing_type_parameters`], + - [`empty_constructor_bodies`], + - [`slash_for_doc_comments`] - Violations can be cleaned up with [the formatter]'s `--fix-doc-comments` flag. -[avoid_shadowing_type_parameters]: http://dart-lang.github.io/linter/lints/avoid_shadowing_type_parameters.html -[empty_constructor_bodies]: http://dart-lang.github.io/linter/lints/empty_constructor_bodies.html -[slash_for_doc_comments]: http://dart-lang.github.io/linter/lints/slash_for_doc_comments.html +[`avoid_shadowing_type_parameters`]: http://dart-lang.github.io/linter/lints/avoid_shadowing_type_parameters.html +[`empty_constructor_bodies`]: http://dart-lang.github.io/linter/lints/empty_constructor_bodies.html +[`slash_for_doc_comments`]: http://dart-lang.github.io/linter/lints/slash_for_doc_comments.html [the formatter]: https://github.com/dart-lang/dart_style#style-fixes ## 1.4.0