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

Exclude enum and intEnum from some linting #1133

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Mar 14, 2022

This commit excludes linting enum and intEnum members for AbbreviationName
and CamelCase checks, as they are intended to be CAPS_SNAKE.

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

@kstich kstich requested a review from a team as a code owner March 14, 2022 23:30
// Exclude members of enums from AbbreviationName validation,
// as they're intended to be CAPS_SNAKE.
if (shape.isMemberShape()) {
Shape target = model.expectShape(shape.asMemberShape().get().getContainer());
Copy link
Contributor

Choose a reason for hiding this comment

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

me being annoying: is target the right term for this, since it's the container?

This commit excludes linting enum and intEnum members for AbbreviationName
and CamelCase checks, as they are intended to be CAPS_SNAKE.
@kstich kstich force-pushed the enum_member_linter_updates branch from e2f7094 to f4503d9 Compare March 14, 2022 23:36
@kstich kstich merged commit 91a1656 into idl-2.0 Mar 15, 2022
@kstich kstich deleted the enum_member_linter_updates branch March 15, 2022 19:59
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