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

Rule for colon vs namespace extends/include etc #79

Open
jackbentley opened this issue Oct 3, 2019 · 1 comment
Open

Rule for colon vs namespace extends/include etc #79

jackbentley opened this issue Oct 3, 2019 · 1 comment

Comments

@jackbentley
Copy link

jackbentley commented Oct 3, 2019

https://symfony.com/doc/3.4/templating/namespaced_paths.html

In the past, Symfony used to suggest using colons instead of @ namespaces. Adding a rule to check @ namespaces are being used instead of colons would be potentially useful

Prefer
@App/default/layout.html.twig
Over
AppBundle:default:layout.html.twig

@OwlyCode
Copy link
Collaborator

Hello and thanks for that idea!

That would be a nice feature to have. But this only concerns Symfony projects so I guess this would be an optional rule that would be activated using some configuration. I won't add this for 4.0.0 (unless someone does it) because I want to reduce the scope as much as I can to ship the beta the soonest possible.

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

No branches or pull requests

2 participants