Skip to content

Warn about android attributes mismatch for properties and function parameters#1761

Merged
pwrobeldev merged 6 commits into
masterfrom
pwrobeldev/warn-about-android-attributes-mismatch-for-properties-and-param-names
Jun 4, 2025
Merged

Warn about android attributes mismatch for properties and function parameters#1761
pwrobeldev merged 6 commits into
masterfrom
pwrobeldev/warn-about-android-attributes-mismatch-for-properties-and-param-names

Conversation

@pwrobeldev

Copy link
Copy Markdown
Contributor

This change introduces handling of validation for accessors
of properties and parameters of functions. The initial code was not
doing it, because neither accessors nor parameters are present in
the reference map of LimeModel when it is loaded.

The new function is created from the body of lambda.
So far no changes in logic is implemented.

The new function will be used for recursive calls
for getter/setter of properties and parameters of
functions.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
… property

This change introduces handling of validation for
accessors of LimeProperty. The initial code was not
validating the accessors, because they are not added
to reference map of LimeModel when it is loaded.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
This change introduces handling of validation for
renaming parameters of functions. The initial code was not
doing it, because parameters are not present in reference
map of LimeModel when it is loaded.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
…or disabled

This change introduces tests of the new logic with
werror flag disabled in order to confirm, that in
such case only warning is printed and the validation
reports success.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
@pwrobeldev
pwrobeldev marked this pull request as ready for review June 4, 2025 08:16
@pwrobeldev
pwrobeldev requested review from Hsilgos and amogbetkar June 4, 2025 08:19
@pwrobeldev
pwrobeldev merged commit 870efff into master Jun 4, 2025
19 checks passed
@pwrobeldev
pwrobeldev deleted the pwrobeldev/warn-about-android-attributes-mismatch-for-properties-and-param-names branch June 4, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants