Skip to content

Commit 0cbed09

Browse files
authored
Update changelog for recent fix, use pkg:lints, prepare 2.1.2 (#257)
Only check analyzer/format on dev
1 parent fafb9fb commit 0cbed09

File tree

4 files changed

+22
-30
lines changed

4 files changed

+22
-30
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
- run: dart pub get
2525
id: install
2626
- run: dart format --output=none --set-exit-if-changed .
27-
if: always() && steps.install.outcome == 'success'
27+
if: matrix.sdk == 'dev' && steps.install.outcome == 'success'
2828
- run: dart analyze --fatal-infos
29-
if: always() && steps.install.outcome == 'success'
29+
if: matrix.sdk == 'dev' && steps.install.outcome == 'success'
30+
3031
- run: dart test
3132
if: matrix.sdk != 'dev' && steps.install.outcome == 'success'
3233

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.1.2
2+
3+
- Fix to `Quad.copy` ([#221](https://github.com/google/vector_math.dart/issues/221))
4+
15
## 2.1.1
26

37
- Deprecate `hash.dart`.

analysis_options.yaml

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,51 @@
1-
include: package:pedantic/analysis_options.yaml
1+
include: package:lints/recommended.yaml
2+
3+
analyzer:
4+
errors:
5+
non_constant_identifier_names: ignore
6+
7+
language:
8+
strict-casts: true
9+
strict-inference: true
210

311
linter:
412
rules:
13+
- always_declare_return_types
514
- avoid_bool_literals_in_conditional_expressions
615
- avoid_catching_errors
716
- avoid_classes_with_only_static_members
8-
- avoid_function_literals_in_foreach_calls
917
- avoid_private_typedef_functions
1018
- avoid_redundant_argument_values
11-
- avoid_renaming_method_parameters
1219
- avoid_returning_null_for_future
13-
- avoid_returning_null_for_void
1420
- avoid_returning_this
1521
- avoid_unused_constructor_parameters
1622
- avoid_void_async
17-
- camel_case_types
1823
- cancel_subscriptions
1924
- comment_references
20-
- constant_identifier_names
21-
- control_flow_in_finally
2225
- directives_ordering
23-
- empty_statements
24-
- file_names
25-
- hash_and_equals
26-
- implementation_imports
2726
- invariant_booleans
28-
- iterable_contains_unrelated_type
2927
- join_return_with_assignment
30-
- list_remove_unrelated_type
3128
- literal_only_boolean_expressions
3229
- missing_whitespace_between_adjacent_strings
3330
- no_adjacent_strings_in_list
3431
- no_runtimeType_toString
32+
- omit_local_variable_types
3533
- only_throw_errors
36-
- overridden_fields
3734
- package_api_docs
38-
- package_names
39-
- package_prefixed_library_names
4035
- prefer_asserts_in_initializer_lists
4136
- prefer_const_constructors
4237
- prefer_expression_function_bodies
4338
- prefer_final_locals
44-
- prefer_function_declarations_over_variables
45-
- prefer_initializing_formals
4639
- prefer_interpolation_to_compose_strings
47-
- prefer_is_not_operator
48-
- prefer_null_aware_operators
4940
- prefer_relative_imports
50-
- prefer_typing_uninitialized_variables
51-
- prefer_void_to_null
52-
- provide_deprecation_message
41+
- prefer_single_quotes
5342
- sort_pub_dependencies
5443
- test_types_in_equals
5544
- throw_in_finally
45+
- unawaited_futures
5646
- unnecessary_await_in_return
5747
- unnecessary_lambdas
5848
- unnecessary_null_aware_assignments
59-
- unnecessary_overrides
6049
- unnecessary_parenthesis
6150
- unnecessary_statements
62-
- unnecessary_string_interpolations
6351
- use_string_buffers
64-
- void_checks

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: vector_math
2-
version: 2.1.1
2+
version: 2.1.2
33
description: A Vector Math library for 2D and 3D applications.
44
repository: https://github.com/google/vector_math.dart
55

@@ -11,6 +11,6 @@ dev_dependencies:
1111
build_runner: ^2.0.0
1212
build_test: ^2.0.0
1313
build_web_compilers: ^3.0.0
14+
lints: ^1.0.0
1415
path: ^1.8.0
15-
pedantic: ^1.10.0
1616
test: ^1.16.0

0 commit comments

Comments
 (0)