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

yanglint REFACTOR redundant code #2052

Merged
merged 22 commits into from
Jun 20, 2023
Merged

yanglint REFACTOR redundant code #2052

merged 22 commits into from
Jun 20, 2023

Conversation

lePici
Copy link
Collaborator

@lePici lePici commented Jun 20, 2023

The goal was to reduce code redundancy between the interactive and non-interactive modes of yanglint. Also, this PR contains a bugfix for the long run of interactive tests.

tools/lint/main_ni.c Fixed Show fixed Hide fixed
tools/lint/cmd_help.c Fixed Show fixed Hide fixed
tools/lint/cmd_verb.c Fixed Show fixed Hide fixed
tools/lint/main.c Fixed Show fixed Hide fixed
tools/lint/cmd_print.c Fixed Show fixed Hide fixed
Copy link
Member

@michalvasko michalvasko left a comment

Choose a reason for hiding this comment

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

Please look at the unresolved code scanning warnings and fix them.

The yanglint options were stored in non-interactive mode in the
structure named 'context'. This structure was renamed to yl_opt
and is now also used in the interactive mode, which has also been
expanded with new callbacks. These callbacks are the basis for
further refactoring commits, which aim to reduce duplicate code
between interactive and non-interactive modes to a minimum.
... because it is not necessary, libyang will take care of it.
@lePici lePici force-pushed the devel branch 2 times, most recently from e8810b9 to 51dc170 Compare June 20, 2023 08:29
@michalvasko michalvasko merged commit 27337da into CESNET:devel Jun 20, 2023
12 checks passed
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