Skip to content

Update changelog for recent fix, use pkg:lints, prepare 2.1.2 #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ jobs:
- run: dart pub get
id: install
- run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
if: matrix.sdk == 'dev' && steps.install.outcome == 'success'
- run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'
if: matrix.sdk == 'dev' && steps.install.outcome == 'success'

- run: dart test
if: matrix.sdk != 'dev' && steps.install.outcome == 'success'

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.2

- Fix to `Quad.copy` ([#221](https://github.com/google/vector_math.dart/issues/221))

## 2.1.1

- Deprecate `hash.dart`.
Expand Down
39 changes: 13 additions & 26 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,64 +1,51 @@
include: package:pedantic/analysis_options.yaml
include: package:lints/recommended.yaml

analyzer:
errors:
non_constant_identifier_names: ignore

language:
strict-casts: true
strict-inference: true

linter:
rules:
- always_declare_return_types
- avoid_bool_literals_in_conditional_expressions
- avoid_catching_errors
- avoid_classes_with_only_static_members
- avoid_function_literals_in_foreach_calls
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- avoid_renaming_method_parameters
- avoid_returning_null_for_future
- avoid_returning_null_for_void
- avoid_returning_this
- avoid_unused_constructor_parameters
- avoid_void_async
- camel_case_types
- cancel_subscriptions
- comment_references
- constant_identifier_names
- control_flow_in_finally
- directives_ordering
- empty_statements
- file_names
- hash_and_equals
- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
- join_return_with_assignment
- list_remove_unrelated_type
- literal_only_boolean_expressions
- missing_whitespace_between_adjacent_strings
- no_adjacent_strings_in_list
- no_runtimeType_toString
- omit_local_variable_types
- only_throw_errors
- overridden_fields
- package_api_docs
- package_names
- package_prefixed_library_names
- prefer_asserts_in_initializer_lists
- prefer_const_constructors
- prefer_expression_function_bodies
- prefer_final_locals
- prefer_function_declarations_over_variables
- prefer_initializing_formals
- prefer_interpolation_to_compose_strings
- prefer_is_not_operator
- prefer_null_aware_operators
- prefer_relative_imports
- prefer_typing_uninitialized_variables
- prefer_void_to_null
- provide_deprecation_message
- prefer_single_quotes
- sort_pub_dependencies
- test_types_in_equals
- throw_in_finally
- unawaited_futures
- unnecessary_await_in_return
- unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_overrides
- unnecessary_parenthesis
- unnecessary_statements
- unnecessary_string_interpolations
- use_string_buffers
- void_checks
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: vector_math
version: 2.1.1
version: 2.1.2
description: A Vector Math library for 2D and 3D applications.
repository: https://github.com/google/vector_math.dart

Expand All @@ -11,6 +11,6 @@ dev_dependencies:
build_runner: ^2.0.0
build_test: ^2.0.0
build_web_compilers: ^3.0.0
lints: ^1.0.0
path: ^1.8.0
pedantic: ^1.10.0
test: ^1.16.0