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

scripts: ci: check_compliancy: Add zephyr-keep-sorted regex support #80444

Merged
merged 2 commits into from
Nov 16, 2024

Conversation

pdgendt
Copy link
Collaborator

@pdgendt pdgendt commented Oct 25, 2024

To support checking for sorted blocks of multi-line text add an optional regex pattern for the KeepSorted compliance check.

@pdgendt pdgendt force-pushed the keep-sorted-regex branch 2 times, most recently from 5f8658d to 9ce9268 Compare October 25, 2024 16:12
@pdgendt pdgendt added the DNM This PR should not be merged (Do Not Merge) label Oct 25, 2024
@pdgendt pdgendt removed the DNM This PR should not be merged (Do Not Merge) label Oct 25, 2024
To support checking for sorted blocks of multi-line text add
an optional regex pattern for the KeepSorted compliance check.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Keep the UNDEF_KCONFIG_ALLOWLIST list sorted, as mentioned in the
comment.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
@fabiobaltieri
Copy link
Member

Hey @pdgendt, wasn't the foldback feature enough to cover milti-line text? I'm happy with the feature if we need it but I can't quite wrap my head around why it was not working before and would rather keep the simpler code base if possible

@pdgendt
Copy link
Collaborator Author

pdgendt commented Oct 28, 2024

It won't work for example for #79754, but there are probably more cases in tree that could benefit from this IMO.

@fabiobaltieri
Copy link
Member

It won't work for example for #79754, but there are probably more cases in tree that could benefit from this IMO.

Oh because the closing bracket is not folded back?

@pdgendt
Copy link
Collaborator Author

pdgendt commented Oct 29, 2024

Oh because the closing bracket is not folded back?

Yes

@pdgendt pdgendt added this to the v4.1.0 milestone Nov 8, 2024
@nashif nashif merged commit 794dd05 into zephyrproject-rtos:main Nov 16, 2024
16 checks passed
@pdgendt pdgendt deleted the keep-sorted-regex branch November 16, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants