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

template-no-call-expression: not reporting failures in specific cases #757

Open
rafaelss95 opened this issue Feb 11, 2019 · 2 comments
Open
Labels

Comments

@rafaelss95
Copy link
Collaborator

rafaelss95 commented Feb 11, 2019

Reproduction:

{
  "rules": {
    "template-no-call-expression": true
  }
}
@Component({
  template: `
    {{ obj?.nested1() }}
    {{ obj!.nested1() }}
    <!-- Should report two failures, however actually it doesn't report nothing -->
  `
})
class TestComponent {}
@rafaelss95 rafaelss95 added the bug label Feb 11, 2019
@santoshyadavdev
Copy link
Contributor

@rafaelss95 will try to wok on it, if this is still open. Also first time contributor here, so may need help here.

@jaufgang
Copy link

Also doesn't fail when accessing getters in a template.

 @Component({
  template: '{{ two }}'
})
class TwoComponent {
    get two() {
        return Math.sin(Math.PI/4)^2
    }
}

@rafaelss95 rafaelss95 changed the title no-template-call-expression: not reporting failures in specific cases template-no-call-expression: not reporting failures in specific cases Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants