Closed sandrodz closed 2 years ago
huh, so apparently problem was "rootPatterns": [".something", ".git"],
first item .something in the list was failing to match, and rest where not tried. This unexpected behaviour. "rootPatterns": [".git"]
, fixed it.
Examine following file structure of A php project:
ProjectA
When you open some.php from root, .phpcs.xml is correctly read and applied. in fact when I check diagnostic language server logs, I see:
When you open src/other.php .phpcs.xml is not applied, because coc-diagostic thinks project root is src/ not / where .phpcs.xml resides. logs show:
/ProjectA/src doesn't contain .phpcs.xml file, thus its not applied correctly.
Is there any way to resolve this? Vim correctly shows /ProjectA as project root for nested files, I can check this by typing :pwd