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

rules: reformat all rules using capafmt #12

Merged
merged 5 commits into from
Jun 25, 2020
Merged

Conversation

williballenthin
Copy link
Collaborator

No description provided.

@williballenthin
Copy link
Collaborator Author

i think these updates look really quite reasonable, and would recommend merging.

- match: loop
- optional:
- number: 2
- number: 3
- number: 4
- number: 6
- number: 0xF
- string: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
- string: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does it know to remove the " here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

must have intimate knowledge of the yaml spec to understand that this string does not need to be escaped/enclosed?

in other places, it does a good job of detecting when quotes are needed.

- api: Foo32.bar
rule:
meta:
name: example
Copy link
Collaborator

@mr-tz mr-tz Jun 25, 2020

Choose a reason for hiding this comment

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

can this rule be removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, sorry

Copy link
Collaborator

@mr-tz mr-tz left a comment

Choose a reason for hiding this comment

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

💌

@williballenthin williballenthin merged commit a16242d into master Jun 25, 2020
@williballenthin williballenthin deleted the capafmt-rules branch June 25, 2020 19:31
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

2 participants