Skip to content

Commit

Permalink
Update README: remove planned inspection for object method short hand
Browse files Browse the repository at this point in the history
InvalidDotOperator ensures short hand (e.g., `user.admin` instead of
`user.isAdmin()`) is valid (for typed variables).
  • Loading branch information
drjayvee committed Oct 27, 2024
1 parent c69cb08 commit d2b8201
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ they are rendered. This is the aim of a similar project: [TwigStan](https://gith
* ✅ Invalid object property or method (e.g., `{{ user.nmae }}`)

⚠️ This inspection _can_ trigger false positives, depending on your template logic.
* ⌛ Undocumented context variable (i.e., missing in `{% types %}`)
* ⌛ Use of short-hand form (e.g., `{{ user.admin }}` instead of `isAdmin`)

Rationale: makes it hard to find usage of properties/methods
* ⌛ Undeclared variable (i.e., missing in `types`, `set`, etc)

## Constants
* ✅ Invalid constant (e.g., `constant('BAD')`)
Expand Down

0 comments on commit d2b8201

Please sign in to comment.