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

[BugFix]: Addressing issues with parsing newline characters on windows for conjunctions #482

Merged
merged 4 commits into from Mar 25, 2024

Conversation

joshfried-aws
Copy link
Contributor

@joshfried-aws joshfried-aws commented Mar 21, 2024

Issue #, if available:
N/A

Description of changes:
After addressing the clippy lints mentioned below integration tests against the rules registry started to fail due to newly added tests that include conjunctions on the when clauses of some rules. These failures occurred only in windows and it was due to using nom's builtin newline parsing function. To address this issue I created our own internal newline parsing function that alt's between the 2 possible escape sequences on windows and *nix systems.

With the recent release of Rust 1.77 new lints were introduced, some caused failures in our CI. I have explicitly ignored most of the areas where this was causing our CI to fail, because we may want to use these unused variants in the future.

I chose to ignore all the occurrences of these failures in our internal libyaml crate incase we decide to start using those unused variants.

For the clauses function it is currently unused, but instead of removing it I am taking it as an action item upon myself to investigate why its unused. There has been cases in the past where unused implemented code was there for a reason (i.e. partly implemented feature).


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@joshfried-aws joshfried-aws changed the title [Misc]: Addressing new lints in 1.77 [BugFix]: Addressing issues with parsing newline characters on windows for conjunctions Mar 22, 2024
@joshfried-aws joshfried-aws merged commit b014d90 into aws-cloudformation:main Mar 25, 2024
18 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.

None yet

3 participants