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

[Pylint] Check client methods have approved name prefix #9081

Merged
merged 51 commits into from
Oct 11, 2024

Conversation

MJoshuaB
Copy link
Contributor

@MJoshuaB MJoshuaB commented Oct 2, 2024

Refactors existing checker ClientHasApprovedMethodNamePrefix to better fit guidelines, remove false positives, and ignore internal modules and class properties.

Affected SDKs:

  • azure.cognitiveservices.language.textanalytics.text_analytics_client 3 errors
  • azure.cognitiveservices.personalizer.personalizer_client 1 error

Includes some extra common prefixes/verbs: close, cancel, clear, subscribe, send, query
Includes prefixes/verbs for future use: analyze, train, detect

Copy link
Member

@l0lawrence l0lawrence left a comment

Choose a reason for hiding this comment

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

looks good :)

Copy link
Member

@l0lawrence l0lawrence left a comment

Choose a reason for hiding this comment

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

lgtm thanks!

@l0lawrence l0lawrence merged commit 6c5d466 into Azure:main Oct 11, 2024
8 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.

4 participants