Merge pull request #14 from srawlins/more-rules
Bump new rules enforced in Google
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 430803c..2a12c4e 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 @@
- 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 @@
- 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 <misc@dartlang.org>
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'