Merge pull request #35 from davidmorgan/add-lints

Add newly enforced lints for 1.9.0, release.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 05399aa..a15b3d0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,47 @@
+## 1.9.0
+
+- Enforce 17 new lint rules:
+
+  - [`always_declare_return_types`]
+  - [`always_require_non_null_named_parameters`]
+  - [`annotate_overrides`]
+  - [`avoid_null_checks_in_equality_operators`]
+  - [`camel_case_extensions`]
+  - [`omit_local_variable_types`]
+  - [`prefer_adjacent_string_concatenation`]
+  - [`prefer_collection_literals`]
+  - [`prefer_conditional_assignment`]
+  - [`prefer_final_fields`]
+  - [`prefer_for_elements_to_map_fromIterable`]
+  - [`prefer_generic_function_type_aliases`]
+  - [`prefer_if_null_operators`]
+  - [`prefer_single_quotes`]
+  - [`prefer_spread_collections`]
+  - [`unnecessary_this`]
+  - [`use_function_type_syntax_for_parameters`]
+
+- Mark a number of lints unused, see `README.md` for details.
+
+[`always_declare_return_types`]: https://dart-lang.github.io/linter/lints/always_declare_return_types.html
+[`always_require_non_null_named_parameters`]: https://dart-lang.github.io/linter/lints/always_require_non_null_named_parameters.html
+[`annotate_overrides`]: https://dart-lang.github.io/linter/lints/annotate_overrides.html
+[`avoid_null_checks_in_equality_operators`]: https://dart-lang.github.io/linter/lints/avoid_null_checks_in_equality_operators.html
+[`camel_case_extensions`]: https://dart-lang.github.io/linter/lints/camel_case_extensions.html
+[`omit_local_variable_types`]: https://dart-lang.github.io/linter/lints/omit_local_variable_types.html
+[`prefer_adjacent_string_concatenation`]: https://dart-lang.github.io/linter/lints/prefer_adjacent_string_concatenation.html
+[`prefer_collection_literals`]: https://dart-lang.github.io/linter/lints/prefer_collection_literals.html
+[`prefer_conditional_assignment`]: https://dart-lang.github.io/linter/lints/prefer_conditional_assignment.html
+[`prefer_final_fields`]: https://dart-lang.github.io/linter/lints/prefer_final_fields.html
+[`prefer_for_elements_to_map_fromIterable`]: https://dart-lang.github.io/linter/lints/prefer_for_elements_to_map_fromIterable.html
+[`prefer_generic_function_type_aliases`]: https://dart-lang.github.io/linter/lints/prefer_generic_function_type_aliases.html
+[`prefer_if_null_operators`]: https://dart-lang.github.io/linter/lints/prefer_if_null_operators.html
+[`prefer_single_quotes`]: https://dart-lang.github.io/linter/lints/prefer_single_quotes.html
+[`prefer_spread_collections`]: https://dart-lang.github.io/linter/lints/prefer_spread_collections.html
+[`unnecessary_this`]: https://dart-lang.github.io/linter/lints/unnecessary_this.html
+[`use_function_type_syntax_for_parameters`]: https://dart-lang.github.io/linter/lints/use_function_type_syntax_for_parameters.html
+
 ## 1.8.0
+
 - Enforce three new lint rules:
 
   - [`prefer_iterable_whereType`]
diff --git a/lib/analysis_options.1.9.0.yaml b/lib/analysis_options.1.9.0.yaml
new file mode 100644
index 0000000..909283b
--- /dev/null
+++ b/lib/analysis_options.1.9.0.yaml
@@ -0,0 +1,54 @@
+# Copyright (c) 2019, the Dart project authors.  Please see the AUTHORS file
+# 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.
+#
+# Google internally enforced rules. See README.md for more information,
+# including a list of lints that are intentionally _not_ enforced.
+
+linter:
+  rules:
+    - always_declare_return_types
+    - always_require_non_null_named_parameters
+    - annotate_overrides
+    - avoid_empty_else
+    - avoid_init_to_null
+    - avoid_null_checks_in_equality_operators
+    - avoid_relative_lib_imports
+    - avoid_return_types_on_setters
+    - avoid_shadowing_type_parameters
+    - avoid_types_as_parameter_names
+    - camel_case_extensions
+    - curly_braces_in_flow_control_structures
+    - empty_catches
+    - empty_constructor_bodies
+    - library_names
+    - library_prefixes
+    - no_duplicate_case_values
+    - null_closures
+    - omit_local_variable_types
+    - prefer_adjacent_string_concatenation
+    - prefer_collection_literals
+    - prefer_conditional_assignment
+    - prefer_contains
+    - prefer_equal_for_default_values
+    - prefer_final_fields
+    - prefer_for_elements_to_map_fromIterable
+    - prefer_generic_function_type_aliases
+    - prefer_if_null_operators
+    - prefer_is_empty
+    - prefer_is_not_empty
+    - prefer_iterable_whereType
+    - prefer_single_quotes
+    - prefer_spread_collections
+    - recursive_getters
+    - slash_for_doc_comments
+    - type_init_formals
+    - unawaited_futures
+    - unnecessary_const
+    - unnecessary_new
+    - unnecessary_null_in_if_null_operators
+    - unnecessary_this
+    - unrelated_type_equality_checks
+    - use_function_type_syntax_for_parameters
+    - use_rethrow_when_possible
+    - valid_regexps
diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml
index c8cc699..cb7021e 100644
--- a/lib/analysis_options.yaml
+++ b/lib/analysis_options.yaml
@@ -10,4 +10,4 @@
 # whenever a new version of `package:pedantic` is released. To avoid this,
 # specify a specific version of `analysis_options.yaml` instead.
 
-include: package:pedantic/analysis_options.1.8.0.yaml
+include: package:pedantic/analysis_options.1.9.0.yaml
diff --git a/pubspec.yaml b/pubspec.yaml
index 278d457..71d8bde 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: pedantic
-version: 1.8.0+1
+version: 1.9.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