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

Normalize keys in hooks #391

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

n-bernat
Copy link
Member

Currently, our hooks use keys inconsistently - some keys are declared as List<Object?>, while some are declared as List<Object?>?. Moreover, some keys are declared as an optional positional parameter, while others are a named parameter with a default value.

This PR turns all keys into a named parameter with a default value (List<Object?> keys = const []).

@n-bernat n-bernat merged commit dc85e1e into leancodepl:master Dec 11, 2024
2 checks passed
@n-bernat n-bernat deleted the normalize-hook-keys branch December 11, 2024 15:31
@michalina-majewska michalina-majewska added p: leancode_hooks Related to the leancode_hooks package and removed p:leancode_hooks labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: leancode_hooks Related to the leancode_hooks package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants