Skip to content
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

Refactor specialised variants into subclasses #80

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

petrnymsa
Copy link
Member

No description provided.

),
].indexed) {
test(
'(${testCase.$1}): ${testCase.$2.test} should be valid between ${testCase.$2.start} - ${testCase.$2.end} when testing inclusive and with included time',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: in for loop I would extract index and test case so we dont have to use $1 and $2 in here.

@tenhobi
Copy link
Member

tenhobi commented Jan 26, 2025

Also since we are doing breaking change, we can do these fixes from analysis options?

avoid-commented-out-code: false # code examples in comments
prefer-boolean-prefixes: false # # TODO: release new major version (breaking change)
prefer-named-parameters: false # TODO: release new major version (breaking change)
dispose-class-fields: false # callback parameters are better without named

Copy link

github-actions bot commented Jan 29, 2025

DCM report

✅ no issues found!

Full report: https://github.com/netglade/glade_forms/runs/37468786306

Comment on lines +28 to +34
bool get hasStringEmptyOrNullErrorKey => any((error) => error.hasStringEmptyOrNullErrorKey);

bool get hasNullValueOrEmptyValueKey => any((error) => error.hasNullValueOrEmptyValueKey);

bool hasErrorKey(Object key) => any((error) => error.key == key);

bool hasOnlySpecificErrorKey(Object key) => every((error) => error.key == key);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proč je tady to Key na konci vždy i pro gettery?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants