Skip to content

Commit

Permalink
Merge pull request flutter#14 from srawlins/more-rules
Browse files Browse the repository at this point in the history
Bump new rules enforced in Google
  • Loading branch information
davidmorgan authored Feb 19, 2019
2 parents b440df4 + c92a743 commit b7308d7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
5 changes: 4 additions & 1 deletion lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ 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
- prefer_equal_for_default_values
- 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
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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'

0 comments on commit b7308d7

Please sign in to comment.