benmatselby / sublime-phpcs

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

Autoreplacing tilde with user's home directory #169

Closed qkdreyer closed 7 years ago

qkdreyer commented 7 years ago

Allowing phpcs configuration values to use "tilde" alias

benmatselby commented 7 years ago

Hi @qkdreyer Do you have some examples where you would use this please?

qkdreyer commented 7 years ago

Sure. This allows me to use :

    "phpmd_additional_args":
    {
        "~/Library/Application Support/Sublime Text 3/Packages/phpmd.xml": ""
    }

instead of :

    "phpmd_additional_args":
    {
        "/Users/qkdreyer/Library/Application Support/Sublime Text 3/Packages/phpmd.xml": ""
    }
benmatselby commented 7 years ago

Hi @qkdreyer

Now merged (v6.8.0), thank you for the pull request.