Search for phpcs.xml file in workspace root folder#29
Search for phpcs.xml file in workspace root folder#29arisanguinetti wants to merge 1 commit intosoderlind:masterfrom
Conversation
This is my first time with vscode extensions, I think this change this might be useful.
|
@soderlind Any chance this could be merged and extrapolated on? There isn't really a reason why this shouldn't be automated entirely at this point, simply traversing from I'm in a situation currently that I have a default set in the workspace, but each submodule has its own gettext domains which we have rules for detecting when they are incorrect. So we end up having to make a A standard traversal and search for common files would mean it always uses the closes, most relevant rules to the file being formatted. |
|
We also facing this issue. This PR would need merge ASAP. |
|
I wasted a full day for the issue, thanks a lot @arisanguinetti |
…nd VS Code 1.61+ formatter requirement
- Add missing phpcbf.configSearch setting (searches up directory tree for phpcs.xml)
- Document ${workspaceFolder} variable support in phpcbf.standard (added in v0.0.9)
- Update deprecated ${workspaceRoot} example in executablePath to ${workspaceFolder}
- Clarify phpcbf.onsave interaction with editor.formatOnSave
- Add VS Code 1.61+ note about editor.defaultFormatter requirement
- Add phpcbf.configSearch to default settings example
Closes #29 (the configSearch feature was already implemented; this documents it)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This is my first time with vscode extensions, I think this change this might be useful.