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

feat: add support for pattern matching in rule no-unexpected-wire-adapter-usages #95

Conversation

seckardt
Copy link
Contributor

@seckardt seckardt commented Jun 2, 2022

No description provided.

Copy link
Member

@ekashida ekashida left a comment

Choose a reason for hiding this comment

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

Implementation lgtm but would like to hear from @pmdartus whether there was a reason why this feature was added for no-unknown-wire-adapters and not this plugin.

}`,
options: [
{
adapters: [{ module: '@salesforce/apex/*', identifier: '*' }],
Copy link
Member

Choose a reason for hiding this comment

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

This test really confused me until I saw that the pattern used * instead of **.

@ekashida ekashida requested a review from pmdartus June 2, 2022 19:50
Copy link
Member

@pmdartus pmdartus left a comment

Choose a reason for hiding this comment

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

The code change looks good. Please update the documentation in docs/rules/no-unexpected-wire-adapter-usages.md to reflect the addition of glob support.

@seckardt seckardt force-pushed the feature/240-pattern-support-no-unexpected-wire-adapter-usages branch from 537fd2f to d8fdb76 Compare June 7, 2022 14:50
@seckardt seckardt requested a review from pmdartus June 7, 2022 14:58
@pmdartus pmdartus merged commit db821c6 into salesforce:master Jun 8, 2022
@seckardt seckardt deleted the feature/240-pattern-support-no-unexpected-wire-adapter-usages branch June 8, 2022 09:17
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.

3 participants