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

Absolute path to phpcs.xml not working #62

Open
rilwis opened this issue Mar 1, 2022 · 0 comments
Open

Absolute path to phpcs.xml not working #62

rilwis opened this issue Mar 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@rilwis
Copy link

rilwis commented Mar 1, 2022

I have the extension installed with the following settings:

"[php]": {
    "editor.defaultFormatter": "wongjn.php-sniffer"
},
"phpSniffer.standard": "/Users/rilwis/elightup/dotfiles/phpcs.xml",
"phpSniffer.run": "onType",

The phpcs.xml is put in the exact folder as described. It's available online.

When I run the "Format Document", it doesn't work.

However, when I run the command line:

phpcs --standard="/Users/rilwis/elightup/dotfiles/phpcs.xml" src/Renderer/Base.php

It works.

Environment

  • OS: Mac Big Sur 11.5
  • VSCode version: 1.64.2
  • PHP CLI version: 7.4.27
  • squizlabs/PHP_CodeSniffer version: 3.7.0 (installed globally ✔)
@rilwis rilwis added the bug Something isn't working label Mar 1, 2022
@wongjn wongjn removed their assignment Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants