Skip to content

Commit b7308d7

Browse files
authored
Merge pull request flutter#14 from srawlins/more-rules
Bump new rules enforced in Google
2 parents b440df4 + c92a743 commit b7308d7

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 1.5.0
2+
3+
- Enforce three new lint rules:
4+
- [`avoid_shadowing_type_parameters`],
5+
- [`empty_constructor_bodies`],
6+
- [`slash_for_doc_comments`] - Violations can be cleaned up with
7+
[the formatter]'s `--fix-doc-comments` flag.
8+
9+
[`avoid_shadowing_type_parameters`]: http://dart-lang.github.io/linter/lints/avoid_shadowing_type_parameters.html
10+
[`empty_constructor_bodies`]: http://dart-lang.github.io/linter/lints/empty_constructor_bodies.html
11+
[`slash_for_doc_comments`]: http://dart-lang.github.io/linter/lints/slash_for_doc_comments.html
12+
[the formatter]: https://github.com/dart-lang/dart_style#style-fixes
13+
114
## 1.4.0
215

316
- Enforce `avoid_init_to_null` and `null_closures`.

lib/analysis_options.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ linter:
1111
- avoid_init_to_null
1212
- avoid_relative_lib_imports
1313
- avoid_return_types_on_setters
14+
- avoid_shadowing_type_parameters
1415
- avoid_types_as_parameter_names
16+
- empty_constructor_bodies
1517
- no_duplicate_case_values
1618
- null_closures
1719
- prefer_contains
1820
- prefer_equal_for_default_values
1921
- prefer_is_empty
2022
- prefer_is_not_empty
2123
- recursive_getters
24+
- slash_for_doc_comments
25+
- unawaited_futures
2226
- unrelated_type_equality_checks
2327
- use_rethrow_when_possible
24-
- unawaited_futures
2528
- valid_regexps

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: pedantic
2-
version: 1.4.0
2+
version: 1.5.0
33
description: How to get the most value from Dart static analysis.
44
author: Dart Team <misc@dartlang.org>
55
homepage: https://github.com/dart-lang/pedantic
66

77
environment:
8-
sdk: '>=2.0.0 <3.0.0'
8+
sdk: '>=2.1.1-dev.0.0 <3.0.0'

0 commit comments

Comments
 (0)