benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
814 stars 126 forks source link

Environment variables in paths #166

Closed hellor0bot closed 7 years ago

hellor0bot commented 7 years ago

Hello,

Thanks a lot for sublime-phpcs.

I'm syncing my ST settings across Windows and Mac OS X machines.

It's obvious that absolute paths, specified in phpcs_executable_path or phpcbf_executable_path are different and won't work on both machines.

How can I have environment dependend settings for sublime-phpcs?

Thanks.

hellor0bot commented 7 years ago

There's a great package for handling environment variables in Sublime Text:

https://packagecontrol.io/packages/Environment%20Settings

But it doesn't work with sublime-phpcs, see this issue here:

https://bitbucket.org/daniele-niero/environmentsettings/issues/5/how-to-use-the-defined-variable-in-a

Is there a change to add environmental variables in the sublime-phpcs settings?

Thanks!

benmatselby commented 7 years ago

@hellor0bot

Hi there

Honestly, I do not think I will add that support myself, but would probably merge it in from someone else.. I build my machines from the same setup scripts so the settings are always the same for me, so I personally don't have a need for that and don't have any time to implement something at the moment