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

Avoid further decorator detection crashes in no-restricted-service-injections rule #1871

Merged

Conversation

bmish
Copy link
Member

@bmish bmish commented May 21, 2023

@bmish bmish added the Bug label May 21, 2023
@bmish bmish changed the title Avoid decorator detection crashes in no-restricted-service-injections rule Avoid further decorator detection crashes in no-restricted-service-injections rule May 21, 2023
@bmish bmish merged commit 9233899 into ember-cli:master May 21, 2023
8 checks passed
Comment on lines +87 to +93
{
// TODO: This should be invalid. With `inject.service` decorator.
filename: 'app/components/path.js',
code: `${INJECT_IMPORT} class MyComponent extends Component { @inject.service('myService') randomName }`,
output: null,
options: [{ paths: ['app/components'], services: ['my-service'] }],
},
Copy link
Member Author

@bmish bmish May 21, 2023

Choose a reason for hiding this comment

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

TODO: this valid test case should be invalid.

#1873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant