-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
fix #1110 #1111
fix #1110 #1111
Conversation
SunlightBro
commented
Jul 16, 2024
- add custom_lint.log to .gitignore
- fix MissingPrivateEmptyCtor
- add test-case inside example
- prepare version 0.0.6 & CHANGELOG
- add custom_lint.log to .gitignore - fix MissingPrivateEmptyCtor - add test-case inside example - prepare version 0.0.6 & CHANGELOG
|
using stable or beta but on master the main issue (I think) is in custom_lint_core/lib/src/lint_codes.dart, Analyzing freezed_lint...
error • The argument type 'dynamic' can't be assigned to the parameter type 'ErrorCode'. • lib/src/missing_mixin.dart:30:37 • argument_type_not_assignable
error • The argument type 'dynamic' can't be assigned to the parameter type 'ErrorCode'. • lib/src/missing_mixin.dart:36:35 • argument_type_not_assignable
error • The argument type 'dynamic' can't be assigned to the parameter type 'ErrorCode'. • lib/src/missing_private_empty_ctor.dart:44:35 • argument_type_not_assignable |
Do you mind adding the necessary import alias or |
Requires one change in custom_lint_core/lib/src/lint_rule.dart import 'package:analyzer/dart/ast/ast.dart';
- import 'package:analyzer/error/error.dart';
+ import 'package:analyzer/error/error.dart' show AnalysisError;
import 'package:analyzer/error/listener.dart'; |
final accessors = element.accessors; | ||
final methods = element.methods.where((method) => !method.isStatic); | ||
final fields = element.fields.where((field) => !field.isStatic); | ||
final accessors = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch to add accessors! Thank you for the quick fix @SunlightBro
TY! |