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

Refactor TypeAliasName #145

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Refactor TypeAliasName #145

merged 1 commit into from
Feb 21, 2023

Conversation

sambostock
Copy link
Contributor

This makes the following changes:

  • Changes from the deprecated Cop parent class to Base.
  • Updates the node matcher to only match offending constant names.
  • Use a node matcher capture, instead of indexing into children.
  • Rename the matcher accordingly.
  • Add tests to ensure qualified constants are handled correctly.

This makes the following changes:

- Changes from the deprecated `Cop` parent class to `Base`.
- Updates the node matcher to only match offending constant names.
- Use a node matcher capture, instead of indexing into children.
- Rename the matcher accordingly.
- Add tests to ensure qualified constants are handled correctly.
@sambostock sambostock requested a review from paracycle February 21, 2023 14:51
@sambostock sambostock requested a review from a team as a code owner February 21, 2023 14:51
@sambostock sambostock merged commit 7ed248f into main Feb 21, 2023
@sambostock sambostock deleted the improve-type-alias-name branch February 21, 2023 15:06
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