You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Something that bothered me when working in projects without a config file, it throws errors every time you click on a file, even when I have check on the "disableWhenNoConfigFile". The problem is that this check is not being executed early enough. By moving this check further up, right under "const parameters = ['--report=json'];" this issue is resolved.
// Check if a config file exists and handle it
const confFileNames = [
'.phpcs.xml', '.phpcs.xml.dist', 'phpcs.xml', 'phpcs.xml.dist',
'phpcs.ruleset.xml', 'ruleset.xml',
];
const confFile = await helpers.findAsync(fileDir, confFileNames);
if (this.disableWhenNoConfigFile && !confFile) {
return [];
}
The text was updated successfully, but these errors were encountered:
Something that bothered me when working in projects without a config file, it throws errors every time you click on a file, even when I have check on the "disableWhenNoConfigFile". The problem is that this check is not being executed early enough. By moving this check further up, right under "const parameters = ['--report=json'];" this issue is resolved.
The text was updated successfully, but these errors were encountered: