feat: Improve error messages #1567
Triggered via pull request
September 27, 2024 19:36
Status
Failure
Total duration
2m 24s
Artifacts
–
test.yml
on: pull_request
Test
2m 10s
Test Min SDK
2m 15s
Annotations
20 errors, 12 warnings, and 20 notices
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L180
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L188
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L196
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L204
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L212
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L220
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L228
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L236
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L244
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L252
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L180
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L188
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L196
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L204
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L212
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L220
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L228
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L236
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L244
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
The name 'TokenFieldAccessError' isn't a type, so it can't be used as a type argument.:
packages/mix/test/src/theme/tokens/text_style_token_test.dart#L252
Try correcting the name to an existing type, or defining a type named 'TokenFieldAccessError'.
See https://dart.dev/diagnostics/non_type_as_type_argument to learn more about this problem.
|
Unused import: '../../core/factory/mix_provider.dart'.:
packages/mix/lib/src/attributes/border/border_dto.dart#L7
Try removing the import directive.
See https://dart.dev/diagnostics/unused_import to learn more about this problem.
|
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, invertase/github-action-dart-analyzer@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, invertase/github-action-dart-analyzer@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Unused import: '../../core/factory/mix_provider.dart'.:
packages/mix/lib/src/attributes/border/border_dto.dart#L7
Try removing the import directive.
See https://dart.dev/diagnostics/unused_import to learn more about this problem.
|
Test Min SDK
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Min SDK
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Min SDK
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Min SDK
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, invertase/github-action-dart-analyzer@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test Min SDK
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, invertase/github-action-dart-analyzer@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Don't use 'BuildContext's across async gaps.:
examples/todo_list/lib/pages/todo_list_page.dart#L70
Try rewriting the code to not use the 'BuildContext', or guard the use with a 'mounted' check.
See https://dart.dev/diagnostics/use_build_context_synchronously to learn more about this problem.
|
The import of 'package:flutter/foundation.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/material.dart'.:
packages/mix/lib/src/attributes/border/border_dto.dart#L2
Try removing the import directive.
See https://dart.dev/diagnostics/unnecessary_import to learn more about this problem.
|
The import of 'package:flutter/foundation.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/material.dart'.:
packages/mix/lib/src/attributes/shadow/shadow_util.dart#L1
Try removing the import directive.
See https://dart.dev/diagnostics/unnecessary_import to learn more about this problem.
|
'textScaleFactor' is deprecated and shouldn't be used. Use textScaler instead.:
packages/mix/test/src/specs/text/text_spec_test.dart#L333
Try replacing the use of the deprecated member with the replacement.
See https://dart.dev/diagnostics/deprecated_member_use_from_same_package to learn more about this problem.
|
'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported.:
packages/mix_generator/lib/src/builders/utility_class_builder.dart#L60
Try replacing the use of the deprecated member with the replacement.
See https://dart.dev/diagnostics/deprecated_member_use to learn more about this problem.
|
'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported.:
packages/mix_generator/lib/src/helpers/builder_utils.dart#L254
Try replacing the use of the deprecated member with the replacement.
See https://dart.dev/diagnostics/deprecated_member_use to learn more about this problem.
|
'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported.:
packages/mix_generator/lib/src/helpers/field_info.dart#L118
Try replacing the use of the deprecated member with the replacement.
See https://dart.dev/diagnostics/deprecated_member_use to learn more about this problem.
|
'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported.:
packages/mix_generator/lib/src/helpers/field_info.dart#L179
Try replacing the use of the deprecated member with the replacement.
See https://dart.dev/diagnostics/deprecated_member_use to learn more about this problem.
|
'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported.:
packages/mix_generator/lib/src/helpers/helpers.dart#L17
Try replacing the use of the deprecated member with the replacement.
See https://dart.dev/diagnostics/deprecated_member_use to learn more about this problem.
|
Don't invoke 'print' in production code.:
packages/mix_generator/lib/src/helpers/helpers.dart#L109
Try using a logging framework.
See https://dart.dev/diagnostics/avoid_print to learn more about this problem.
|
The import of 'package:flutter/foundation.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/material.dart'.:
packages/mix/lib/src/attributes/border/border_dto.dart#L2
Try removing the import directive.
See https://dart.dev/diagnostics/unnecessary_import to learn more about this problem.
|
The import of 'package:flutter/foundation.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/material.dart'.:
packages/mix/lib/src/attributes/shadow/shadow_util.dart#L1
Try removing the import directive.
See https://dart.dev/diagnostics/unnecessary_import to learn more about this problem.
|
'textScaleFactor' is deprecated and shouldn't be used. Use textScaler instead.:
packages/mix/test/src/specs/text/text_spec_test.dart#L333
Try replacing the use of the deprecated member with the replacement.
See https://dart.dev/diagnostics/deprecated_member_use_from_same_package to learn more about this problem.
|
Don't invoke 'print' in production code.:
packages/mix_generator/lib/src/helpers/helpers.dart#L109
Try using a logging framework.
See https://dart.dev/lints/avoid_print to learn more about this problem.
|
The parameter name 'reader' doesn't match the name 'annotation' in the overridden method.:
packages/mix_generator/lib/src/mixable_class_utility_generator.dart#L56
Try changing the name to 'annotation'.
See https://dart.dev/lints/avoid_renaming_method_parameters to learn more about this problem.
|
The parameter name 'reader' doesn't match the name 'annotation' in the overridden method.:
packages/mix_generator/lib/src/mixable_dto_generator.dart#L61
Try changing the name to 'annotation'.
See https://dart.dev/lints/avoid_renaming_method_parameters to learn more about this problem.
|
The parameter name 'reader' doesn't match the name 'annotation' in the overridden method.:
packages/mix_generator/lib/src/mixable_enum_utility_generator.dart#L48
Try changing the name to 'annotation'.
See https://dart.dev/lints/avoid_renaming_method_parameters to learn more about this problem.
|
The parameter name 'reader' doesn't match the name 'annotation' in the overridden method.:
packages/mix_generator/lib/src/mixable_spec_generator.dart#L36
Try changing the name to 'annotation'.
See https://dart.dev/lints/avoid_renaming_method_parameters to learn more about this problem.
|
Don't invoke 'print' in production code.:
packages/mix_lint/lib/src/assists/extract_attributes.dart#L19
Try using a logging framework.
See https://dart.dev/lints/avoid_print to learn more about this problem.
|
Don't invoke 'print' in production code.:
packages/mix_lint/lib/src/assists/extract_attributes.dart#L58
Try using a logging framework.
See https://dart.dev/lints/avoid_print to learn more about this problem.
|