Skip to content

Conversation

sphterry
Copy link
Contributor

@sphterry sphterry commented Aug 18, 2025

Proposed changes

Added a list of nouns that should never be singularized during OperationID validation. This list is solely to avoid typos in acronyms that appear in resource paths. Sparked by comment on OperationID corrections.

This PR will be followed by a PATCH version bump to the IPA package.

Jira ticket: CLOUDP-338775

@sphterry sphterry marked this pull request as ready for review August 18, 2025 11:23
@sphterry sphterry requested a review from a team as a code owner August 18, 2025 11:23
@sphterry sphterry enabled auto-merge (squash) August 18, 2025 11:28
function: 'IPA104ValidOperationID'
functionOptions:
methodName: 'get'
ignoreList:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ignoreList:
ignorePluralizationList:

[Nit] Name suggestion, I feel like ignoreList can be interpreted as operation id ignore list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will go back and change now

severity: warn
given: '#GetOperationObject'
then:
function: 'IPA104ValidOperationID'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add to the rule description an explanation of the ignore list option and what it is used for? Similar to

##### Configuration
This rule includes two configuration options:
- `ignoreList`: Words that are allowed to maintain their specific casing (e.g., "API", "AWS", "DNS")
- `grammaticalWords`: Common words that can remain lowercase in titles (e.g., "and", "or", "the")

@sphterry sphterry merged commit fe4c9ba into main Aug 19, 2025
11 checks passed
@sphterry sphterry deleted the CLOUDP-338775 branch August 19, 2025 16:52
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