Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Setting Sniff Properties per-file #2424

Closed
sirbrillig opened this issue Feb 15, 2019 · 3 comments
Closed

Setting Sniff Properties per-file #2424

sirbrillig opened this issue Feb 15, 2019 · 3 comments

Comments

@sirbrillig
Copy link

Originally suggested for my standard in sirbrillig/phpcs-variable-analysis#45 I wonder if it might be useful to allow setting sniff properties (options for a specific sniff) within a file to apply only to that file.

Maybe something like Configuration Comments in eslint

@jrfnl
Copy link
Contributor

jrfnl commented Feb 15, 2019

Duplicate of #2126 ?

@gsherwood
Copy link
Member

Duplicate of #2126 ?

I think so. You're probably looking for the phpcs:set annotation, but it's not localised to a single file at this time. Please comment over there if you have additional requirements.

@sirbrillig
Copy link
Author

sirbrillig commented Feb 15, 2019

Thanks! Much appreciated. I could have sworn I saw that something like //phpcs:set existed but I couldn't locate it in the docs.

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

No branches or pull requests

3 participants